corrections to changes form nostromo
[unres.git] / source / unres / src_MD-M / MREMD.F
index b3db8ab..7a70f1d 100644 (file)
@@ -700,7 +700,8 @@ c Update the time safety limiy
             safety=time001-time00+600
             write (iout,*) "****** SAFETY increased to",safety," s"
           endif
-          if (ovrtim()) end_of_run=.true.
+          if (ovrtim() .and. me.eq.king) end_of_run=.true.
+          call MPI_Bcast(end_of_run,1,MPI_LOGICAL,king,CG_COMM,IERR)
         endif
         if(synflag.and..not.end_of_run) then
            time02=MPI_WTIME()