Make Compartment, Channel, ChannelHistory and Domaint into enum classes
[alexxy/gromacs.git] / src / gromacs / mdtypes / inputrec.h
index edc6b797691a95621036db17c44762292862b196..60c95bfdccf9333d41879c4aee526bbde7f2ee41 100644 (file)
@@ -276,7 +276,7 @@ struct t_swapGroup
     //! The global ion group atoms numbers
     int* ind;
     //! Requested number of molecules of this type per compartment
-    int nmolReq[eCompNR];
+    gmx::EnumerationArray<Compartment, int> nmolReq;
 };
 
 struct t_swapcoords
@@ -298,7 +298,7 @@ struct t_swapcoords
     //! Ion counts may deviate from the requested values by +-threshold before a swap is done
     real threshold;
     //! Offset of the swap layer (='bulk') with respect to the compartment-defining layers
-    real bulkOffset[eCompNR];
+    gmx::EnumerationArray<Compartment, real> bulkOffset;
     //! Number of groups to be controlled
     int ngrp;
     //! All swap groups, including split and solvent