replace C-style include files with their C++ equivalents
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
See the README file in the top-level LAMMPS directory.
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include "npair.h"
|
||||
#include "neighbor.h"
|
||||
#include "neigh_request.h"
|
||||
@ -208,7 +208,7 @@ int NPair::exclusion(int i, int j, int itype, int jtype,
|
||||
|
||||
int NPair::coord2bin(double *x, int &ix, int &iy, int &iz)
|
||||
{
|
||||
if (!ISFINITE(x[0]) || !ISFINITE(x[1]) || !ISFINITE(x[2]))
|
||||
if (!std::isfinite(x[0]) || !std::isfinite(x[1]) || !std::isfinite(x[2]))
|
||||
error->one(FLERR,"Non-numeric positions - simulation unstable");
|
||||
|
||||
if (x[0] >= bboxhi[0])
|
||||
|
||||
Reference in New Issue
Block a user