Commit bce91de8 authored by Richard Waite's avatar Richard Waite
Browse files

Remove assertion difc greater than zero

parent 62d1c959
......@@ -644,8 +644,6 @@ void dSpacing::init() {
}
}
}
// force the assumption that difc is positive in debug builds
assert(difc > 0.);
}
double dSpacing::singleToTOF(const double x) const {
......@@ -682,9 +680,6 @@ double dSpacing::singleFromTOF(const double tof) const {
if (!toDSpacingError.empty())
throw std::runtime_error(toDSpacingError);
// force the assumption that difc is positive in debug builds
assert(difc > 0.);
// non-physical result
if (tzero > tof) {
if (difa > 0.) {
......
Supports Markdown
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