Commit a686abdb authored by Christoph Grueninger's avatar Christoph Grueninger
Browse files

Add namespace std:: for usages of isnan and isinf.

(thanks to Timo for finding the issue on Mac; reviewed by kathinka)


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10841 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent e4a5d942
......@@ -1703,7 +1703,7 @@ void FVMPFAL2PFABoundPressure2P<TypeTag>::assemble()
pcFluxReal[2] *= fracFlow34;
pcFluxReal[3] *= fracFlow14;
// if (isnan(pcFluxReal.two_norm()))
// if (std::isnan(pcFluxReal.two_norm()))
// std::cout<<"pcFlux = "<<pcFlux<<"\n";
switch (pressureType_)
......@@ -2249,7 +2249,7 @@ bool FVMPFAL2PFABoundPressure2P<TypeTag>::calculateTransmissibility(
if (sR <= sL)
{
transmissibility = TR1;
// if (isnan(transmissibility.frobenius_norm()))
// if (std::isnan(transmissibility.frobenius_norm()))
// {
// std::cout<<"right transmissibility = "<<transmissibility<<"\n";
// std::cout<<"globalPos1 = "<<globalPos1<<"\n";
......@@ -2280,7 +2280,7 @@ bool FVMPFAL2PFABoundPressure2P<TypeTag>::calculateTransmissibility(
else
{
transmissibility = TL1;
// if (isnan(transmissibility.frobenius_norm()))
// if (std::isnan(transmissibility.frobenius_norm()))
// {
// std::cout<<"left transmissibility = "<<transmissibility<<"\n";
// std::cout<<"globalPos1 = "<<globalPos1<<"\n";
......
......@@ -279,7 +279,7 @@ void FVPressure2P2C<TypeTag>::getStorage(Dune::FieldVector<Scalar, 2>& storageEn
// the pressure Index used as a Primary Variable
storageEntry[rhs] -= cellDataI.pressure(pressureType) * compress_term * volume;
if (isnan(compress_term) || isinf(compress_term))
if (std::isnan(compress_term) || std::isinf(compress_term))
DUNE_THROW(Dune::MathError, "Compressibility term leads to NAN matrix entry at index " << globalIdxI);
if(!GET_PROP_VALUE(TypeTag, EnableCompressibility))
......
......@@ -415,7 +415,7 @@ void FVPressure2P2CMultiPhysics<TypeTag>::get1pStorage(Dune::FieldVector<Scalar,
storageEntry[matrix] -= compress_term*volume;
storageEntry[rhs] -= cellDataI.pressure(pressureType) * compress_term * volume;
if (isnan(compress_term) || isinf(compress_term))
if (std::isnan(compress_term) || std::isinf(compress_term))
DUNE_THROW(Dune::MathError, "Compressibility term leads to NAN matrix entry at index " << globalIdxI);
if(!GET_PROP_VALUE(TypeTag, EnableCompressibility))
......
......@@ -770,7 +770,7 @@ void FVPressureCompositional<TypeTag>::volumeDerivatives(const GlobalPosition& g
mass[compIdx] -= massIncrement[compIdx];
//check routines if derivatives are meaningful
if (isnan(cellData.dv(compIdx)) || isinf(cellData.dv(compIdx)) )
if (std::isnan(cellData.dv(compIdx)) || std::isinf(cellData.dv(compIdx)) )
{
DUNE_THROW(Dune::MathError, "NAN/inf of dV_dm. If that happens in first timestep, try smaller firstDt!");
}
......
......@@ -566,7 +566,7 @@ public:
{
for (int j = 0; j < blockSize; j++)
{
if (isnan(x[i][j]) || isinf(x[i][j]))
if (std::isnan(x[i][j]) || std::isinf(x[i][j]))
{
result_.converged = false;
break;
......
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