Vectors in history_t
[alexxy/gromacs.git] / src / gromacs / listed_forces / orires.cpp
index 17bfa83b655a971f68fdf04c24cd1cc2d07f6c61..1ec9cef352005a8a2a7b866571c4482ab9a89f8d 100644 (file)
@@ -194,8 +194,7 @@ void init_orires(FILE*                 fplog,
         globalState->flags |= enumValueToBitMask(StateEntry::OrireInitF);
         globalState->hist.orire_initf = 1;
         globalState->flags |= enumValueToBitMask(StateEntry::OrireDtav);
-        globalState->hist.norire_Dtav = od->nr * 5;
-        snew(globalState->hist.orire_Dtav, globalState->hist.norire_Dtav);
+        globalState->hist.orire_Dtav.resize(od->nr * 5);
     }
 
     snew(od->oinsl, od->nr);