Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(RootFinderDataType), | intent(inout) | :: | RootFinderData | |||
real(kind=r64), | intent(in) | :: | X | |||
real(kind=r64), | intent(in) | :: | Y |
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 UpdateMinMax( RootFinderData, X, Y )
! SUBROUTINE INFORMATION:
! AUTHOR Dimitri Curtil (LBNL)
! DATE WRITTEN February 2006
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine updates the min/max support points in the root finder data.
!
! METHODOLOGY EMPLOYED:
!
! PRECONDITION:
! na
!
! POSTCONDITION:
! - RootFinderData%MinPoint possibly updated
! - RootFinderData%MaxPoint possibly updated
!
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
TYPE(RootFinderDataType), INTENT(INOUT) :: RootFinderData ! Data used by root finding algorithm
REAL(r64), INTENT(IN) :: X ! X value for current iterate
REAL(r64), INTENT(IN) :: Y ! Y value for current iterate, F(X)=Y
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
! FLOW:
! Update min support point
IF ( X == RootFinderData%MinPoint%X ) THEN
RootFinderData%MinPoint%Y = Y
RootFinderData%MinPoint%DefinedFlag = .TRUE.
END IF
! Update max support point
IF ( X == RootFinderData%MaxPoint%X ) THEN
RootFinderData%MaxPoint%Y = Y
RootFinderData%MaxPoint%DefinedFlag = .TRUE.
END IF
RETURN
END SUBROUTINE UpdateMinMax