aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-10-27 17:48:15 +0100
committerThomas White <taw@physics.org>2014-10-27 17:48:15 +0100
commit5c0c1a258b6fed9873492a851c7436042286fc6a (patch)
tree809b0a8385ec5cda5eecdd395d88c3e20eea2a25 /src/indexamajig.c
parentef95c575baf47df7349146e852102b7dd2db0d4f (diff)
indexamajig: Warning if --push-res is used without rescut
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c7
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",