distance constraint energy calculation in wham
[unres4.git] / source / wham / wham.F90
index fcf1d15..78304d8 100644 (file)
@@ -15,7 +15,7 @@
       use mpi_data
 !      use mpi_
 #endif
-      use control, only:initialize
+      use control, only:initialize,hpb_partition
 !el      use io_config, only:parmread
 !
 #ifndef ISNAN
 !write(iout,*)"before proc_cont, define frag"
         call proc_cont
         call fragment_list
-        if (constr_dist.gt.0) call read_dist_constr
+      endif
+      if (constr_dist.gt.0) then 
+         call read_dist_constr
+         call hpb_partition
       endif
       write (iout,*) "Begin read_database"
       call flush(iout)