*/
#include "gmxpre.h"
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cmath>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include "gromacs/commandline/pargs.h"
#include "gromacs/fileio/enxio.h"
/* Skip until we come to pressure */
for (i = 0; (i < F_NRE); i++)
{
- if (strcmp(names[i].name, interaction_function[F_PRES].longname) == 0)
+ if (std::strcmp(names[i].name, interaction_function[F_PRES].longname) == 0)
{
break;
}
snew(ld, 1);
for (; (i < nre); i++)
{
- if ((strstr(names[i].name, ligand) != NULL) &&
- (strstr(names[i].name, self) == NULL))
+ if ((std::strstr(names[i].name, ligand) != NULL) &&
+ (std::strstr(names[i].name, self) == NULL))
{
- if (strstr(names[i].name, "LJ") != NULL)
+ if (std::strstr(names[i].name, "LJ") != NULL)
{
ld->nlj++;
srenew(ld->lj, ld->nlj);
ld->lj[ld->nlj-1] = i;
}
- else if (strstr(names[i].name, "Coul") != NULL)
+ else if (std::strstr(names[i].name, "Coul") != NULL)
{
ld->nqq++;
srenew(ld->qq, ld->nqq);
FILE *out;
int nre, nframes = 0, ct = 0;
ener_file_t fp;
- gmx_bool bCont;
t_liedata *ld;
gmx_enxnm_t *enm = NULL;
t_enxframe *fr;
if (nframes > 0)
{
printf("DGbind = %.3f (%.3f)\n", lieaver/nframes,
- sqrt(lieav2/nframes-sqr(lieaver/nframes)));
+ std::sqrt(lieav2/nframes-sqr(lieaver/nframes)));
}
do_view(oenv, ftp2fn(efXVG, NFILE, fnm), "-nxy");