const int mindex[],
rvec x[],
rvec mu[],
- int ePBC,
+ PbcType pbcType,
const matrix box,
const t_atom* atom,
const int* nAtom)
}
}
}
- set_pbc(&pbc, ePBC, box);
+ set_pbc(&pbc, pbcType, box);
grp0 = 0;
grp1 = ncos - 1;
for (i = 0; i < ngrp[grp0]; i++)
}
static void do_dip(const t_topology* top,
- int ePBC,
+ PbcType pbcType,
real volume,
const char* fn,
const char* out_mtot,
gkrbin = mk_gkrbin(rcut, rcmax, bPhi, ndegrees);
}
- gpbc = gmx_rmpbc_init(&top->idef, ePBC, natom);
+ gpbc = gmx_rmpbc_init(&top->idef, pbcType, natom);
/* Start while loop over frames */
t0 = t;
if (bGkr)
{
- do_gkr(gkrbin, ncos, gnx, molindex, mols->index, x, dipole, ePBC, box, atom, gkatom);
+ do_gkr(gkrbin, ncos, gnx, molindex, mols->index, x, dipole, pbcType, box, atom, gkatom);
}
if (bTotal)
int npargs;
t_pargs* ppa;
t_topology* top;
- int ePBC;
+ PbcType pbcType;
int k, natoms;
matrix box;
}
snew(top, 1);
- ePBC = read_tpx_top(ftp2fn(efTPR, NFILE, fnm), nullptr, box, &natoms, nullptr, nullptr, top);
+ pbcType = read_tpx_top(ftp2fn(efTPR, NFILE, fnm), nullptr, box, &natoms, nullptr, nullptr, top);
snew(gnx, ncos);
snew(grpname, ncos);
}
nFF[0] = nFA;
nFF[1] = nFB;
- do_dip(top, ePBC, det(box), ftp2fn(efTRX, NFILE, fnm), opt2fn("-o", NFILE, fnm),
+ do_dip(top, pbcType, det(box), ftp2fn(efTRX, NFILE, fnm), opt2fn("-o", NFILE, fnm),
opt2fn("-eps", NFILE, fnm), opt2fn("-a", NFILE, fnm), opt2fn("-d", NFILE, fnm),
opt2fn_null("-cos", NFILE, fnm), opt2fn_null("-dip3d", NFILE, fnm),
opt2fn_null("-adip", NFILE, fnm), bPairs, corrtype[0], opt2fn("-c", NFILE, fnm), bGkr,