imax0 replaced with max0
[unres.git] / source / unres / src_MIN / energy_p_new_barrier.F
index 8943726..740912a 100644 (file)
@@ -4709,7 +4709,7 @@ C
           sinkt(k)=dsin(k*theti2)
         enddo
 C        if (i.gt.3) then
-        if (i.gt.3 .and. itype(imax0(i-3,1)).ne.ntyp1) then
+        if (i.gt.3 .and. itype(max0(i-3,1)).ne.ntyp1) then
 #ifdef OSF
           phii=phi(i)
           if (phii.ne.phii) phii=150.0