X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD-M%2FMREMD.F;h=308f33ddff19d9ec6b209979d6a782ed38dfbb3a;hb=d08714f78c15b514e27f71cfea9d625e43132ea9;hp=b3db8ab2e9cce54c764eecb4800acf8519a0176b;hpb=d0d389b657069f2239991163a15a46c42a36e097;p=unres.git diff --git a/source/unres/src_MD-M/MREMD.F b/source/unres/src_MD-M/MREMD.F index b3db8ab..308f33d 100644 --- a/source/unres/src_MD-M/MREMD.F +++ b/source/unres/src_MD-M/MREMD.F @@ -1,4 +1,4 @@ -#define DEBUG +c#define DEBUG subroutine MREMD implicit real*8 (a-h,o-z) include 'DIMENSIONS' @@ -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()