Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(vector), | intent(in), | DIMENSION(:) | :: | VList | ||
integer, | intent(in) | :: | NSides | |||
type(vector), | intent(inout) | :: | OutNewellAreaVector |
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 CreateNewellAreaVector(VList,NSides,OutNewellAreaVector)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN May 2004
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine creates a "Newell" vector from the vector list for a surface
! face. Also the Newell Area vector.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! Collaboration with Bill Carroll, LBNL.
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
TYPE (Vector), DIMENSION(:), INTENT(IN) :: VList
INTEGER, INTENT(IN) :: NSides
TYPE (Vector), INTENT(INOUT) :: OutNewellAreaVector
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
TYPE (Vector) :: V1
TYPE (Vector) :: V2
INTEGER Vert
OutNewellAreaVector=0.0d0
V1=VList(2)-Vlist(1)
DO Vert=3,NSides
V2=VList(Vert)-VList(1)
OutNewellAreaVector=OutNewellAreaVector+V1*V2
V1=V2
ENDDO
! do vert=1,nsides
! write(outputfiledebug,*) vlist(vert)
! enddo
OutNewellAreaVector=OutNewellAreaVector/2.d0
RETURN
END SUBROUTINE CreateNewellAreaVector