added preminim
[unres4.git] / source / unres / MD.f90
index 7aaac15..e34b384 100644 (file)
        write (iout,*) "vcm right after adjustment:"
        write (iout,*) (vcm(j),j=1,3) 
       endif
-      if ((.not.rest).and.(indpdb.eq.0)) then          
-         call chainbuild
-         if(iranconf.ne.0) then
+      if (.not.rest) then              
+!         call chainbuild
+         if(iranconf.ne.0 .or.indpdb.gt.0.and..not.unres_pdb .or.preminim) then
           if (overlapsc) then 
            print *, 'Calling OVERLAP_SC'
            call overlap_sc(fail)