changeset: 946:cc39eedcd753
tag: tip user: Andreas Lauser <andreas.lauser@iws.uni-stuttgart.de> date: Mon Dec 05 19:14:25 2011 +0100 summary: dune-cornerpoint: fix compilation with newish compilers
This commit is contained in:
parent
9d40dcd131
commit
ed0da5d7c5
@ -163,7 +163,7 @@ read(const std::string & datafilename, int xColumn, int fColumn)
|
||||
void
|
||||
MonotCubicInterpolator::
|
||||
addPair(double newx, double newf) throw(const char*) {
|
||||
if (isnan(newx) || isinf(newx) || isnan(newf) || isinf(newf)) {
|
||||
if (std::isnan(newx) || std::isinf(newx) || std::isnan(newf) || std::isinf(newf)) {
|
||||
throw("MonotCubicInterpolator: addPair() received inf/nan input.");
|
||||
}
|
||||
data[newx] = newf ;
|
||||
@ -179,7 +179,7 @@ double
|
||||
MonotCubicInterpolator::
|
||||
evaluate(double x) const throw(const char*){
|
||||
|
||||
if (isnan(x) || isinf(x)) {
|
||||
if (std::isnan(x) || std::isinf(x)) {
|
||||
throw("MonotCubicInterpolator: evaluate() received inf/nan input.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user