Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / nrama.cpp
index 412fdce66e09d47175953a199b6c9e00bac5a67b..1c92c76e1fd2497bb8d8cad4390b135db99457a6 100644 (file)
@@ -78,7 +78,7 @@ static void calc_dihs(t_xrama* xr)
     t_dih*      dd;
     gmx_rmpbc_t gpbc = nullptr;
 
-    gpbc = gmx_rmpbc_init(xr->idef, xr->ePBC, xr->natoms);
+    gpbc = gmx_rmpbc_init(xr->idef, xr->pbcType, xr->natoms);
     gmx_rmpbc(gpbc, xr->natoms, xr->box, xr->x);
     gmx_rmpbc_done(gpbc);
 
@@ -241,7 +241,7 @@ t_topology* init_rama(gmx_output_env_t* oenv, const char* infile, const char* to
     t_topology* top;
     real        t;
 
-    top = read_top(topfile, &xr->ePBC);
+    top = read_top(topfile, &xr->pbcType);
 
     /*get_dih2(xr,top->idef.functype,&(top->idef.bondeds),&(top->atoms));*/
     get_dih(xr, &(top->atoms));