Skip to main content

Display

Display the content of DOF object.

If you want to see the content of DOF_ object on terminal screen or in an external file, then you can use Display function as shown below.

CALL Display( DOF_::obj, CHAR:: msg, INT::unitNo)

If you want to see the fortran vector in nice format, then you can use Display method in the following way

CALL Display( Real::Vec(:), DOF_::obj, CHAR::"some message", INT::unitNo )
CALL Display( RealVector_::Vec, DOF_::obj, CHAR::"some message", INT::unitNo )

Interface 1

INTERFACE
MODULE SUBROUTINE Display(obj, msg, UnitNo)
CLASS(DOF_), INTENT(IN) :: obj
CHARACTER(*), INTENT(IN) :: msg
INTEGER(I4B), INTENT(IN), OPTIONAL :: UnitNo
END SUBROUTINE Display
END INTERFACE

This method prints the content of DOF_ object on terminal screen or in an external file.

Interface 2

INTERFACE
MODULE SUBROUTINE Display(Vec, obj, msg, unitno)
REAL(DFP), INTENT(IN) :: Vec(:)
CLASS(DOF_), INTENT(IN) :: obj
CHARACTER(*), INTENT(IN) :: msg
INTEGER(I4B), OPTIONAL, INTENT(IN) :: unitno
END SUBROUTINE Display
END INTERFACE

This method pretty print the fortran vector.

Interface 3

INTERFACE
MODULE SUBROUTINE Display(Vec, obj, msg, unitno)
CLASS(RealVector_), INTENT(IN) :: Vec
CLASS(DOF_), INTENT(IN) :: obj
CHARACTER(*), INTENT(IN) :: msg
INTEGER(I4B), OPTIONAL, INTENT(IN) :: unitno
END SUBROUTINE Display
END INTERFACE

This method pretty print the realvector.