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