From 1ee67c20d9ade9883a11f73dadfd27453186c36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Gu=C3=A9nol=C3=A9?= Date: Thu, 5 Mar 2020 11:57:01 +0100 Subject: [PATCH] comments --- src/min_fire.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/min_fire.cpp b/src/min_fire.cpp index ce0f943280..0b0a9d801b 100644 --- a/src/min_fire.cpp +++ b/src/min_fire.cpp @@ -271,8 +271,9 @@ int MinFire::iterate(int maxiter) flagv0 = 1; } - // 1st iter: evauates velocity - // required to limit timestep in case of particles + // evaluates velocties to estimate wether dtv has to be limited + // required when v have been reset + if (flagv0) { dtf = dt * force->ftm2v; energy_force(0); @@ -307,7 +308,7 @@ int MinFire::iterate(int maxiter) MPI_Allreduce(&dtvone,&dtv,1,MPI_DOUBLE,MPI_MIN,world); - // 1st iter: velocities reset to 0 + // reset velocities when necessary if (flagv0) { for (int i = 0; i < nlocal; i++)