replace C-style include files with their C++ equivalents
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
Contributing authors: Amalie Frischknecht and Ahmed Ismail (SNL)
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include "pppm_tip4p.h"
|
||||
#include "atom.h"
|
||||
#include "domain.h"
|
||||
@ -73,7 +73,7 @@ void PPPMTIP4P::particle_map()
|
||||
double **x = atom->x;
|
||||
int nlocal = atom->nlocal;
|
||||
|
||||
if (!ISFINITE(boxlo[0]) || !ISFINITE(boxlo[1]) || !ISFINITE(boxlo[2]))
|
||||
if (!std::isfinite(boxlo[0]) || !std::isfinite(boxlo[1]) || !std::isfinite(boxlo[2]))
|
||||
error->one(FLERR,"Non-numeric box dimensions - simulation unstable");
|
||||
|
||||
int flag = 0;
|
||||
|
||||
Reference in New Issue
Block a user