diff options
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index d676d97d..02829b55 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -196,6 +196,7 @@ int main(int argc, char *argv[]) char *int_diag = NULL; char *geom_filename = NULL; struct beam_params beam; + int have_push_res = 0; /* Defaults */ iargs.cell = NULL; @@ -420,6 +421,7 @@ int main(int argc, char *argv[]) return 1; } iargs.push_res *= 1e9; /* nm^-1 -> m^-1 */ + have_push_res = 1; break; case 20 : @@ -536,6 +538,11 @@ int main(int argc, char *argv[]) iargs.int_meth |= INTEGRATION_SATURATED; } + if ( have_push_res && !(iargs.int_meth & INTEGRATION_RESCUT) ) { + ERROR("WARNING: You used --push-res, but not -rescut, " + "therefore --push-res will have no effect.\n"); + } + if ( toler != NULL ) { int ttt; ttt = sscanf(toler, "%f,%f,%f,%f", |