#include "config.h"
-#include <assert.h>
-#include <math.h>
+#include <cassert>
+#include <cmath>
#include "gromacs/fileio/confio.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/topology/atoms.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/futil.h"
+#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/smalloc.h"
#ifdef GMX_USE_PLUGINS
real pt;
int ct;
gmx_bool bOK, bRet, bMissingData = FALSE, bSkip = FALSE;
- int dummy = 0;
int ftp;
bRet = FALSE;
{
t_fileio *fio;
gmx_bool bFirst, bOK;
- int dummy = 0;
int ftp = fn2ftp(fn);
- gmx_int64_t *tng_ids;
clear_trxframe(fr, TRUE);
fr->flags = flags;
{
snew(fr->v, fr->natoms);
}
- fio = (*status)->fio = gmx_fio_open(fn, "r");
+ (*status)->fio = gmx_fio_open(fn, "r");
break;
case efXTC:
if (read_first_xtc(fio, &fr->natoms, &fr->step, &fr->time, fr->box, &fr->x,
&fr->prec, &bOK) == 0)
{
- assert(!bOK);
+ GMX_RELEASE_ASSERT(!bOK, "Inconsistent results - OK status from read_first_xtc, but 0 atom coords read");
fr->not_ok = DATA_NOT_OK;
}
if (fr->not_ok)