| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer | :: | I | ||||
| integer | :: | J | ||||
| integer | :: | RET |
SUBROUTINE GETCACHEINDEX(I, J, RET) ! In: ! I,J (I<=J): state indices ! Out: ! Cache indexing scheme. INTEGER I, J, RET RET = J * (J - 1) / 2 + I END SUBROUTINE GetCacheIndex