}
static void calc_mj(t_topology top,
- int ePBC,
+ PbcType pbcType,
matrix box,
gmx_bool bNoJump,
int isize,
if (!bNoJump)
{
- set_pbc(&pbc, ePBC, box);
+ set_pbc(&pbc, pbcType, box);
}
clear_rvec(tmp);
gmx_bool bNoJump,
gmx_bool bACF,
gmx_bool bINT,
- int ePBC,
+ PbcType pbcType,
t_topology top,
t_trxframe fr,
real temp,
clear_rvec(mjd_tmp);
clear_rvec(mdvec);
clear_rvec(tmp);
- gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms);
+ gpbc = gmx_rmpbc_init(&top.idef, pbcType, fr.natoms);
do
{
gmx_rmpbc_trxfr(gpbc, &fr);
- calc_mj(top, ePBC, fr.box, bNoJump, nmols, indexm, fr.x, mtrans[nfr], mass2, qmol);
+ calc_mj(top, pbcType, fr.box, bNoJump, nmols, indexm, fr.x, mtrans[nfr], mass2, qmol);
for (i = 0; i < isize; i++)
{
int flags = 0;
gmx_bool bACF;
gmx_bool bINT;
- int ePBC = -1;
+ PbcType pbcType = PbcType::Unset;
int nmols;
int i;
real* qmol;
bACF = opt2bSet("-caf", NFILE, fnm);
bINT = opt2bSet("-mc", NFILE, fnm);
- read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &ePBC, nullptr, nullptr, box, TRUE);
+ read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &pbcType, nullptr, nullptr, box, TRUE);
indexfn = ftp2fn_null(efNDX, NFILE, fnm);
snew(grpname, 1);
/* System information is read and prepared, dielectric() processes the frames
* and calculates the requested quantities */
- dielectric(fmj, fmd, outf, fcur, mcor, fmjdsp, bNoJump, bACF, bINT, ePBC, top, fr, temp, bfit, efit,
+ dielectric(fmj, fmd, outf, fcur, mcor, fmjdsp, bNoJump, bACF, bINT, pbcType, top, fr, temp, bfit, efit,
bvit, evit, status, isize, nmols, nshift, index0, indexm, mass2, qmol, eps_rf, oenv);
xvgrclose(fmj);