Commit f7c37a7a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

adapt isfinite() handling to upstream

parent 095ca76b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");
  }
}