update
[unres.git] / source / unres / src_MD-M / mc.F
index ec5b87b..a513794 100644 (file)
@@ -328,7 +328,8 @@ C Decide whether to generate a random conformation or perturb the old one
             if (print_mc.gt.0 .and. (it/print_freq)*print_freq.eq.it) 
      &        write (iout,'(2a,i3)') 'Random-generated conformation',
      &        ' - chain regrown from residue',nstart_grow
-            call gen_rand_conf(nstart_grow,*30)
+            nrestmp=nres
+            call gen_rand_conf(nstart_grow,nrestmp,*30)
           endif
           call geom_to_var(nvar,varia)
           endif ! pool