#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/perf_est.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
#include "gromacs/math/vectypes.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/cyclecounter.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/timing/walltime_accounting.h"
#include "gromacs/legacyheaders/types/ifunc.h"
#include "gromacs/math/vec.h"
#include "gromacs/pbcutil/boxutilities.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/topology/block.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/topology/symtab.h"
#include "gromacs/linearalgebra/eigensolver.h"
#include "gromacs/math/do_fit.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pbcutil/rmpbc.h"
#include "gromacs/topology/index.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/linearalgebra/nrjac.h"
#include "gromacs/math/units.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/pbcutil/rmpbc.h"
#include "gromacs/topology/index.h"
#include "gromacs/utility/arraysize.h"
/* note: these arrays should correspond to enums in include/types/enums.h */
-const char *epbc_names[epbcNR+1] =
-{
- "xyz", "no", "xy", "screw", NULL
-};
-
const char *ens_names[ensNR+1] =
{
"Grid", "Simple", NULL
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/ifunc.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/smalloc.h"
PS("cutoff-scheme", ECUTSCHEME(ir->cutoff_scheme));
PI("nstlist", ir->nstlist);
PS("ns-type", ENS(ir->ns_type));
- PS("pbc", EPBC(ir->ePBC));
+ PS("pbc", epbc_names[ir->ePBC]);
PS("periodic-molecules", EBOOL(ir->bPeriodicMols));
PR("verlet-buffer-tolerance", ir->verletbuf_tol);
PR("rlist", ir->rlist);
#include "gromacs/math/3dtransforms.h"
#include "gromacs/math/utilities.h"
#include "gromacs/math/vec.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/random/random.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/cstringutil.h"
* extra argument (the +1)
* these should correspond to names.c and include/types/enums.h
*/
-extern const char *epbc_names[epbcNR+1];
extern const char *etcoupl_names[etcNR+1];
extern const char *epcoupl_names[epcNR+1];
extern const char *epcoupltype_names[epctNR+1];
#define ECUTSCHEME(e) ENUM_NAME(e, ecutsNR, ecutscheme_names)
#define ENS(e) ENUM_NAME(e, ensNR, ens_names)
#define EI(e) ENUM_NAME(e, eiNR, ei_names)
-#define EPBC(e) ENUM_NAME(e, epbcNR, epbc_names)
#define ETCOUPLTYPE(e) ENUM_NAME(e, etcNR, etcoupl_names)
#define EPCOUPLTYPE(e) ENUM_NAME(e, epcNR, epcoupl_names)
#define EPCOUPLTYPETYPE(e) ENUM_NAME(e, epctNR, epcoupltype_names)
#ifndef ENUMS_H_
#define ENUMS_H_
-#ifdef __cplusplus
-extern "C" {
-#endif
-#if 0
-} /* fixes auto-indentation problems */
-#endif
-
/* note: these enums should correspond to the names in gmxlib/names.c */
-enum {
- epbcXYZ, epbcNONE, epbcXY, epbcSCREW, epbcNR
-};
-
enum {
etcNO, etcBERENDSEN, etcNOSEHOOVER, etcYES, etcANDERSEN, etcANDERSENMASSIVE, etcVRESCALE, etcNR
}; /* yes is an alias for berendsen */
GMX_NBLIST_INTERACTION_NR
};
-#ifdef __cplusplus
-}
-#endif
-
#endif /* ENUMS_H_ */
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/mdlib/update.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/mdlib/mdrun_signalling.h"
#include "gromacs/mdlib/tgroup.h"
#include "gromacs/mdlib/vcm.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/mdlib/tgroup.h"
#include "gromacs/mdlib/update.h"
#include "gromacs/mdlib/vsite.h"
+#include "gromacs/pbcutil/pbc.h"
#include "gromacs/random/random.h"
#include "gromacs/timing/wallcycle.h"
#include "gromacs/timing/walltime_accounting.h"
#include <algorithm>
#include "gromacs/legacyheaders/gmx_omp_nthreads.h"
-#include "gromacs/legacyheaders/names.h"
#include "gromacs/legacyheaders/txtdump.h"
#include "gromacs/legacyheaders/types/commrec.h"
#include "gromacs/legacyheaders/types/inputrec.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/smalloc.h"
+const char *epbc_names[epbcNR+1] =
+{
+ "xyz", "no", "xy", "screw", NULL
+};
+
/* Skip 0 so we have more chance of detecting if we forgot to call set_pbc. */
enum {
epbcdxRECTANGULAR = 1, epbcdxTRICLINIC,
extern "C" {
#endif
+enum {
+ epbcXYZ, epbcNONE, epbcXY, epbcSCREW, epbcNR
+};
+
+//! Strings corresponding to epbc enum values.
+extern const char *epbc_names[epbcNR+1];
+
/* Maximum number of combinations of single triclinic box vectors
* required to shift atoms that are within a brick of the size of
* the diagonal of the box to within the maximum cut-off distance.
#include <algorithm>
#include <vector>
-#include "gromacs/legacyheaders/names.h"
#include "gromacs/math/vec.h"
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/selection/position.h"
{
std::string message =
formatString("Computations in the XY plane are not supported with PBC type '%s'",
- EPBC(pbc->ePBC));
+ epbc_names[pbc->ePBC]);
GMX_THROW(NotImplementedError(message));
}
if (pbc->ePBC == epbcXYZ &&