Skip to content

Commit 20e012f

Browse files
committed
maybe fix the isnan thing
1 parent a16301b commit 20e012f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/output/COutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ bool COutput::Convergence_Monitoring(CConfig *config, unsigned long Iteration) {
840840
su2double monitor = historyOutput_Map.at(convField).value;
841841

842842
/*--- Stop the simulation in case a nan appears, do not save the solution ---*/
843-
if (isnan(SU2_TYPE::GetValue(monitor))) {
843+
if (std::isnan(SU2_TYPE::GetValue(monitor))) {
844844
SU2_MPI::Error("SU2 has diverged (NaN detected).", CURRENT_FUNCTION);
845845
}
846846

@@ -968,7 +968,7 @@ bool COutput::MonitorTimeConvergence(CConfig *config, unsigned long TimeIteratio
968968
su2double monitor = historyOutput_Map[WndConv_Field].value;
969969

970970
/*--- Stop the simulation in case a nan appears, do not save the solution ---*/
971-
if (isnan(SU2_TYPE::GetValue(monitor))) {
971+
if (std::isnan(SU2_TYPE::GetValue(monitor))) {
972972
SU2_MPI::Error("SU2 has diverged (NaN detected).", CURRENT_FUNCTION);
973973
}
974974

0 commit comments

Comments
 (0)