Skip to content
Snippets Groups Projects
Commit e3e1b149 authored by David Keitel's avatar David Keitel
Browse files

XLALCreateFstatInput: report minCoverFreq, maxCoverFreq when checks failed

parent 52cb60da
Branches
No related tags found
No related merge requests found
......@@ -235,9 +235,8 @@ XLALCreateFstatInput ( const SFTCatalog *SFTcatalog, ///< [in] Cata
}
// Check remaining required parameters
XLAL_CHECK_NULL ( isfinite(minCoverFreq) && minCoverFreq > 0, XLAL_EINVAL );
XLAL_CHECK_NULL ( isfinite(maxCoverFreq) && maxCoverFreq > 0, XLAL_EINVAL );
XLAL_CHECK_NULL ( maxCoverFreq > minCoverFreq, XLAL_EINVAL );
XLAL_CHECK_NULL ( isfinite(minCoverFreq) && ( minCoverFreq > 0 ) && isfinite(maxCoverFreq) && ( maxCoverFreq > 0 ), XLAL_EINVAL, "Check failed: minCoverFreq=%f and maxCoverFreq=%f must be finite and positive!", minCoverFreq, maxCoverFreq );
XLAL_CHECK_NULL ( maxCoverFreq > minCoverFreq, XLAL_EINVAL, "Check failed: maxCoverFreq>minCoverFreq (%f<=%f)!", maxCoverFreq, minCoverFreq );
XLAL_CHECK_NULL ( ephemerides != NULL, XLAL_EINVAL );
XLAL_CHECK_NULL ( dFreq >= 0, XLAL_EINVAL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment