gfortran errors
[unres.git] / source / cluster / wham / src-M / initialize_p.F
index 1c83869..40d035c 100644 (file)
@@ -260,15 +260,15 @@ c-------------------------------------------------------------------------
      &   "ECORR6 ","EELLO ","ETURN3 ","ETURN4 ","ETURN6 ",
      &   "EBE bend","ESC SCloc","ETORS ","ETORSD ","EHPB","EVDWPP",
      &   "EVDW2_14","ESTR","ESCCOR","EDIHC","EVDW_T","ELIPTRAN",
-     &   "EAFM","ETHETC"/
+     &   "EAFM","ETHETC",""/
       data wname /
      &   "WSC","WSCP","WELEC","WCORR","WCORR5","WCORR6","WEL_LOC",
      &   "WTURN3","WTURN4","WTURN6","WANG","WSCLOC","WTOR","WTORD",
      &   "WHPB","WVDWPP","WSCP14","WBOND","WSCCOR","WDIHC","WSC",
-     &   "WLIPTRAN","WAFM","WTHETC"/
+     &   "WLIPTRAN","WAFM","WTHETC",""/
       data nprint_ene /22/
       data print_order /1,2,3,18,11,12,13,14,4,5,6,7,8,9,10,19,
-     &  16,15,17,20,21,24,22,23/
+     &  16,15,17,20,21,24,22,23,0/
       end 
 c---------------------------------------------------------------------------
       subroutine init_int_table
@@ -635,7 +635,7 @@ c      include 'COMMON.SETUP'
       link_start_homo=1
       link_end_homo=lim_odl
       idihconstr_start_homo=nnt+3
-      idihconstr_end_homo=lim_dih+3
+      idihconstr_end_homo=lim_dih+nnt-1+3
       write (iout,*)
      &  ' lim_odl',lim_odl,' link_start=',link_start_homo,
      &  ' link_end',link_end_homo,' lim_dih',lim_dih,