Commit 64158100 authored by Evan Goetz's avatar Evan Goetz
Browse files

Fix search -> test

Original: a97451e391de5d39008fd983421953604d05a2b4
parent 194ff4a5
......@@ -2580,7 +2580,7 @@ INT4 readTwoSpectInputParams(inputParamsStruct *params, struct gengetopt_args_in
//Error if dfmax is smaller than templateTestDf or if dfmax is smaller than the templateSearch largest modulation depth
if (args_info.templateTest_given) XLAL_CHECK( params->dfmax >= args_info.templateTestDf_arg, XLAL_EINVAL, "templateTestDf is larger than dfmax\n" );
if (args_info.templateSearch_given) XLAL_CHECK( params->dfmax >= LAL_TWOPI*(params->fmin+params->fspan)*(args_info.templateSearchAsini_arg+3.0*args_info.templateSearchAsiniSigma_arg)/args_info.templateSearchP_arg, XLAL_EINVAL, "templateSearch parameters would make the largest modulation depth larger than dfmax\n");
if (args_info.bruteForceTemplateSearch_given) XLAL_CHECK( params->dfmax >= args_info.templateTestDf_arg+2.0/params->Tcoh, XLAL_EINVAL, "templateTestDf+2/Tcoh is larger than dfmax\n" );
if (args_info.bruteForceTemplateTest_given) XLAL_CHECK( params->dfmax >= args_info.templateTestDf_arg+2.0/params->Tcoh, XLAL_EINVAL, "templateTestDf+2/Tcoh is larger than dfmax\n" );
//Upper limit settings take span of search values unless specified
if (args_info.ULfmin_given) params->ULfmin = args_info.ULfmin_arg; //Upper limit minimum frequency (Hz)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment