adapt isfinite() handling to upstream

This commit is contained in:
Axel Kohlmeyer 2018-05-05 11:46:35 -04:00
parent 095ca76b5b
commit f7c37a7a98
1 changed files with 2 additions and 2 deletions

View File

@ -1082,7 +1082,7 @@ void FixBocs::couple()
p_current[2] = tensor[2];
}
if (!ISFINITE(p_current[0]) || !ISFINITE(p_current[1]) || !ISFINITE(p_current[2]))
if (!std::isfinite(p_current[0]) || !std::isfinite(p_current[1]) || !std::isfinite(p_current[2]))
error->all(FLERR,"Non-numeric pressure - simulation unstable");
// switch order from xy-xz-yz to Voigt
@ -1092,7 +1092,7 @@ void FixBocs::couple()
p_current[4] = tensor[4];
p_current[5] = tensor[3];
if (!ISFINITE(p_current[3]) || !ISFINITE(p_current[4]) || !ISFINITE(p_current[5]))
if (!std::isfinite(p_current[3]) || !std::isfinite(p_current[4]) || !std::isfinite(p_current[5]))
error->all(FLERR,"Non-numeric pressure - simulation unstable");
}
}