max_template instead of fix number 19 in wham and cluster
[unres.git] / source / cluster / wham / src / energy_p_new.F
index 1fc05cb..a5ba7fb 100644 (file)
@@ -3106,7 +3106,7 @@ c
       include 'COMMON.SETUP'
       include 'COMMON.NAMES'
 
-      do i=1,19
+      do i=1,max_template
         distancek(i)=9999999.9
       enddo