Merge branch 'master' into pygromacs
[alexxy/gromacs.git] / src / gromacs / gmxlib / inputrec.cpp
index cf642041c354f4552a2556fee1dfdbc0cfd8d7e8..d30f41f08cfd335c9cc4548006d8e4c91b3e2bb5 100644 (file)
@@ -182,7 +182,7 @@ int ir_optimal_nstpcouple(const t_inputrec *ir)
     }
     else
     {
-        n = (int)(ir->tau_p/(ir->delta_t*nmin) + 0.001);
+        n = static_cast<int>(ir->tau_p/(ir->delta_t*nmin) + 0.001);
         if (n < 1)
         {
             n = 1;