Modernize wallcycle counting
[alexxy/gromacs.git] / src / gromacs / ewald / pme_pp.cpp
index 3a929daf1f5437e337fa8f0122ed1990316c6923..63693ed6a631eefa32d71151cc46d928b5cb89ec 100644 (file)
@@ -371,7 +371,7 @@ void gmx_pme_send_coordinates(t_forcerec*           fr,
                               GpuEventSynchronizer* coordinatesReadyOnDeviceEvent,
                               gmx_wallcycle*        wcycle)
 {
-    wallcycle_start(wcycle, ewcPP_PMESENDX);
+    wallcycle_start(wcycle, WallCycleCounter::PpPmeSendX);
 
     unsigned int flags = PP_PME_COORD;
     if (computeEnergyAndVirial)
@@ -399,7 +399,7 @@ void gmx_pme_send_coordinates(t_forcerec*           fr,
                                sendCoordinatesFromGpu,
                                coordinatesReadyOnDeviceEvent);
 
-    wallcycle_stop(wcycle, ewcPP_PMESENDX);
+    wallcycle_stop(wcycle, WallCycleCounter::PpPmeSendX);
 }
 
 void gmx_pme_send_finish(const t_commrec* cr)