X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=source%2Funres%2Fsrc_MD%2FMREMD.F;h=4aad494e334b33cd73e59b4f322c497b019019f6;hb=1d656a815651f26cc5ccb9ccf24d66cbbae2a048;hp=65f7dd0bad61a7ad30c50787253a84e9859db2e6;hpb=88c9804a273df101470add9049bec50351c39fdb;p=unres.git diff --git a/source/unres/src_MD/MREMD.F b/source/unres/src_MD/MREMD.F index 65f7dd0..4aad494 100644 --- a/source/unres/src_MD/MREMD.F +++ b/source/unres/src_MD/MREMD.F @@ -1415,10 +1415,17 @@ cd call flush(iout) & CG_COMM,ierr) cd write (iout,*) "After scatter" cd call flush(iout) - if(usampl.or.hremd.gt.0.or.homol_nset.gt.1) - & call mpi_scatter(iremd_iset,1,mpi_integer, + if(usampl.or.hremd.gt.0.or.homol_nset.gt.1) then + call mpi_scatter(iremd_iset,1,mpi_integer, & iset,1,mpi_integer,king, & CG_COMM,ierr) +c 8/31/2015 Correction by AL: send new iset to slaves + if (nfgtasks.gt.1) then + call MPI_Bcast(11,1,MPI_INTEGER,king,FG_COMM,IERROR) + call MPI_Bcast(iset,1,MPI_INTEGER,king,FG_COMM,IERROR) + endif + + endif time07=MPI_WTIME() if (me.eq.king .or. .not. out1file) then