*/
#include "gmxpre.h"
-#include <math.h>
-#include <string.h>
+#include <cmath>
+#include <cstring>
#include "gromacs/commandline/pargs.h"
#include "gromacs/fileio/filenm.h"
{
qq += atoms->atom[j].q;
}
- if (fabs(qq) > 1.0e-5)
+ if (std::abs(qq) > 1.0e-5)
{
srenew(cg, ncg+1);
cg[ncg].q = qq;
}
}
}
- return sqrt(mindist2);
+ return std::sqrt(mindist2);
}
int gmx_saltbr(int argc, char *argv[])
int ePBC;
char *buf;
t_trxstatus *status;
- int i, j, k, m, nnn, teller, ncg, n1, n2, n3, natoms;
+ int i, j, k, m, nnn, teller, ncg;
real t, *time, qi, qj;
t_charge *cg;
real ***cgdist;
int **nWithin;
- double t0, dt;
- char label[234];
t_pbc pbc;
rvec *x;
matrix box;
snew(nWithin[i], ncg);
}
- natoms = read_first_x(oenv, &status, ftp2fn(efTRX, NFILE, fnm), &t, &x, box);
+ read_first_x(oenv, &status, ftp2fn(efTRX, NFILE, fnm), &t, &x, box);
teller = 0;
time = NULL;