Merge branch 'devel' into AFM
[unres.git] / source / wham / src-NEWSC-NEWCORR / icant.f
diff --git a/source/wham/src-NEWSC-NEWCORR/icant.f b/source/wham/src-NEWSC-NEWCORR/icant.f
new file mode 100644 (file)
index 0000000..8dc1ec1
--- /dev/null
@@ -0,0 +1,9 @@
+      INTEGER FUNCTION ICANT(I,J)
+      IF (I.GE.J) THEN
+        ICANT=(I*(I-1))/2+J
+      ELSE
+        ICANT=(J*(J-1))/2+I
+      ENDIF
+      RETURN
+      END
+