X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=source%2Funres%2Fsrc_MD%2FMREMD.F;h=e443ec7d01e36b139c72ce07b5069fdfa9719aaf;hb=024c09f85d96670bfddf91ec2305f8a5e2532adc;hp=4aad494e334b33cd73e59b4f322c497b019019f6;hpb=01791e62052ac35cf75895c1a5f3a68ce50a8d0b;p=unres.git diff --git a/source/unres/src_MD/MREMD.F b/source/unres/src_MD/MREMD.F index 4aad494..e443ec7 100644 --- a/source/unres/src_MD/MREMD.F +++ b/source/unres/src_MD/MREMD.F @@ -1,4 +1,3 @@ -#define DEBUG #ifdef MPI subroutine MREMD implicit real*8 (a-h,o-z) @@ -720,7 +719,8 @@ c Update the time safety limiy if (me.eq.king .or. .not. out1file) & 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()