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