#include <algorithm>
-#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/macros.h"
-#include "gromacs/legacyheaders/mdrun.h"
-#include "gromacs/legacyheaders/names.h"
-#include "gromacs/legacyheaders/nrnb.h"
-#include "gromacs/legacyheaders/txtdump.h"
-#include "gromacs/legacyheaders/typedefs.h"
-#include "gromacs/legacyheaders/update.h"
-#include "gromacs/legacyheaders/types/commrec.h"
+#include "gromacs/domdec/domdec_struct.h"
+#include "gromacs/fileio/txtdump.h"
+#include "gromacs/gmxlib/gmx_omp_nthreads.h"
+#include "gromacs/gmxlib/nrnb.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
+#include "gromacs/mdlib/mdrun.h"
+#include "gromacs/mdlib/sim_util.h"
+#include "gromacs/mdlib/update.h"
+#include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/energy.h"
+#include "gromacs/mdtypes/group.h"
+#include "gromacs/mdtypes/inputrec.h"
+#include "gromacs/mdtypes/md_enums.h"
+#include "gromacs/pbcutil/boxutilities.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/random/random.h"
+#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#pragma omp parallel for num_threads(nthreads) schedule(static)
for (n = start; n < start+nr_atoms; n++)
{
+ // Trivial OpenMP region that does not throw
int g;
if (cFREEZE == NULL)
if (ir->eI == eiVV)
{
- if (IR_NPT_TROTTER(ir))
+ if (inputrecNptTrotter(ir))
{
/* This is the complicated version - there are 4 possible calls, depending on ordering.
We start with the initial one. */
/* trotter_seq[4] is etrtNHC for second 1/2 step velocities - leave zero */
}
- else if (IR_NVT_TROTTER(ir))
+ else if (inputrecNvtTrotter(ir))
{
/* This is the easy version - there are only two calls, both the same.
Otherwise, even easier -- no calls */
trotter_seq[2][0] = etrtNHC;
trotter_seq[3][0] = etrtNHC;
}
- else if (IR_NPH_TROTTER(ir))
+ else if (inputrecNphTrotter(ir))
{
/* This is the complicated version - there are 4 possible calls, depending on ordering.
We start with the initial one. */
}
else if (ir->eI == eiVVAK)
{
- if (IR_NPT_TROTTER(ir))
+ if (inputrecNptTrotter(ir))
{
/* This is the complicated version - there are 4 possible calls, depending on ordering.
We start with the initial one. */
/* The second half trotter update */
trotter_seq[4][0] = etrtNHC;
}
- else if (IR_NVT_TROTTER(ir))
+ else if (inputrecNvtTrotter(ir))
{
/* This is the easy version - there is only one call, both the same.
Otherwise, even easier -- no calls */
trotter_seq[1][0] = etrtNHC;
trotter_seq[4][0] = etrtNHC;
}
- else if (IR_NPH_TROTTER(ir))
+ else if (inputrecNphTrotter(ir))
{
/* This is the complicated version - there are 4 possible calls, depending on ordering.
We start with the initial one. */
}
}
- if (IR_NPT_TROTTER(ir) || IR_NPH_TROTTER(ir))
+ if (inputrecNptTrotter(ir) || inputrecNphTrotter(ir))
{
/* add the energy from the barostat thermostat chain */
for (i = 0; i < state->nnhpres; i++)
if (nd > 0.0)
{
- if (IR_NVT_TROTTER(ir))
+ if (inputrecNvtTrotter(ir))
{
/* contribution from the thermal momenta of the NH chain */
for (j = 0; j < nh; j++)