Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | FileUnit | |||
type(RootFinderDataType), | intent(in) | :: | RootFinderData |
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 DebugRootFinder( FileUnit, RootFinderData )
! SUBROUTINE INFORMATION:
! AUTHOR Dimitri Curtil (LBNL)
! DATE WRITTEN April 2006
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine writes the current min/max range and lower/upper bracket to
! the standard output file.
!
! Used only for debugging.
!
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
TYPE(RootFinderDataType), INTENT(IN) :: RootFinderData ! Data used by root finding algorithm
! SUBROUTINE PARAMETER DEFINITIONS:
INTEGER, INTENT(IN) :: FileUnit ! File unit where to write debugging info
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
! FLOW:
! UNIT=0 should correspond to the standard output file (screen).
WRITE(FileUnit,'(A)',ADVANCE='No') 'Current = '
CALL WritePoint( FileUnit, RootFinderData%CurrentPoint, .TRUE. )
WRITE(FileUnit,*)
WRITE(FileUnit,'(A)',ADVANCE='No') 'Min = '
CALL WritePoint( FileUnit, RootFinderData%MinPoint, .TRUE. )
WRITE(FileUnit,*)
WRITE(FileUnit,'(A)',ADVANCE='No') 'Lower = '
CALL WritePoint( FileUnit, RootFinderData%LowerPoint, .FALSE. )
WRITE(FileUnit,*)
WRITE(FileUnit,'(A)',ADVANCE='No') 'Upper = '
CALL WritePoint( FileUnit, RootFinderData%UpperPoint, .FALSE. )
WRITE(FileUnit,*)
WRITE(FileUnit,'(A)',ADVANCE='No') 'Max = '
CALL WritePoint( FileUnit, RootFinderData%MaxPoint, .TRUE. )
WRITE(FileUnit,*)
RETURN
END SUBROUTINE DebugRootFinder