}
}
-static void chk_bonds(t_idef* idef, int ePBC, rvec* x, matrix box, real tol)
+static void chk_bonds(t_idef* idef, PbcType pbcType, rvec* x, matrix box, real tol)
{
int ftype, k, ai, aj, type;
real b0, blen, deviation;
t_pbc pbc;
rvec dx;
- set_pbc(&pbc, ePBC, box);
+ set_pbc(&pbc, pbcType, box);
for (ftype = 0; (ftype < F_NRE); ftype++)
{
if ((interaction_function[ftype].flags & IF_CHEMBOND) == IF_CHEMBOND)
natoms = new_natoms;
if (tpr)
{
- chk_bonds(&top.idef, ir.ePBC, fr.x, fr.box, tol);
+ chk_bonds(&top.idef, ir.pbcType, fr.x, fr.box, tol);
}
if (fr.bX)
{
{
int natom, i, j, k;
t_topology top;
- int ePBC;
+ PbcType pbcType;
t_atoms* atoms;
rvec * x, *v;
rvec dx;
real* atom_vdw;
fprintf(stderr, "Checking coordinate file %s\n", fn);
- read_tps_conf(fn, &top, &ePBC, &x, &v, box, TRUE);
+ read_tps_conf(fn, &top, &pbcType, &x, &v, box, TRUE);
atoms = &top.atoms;
natom = atoms->nr;
fprintf(stderr, "%d atoms in file\n", atoms->nr);
}
if (bB)
{
- set_pbc(&pbc, ePBC, box);
+ set_pbc(&pbc, pbcType, box);
}
bFirst = TRUE;