replace C-style include files with their C++ equivalents

This commit is contained in:
Axel Kohlmeyer
2018-04-27 17:41:04 -04:00
parent d5ec76290b
commit e4071d7f46
1309 changed files with 3075 additions and 3098 deletions

View File

@ -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])