Move nr_nonperturbed out of t_ilist
[alexxy/gromacs.git] / src / gromacs / topology / idef.h
index 15c010e286c48ee702f994c67efa113c799d1bdc..269d531fc0380b7a7fa022e4f0ff0cf22ecee8c9 100644 (file)
@@ -244,7 +244,6 @@ struct t_ilist
     int size() const { return nr; }
 
     int      nr;
-    int      nr_nonperturbed;
     t_iatom* iatoms;
     int      nalloc;
 };
@@ -345,7 +344,9 @@ typedef struct t_idef
     int         iparams_posres_nalloc, iparams_fbposres_nalloc;
 
     t_ilist il[F_NRE];
-    int     ilsort;
+    /* The number of non-perturbed interactions at the start of each entry in il */
+    int numNonperturbedInteractions[F_NRE];
+    int ilsort;
 } t_idef;
 
 /*