std::array<real, MAXFORCEPARAM> forceParam = { 0.0 };
if (bPBC)
{
- set_pbc(&pbc, -1, box);
+ set_pbc(&pbc, PbcType::Unset, box);
}
for (i = 0; (i < atoms->nr); i++)
{
if (bPBC)
{
- set_pbc(&pbc, epbcXYZ, box);
+ set_pbc(&pbc, PbcType::Xyz, box);
}
for (auto& angle : ang->interactionTypes)
{
int bts[] = { 1, 1, 1, 2 };
matrix box; /* box length matrix */
int natoms; /* number of atoms in one molecule */
- int epbc;
+ PbcType pbcType;
bool bRTP, bTOP, bOPLS;
t_symtab symtab;
real qtot, mtot;
/* Read coordinates */
t_topology* top;
snew(top, 1);
- read_tps_conf(opt2fn("-f", NFILE, fnm), top, &epbc, &x, nullptr, box, FALSE);
+ read_tps_conf(opt2fn("-f", NFILE, fnm), top, &pbcType, &x, nullptr, box, FALSE);
t_atoms* atoms = &top->atoms;
natoms = atoms->nr;
if (atoms->pdbinfo == nullptr)