X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD_DFA%2FMREMD.F;h=576e43dda288d438ed3d57ce0ba1837bad607749;hb=34d3ad3987785642be58fb2f26557d3314215577;hp=0e4045f9200165fb53b3f3aa00c7d4fb874cd8a7;hpb=f690e8b70bab14132839afebf080d4a28363b226;p=unres.git diff --git a/source/unres/src_MD_DFA/MREMD.F b/source/unres/src_MD_DFA/MREMD.F index 0e4045f..576e43d 100644 --- a/source/unres/src_MD_DFA/MREMD.F +++ b/source/unres/src_MD_DFA/MREMD.F @@ -1828,7 +1828,6 @@ ctime call flush(iout) integer*2 i_index & (maxprocs/4,maxprocs/20,maxprocs/200,maxprocs/200) common /przechowalnia/ d_restart1 - integer i2set_(0:maxprocs) write (*,*) "Processor",me," called read1restart" if(me.eq.king)then @@ -1987,16 +1986,13 @@ c & (d_restart1(j,i+2*nres*il),j=1,3) enddo endif #endif -c Corrected AL 8/19/2014: each processor needs whole iset array not only its -c own element -c call mpi_scatter(i2set,1,mpi_integer, -c & iset,1,mpi_integer,king, -c & CG_COMM,ierr) - call mpi_bcast(i2set(0),nodes,mpi_integer,king, - & CG_COMM,ierr) - iset=i2set(me) + call mpi_scatter(i2set,1,mpi_integer, + & iset,1,mpi_integer,king, + & CG_COMM,ierr) + endif + if(me.eq.king) close(irest2) return end