Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | Index | |||
integer, | intent(out) | :: | NumRows | |||
integer, | intent(out) | :: | NumCols |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
SUBROUTINE Get2DMatrixDimensions(Index, NumRows, NumCols)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN June 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! <description>
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: Index ! pointer index to location in MatData
INTEGER, INTENT(OUT) :: NumRows
INTEGER, INTENT(OUT) :: NumCols
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
IF (Index > 0) Then
NumRows = MatData(Index)%Dim(1)
NumCols = MatData(Index)%Dim(2)
ELSE
! do nothing (?) throw dev error?
ENDIF
RETURN
END SUBROUTINE Get2DMatrixDimensions