fixed no interpolation mode for moench (#1263)
All checks were successful
Build on RHEL9 / build (push) Successful in 4m6s
Build on RHEL8 / build (push) Successful in 5m13s

Co-authored-by: Anna Bergamaschi <anna.bergamaschi@psi.ch>
This commit is contained in:
2025-08-08 12:27:47 +02:00
committed by GitHub
parent 92991de5a8
commit 6b763797df
2 changed files with 5 additions and 4 deletions

View File

@@ -48,8 +48,9 @@ add_executable(moench03Interpolation moench03Interpolation.cpp)
#no compile defs
list(APPEND MOENCH_EXECUTABLES moench03Interpolation)
add_executable(moench03NoInterpolation moench03NoInterpolation.cpp)
add_executable(moench03NoInterpolation moench03Interpolation.cpp)
#no compile defs
target_compile_definitions(moench03NoInterpolation PRIVATE NOINTERPOLATION)
list(APPEND MOENCH_EXECUTABLES moench03NoInterpolation)
@@ -87,4 +88,4 @@ foreach(exe ${MOENCH_EXECUTABLES})
endforeach(exe ${MOENCH_EXECUTABLES})
install(TARGETS ${MOENCH_EXECUTABLES} DESTINATION bin)
install(TARGETS ${MOENCH_EXECUTABLES} DESTINATION bin)

View File

@@ -126,11 +126,11 @@ int main(int argc, char *argv[]) {
int quad;
#ifndef FF
double int_x, int_y;
int *img;
#ifndef NOINTERPOLATION
char fname[10000];
int ok;
double int_x, int_y;
int *img;
cout << "read ff " << argv[2] << endl;
sprintf(fname, "%s", argv[2]);
interp->readFlatField(fname);