Merge branch 'UCGM' of mmka.chem.univ.gda.pl:unres4 into UCGM
[unres4.git] / source / unres / MREMD.F90
index 37c7720..f8e88e8 100644 (file)
         itime_mat=itime
         if(ntwe.ne.0) then
           if (mod(itime,ntwe).eq.0) then
+!              energy_dec=.true.
+!              write(iout,*) "before returnbox"
+!              call etotal(potEcomp)
+!              call enerprint(potEcomp)
+              call returnbox
+!              write(iout,*) "after returnbox"
               call statout(itime)
+!              call etotal(potEcomp)
+!              energy_dec=.false.
               call enerprint(potEcomp)
           endif
         endif
              call secondary2(.true.)
              call pdbout(potE,tytul,ipdb)
           else 
+              call returnbox
              call cartout(totT)
           endif
         endif