Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | NameToVerify | |||
character(len=*), | intent(in), | DIMENSION(:) | :: | NamesList | ||
integer, | intent(in) | :: | NumOfNames | |||
logical, | intent(out) | :: | ErrorFound | |||
logical, | intent(out) | :: | IsBlank | |||
character(len=*), | intent(in) | :: | StringToDisplay |
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.
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 VerifyName(NameToVerify,NamesList,NumOfNames,ErrorFound,IsBlank,StringToDisplay)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN February 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine verifys that a new name can be added to the
! list of names for this item (i.e., that there isn't one of that
! name already and that this name is not blank).
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: NameToVerify
CHARACTER(len=*), DIMENSION(:), INTENT(IN) :: NamesList
INTEGER, INTENT(IN) :: NumOfNames
LOGICAL, INTENT(OUT) :: ErrorFound
LOGICAL, INTENT(OUT) :: IsBlank
CHARACTER(len=*), INTENT(IN) :: StringToDisplay
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Found
ErrorFound=.false.
IF (NumOfNames > 0) THEN
Found=FindItem(NameToVerify,NamesList,NumOfNames)
IF (Found /= 0) THEN
CALL ShowSevereError(TRIM(StringToDisplay)//', duplicate name='//TRIM(NameToVerify))
ErrorFound=.true.
ENDIF
ENDIF
IF (NameToVerify == ' ') THEN
CALL ShowSevereError(TRIM(StringToDisplay)//', cannot be blank')
ErrorFound=.true.
IsBlank=.true.
ELSE
IsBlank=.false.
ENDIF
RETURN
END SUBROUTINE VerifyName