Address review comments.

This commit is contained in:
Atgeirr Flø Rasmussen
2019-10-09 14:16:48 +02:00
committed by Tor Harald Sandve
parent f618073492
commit 32b31a2606
3 changed files with 69 additions and 77 deletions

View File

@@ -258,6 +258,9 @@ inline InterpData findInterpData(const double& value_in, const std::vector<doubl
}
}
// Disallow extrapolation with higher factor than 3.0.
// The factor 3.0 has been chosen because it works well
// with certain testcases, and may not be optimal.
if (retval.factor_ > 3.0) {
retval.factor_ = 3.0;
}