real trunc,
real** mdmat,
int** nmat,
- int ePBC,
+ PbcType pbcType,
matrix box)
{
int i, j, resi, resj;
t_pbc pbc;
rvec ddx;
- set_pbc(&pbc, ePBC, box);
+ set_pbc(&pbc, pbcType, box);
trunc2 = gmx::square(trunc);
for (resi = 0; (resi < nres); resi++)
{
FILE * out = nullptr, *fp;
t_topology top;
- int ePBC;
+ PbcType pbcType;
t_atoms useatoms;
int isize;
int* index;
fprintf(stderr, "Will calculate number of different contacts\n");
}
- read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &ePBC, &x, nullptr, box, FALSE);
+ read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &pbcType, &x, nullptr, box, FALSE);
fprintf(stderr, "Select group for analysis\n");
get_index(&top.atoms, ftp2fn_null(efNDX, NFILE, fnm), 1, &isize, &index, &grpname);
rhi.g = 0.0;
rhi.b = 0.0;
- gpbc = gmx_rmpbc_init(&top.idef, ePBC, trxnat);
+ gpbc = gmx_rmpbc_init(&top.idef, pbcType, trxnat);
if (bFrames)
{
{
gmx_rmpbc(gpbc, trxnat, box, x);
nframes++;
- calc_mat(nres, natoms, rndx, x, index, truncate, mdmat, nmat, ePBC, box);
+ calc_mat(nres, natoms, rndx, x, index, truncate, mdmat, nmat, pbcType, box);
for (i = 0; (i < nres); i++)
{
for (j = 0; (j < natoms); j++)