MEF90Ctx_Type Derived Type

type, public, extends(MEF90Object) :: MEF90Ctx_Type


Components

Type Visibility Attributes Name Initial
integer(kind=C_INT32_T), public :: comm
character(kind=c_char, len=MEF90MXSTRLEN), public :: geometryfile
character(kind=c_char, len=MEF90MXSTRLEN), public :: name = "NULL"
integer(kind=C_INT32_T), public :: numProcs
character(kind=c_char, len=MEF90MXSTRLEN), public :: prefix
integer(kind=C_INT32_T), public :: rank
type(tPetscViewer), public :: resultViewer

The options are not stored: they are read from the options database where they are needed, with MEF90CtxGlobalOptionsSetFromOptions. Its options argument is intent(inout), so a caller that wants a default of its own sets it on the record before the call.

character(kind=c_char, len=MEF90MXSTRLEN), public :: resultfile

Type-Bound Procedures

procedure, public, pass(self) :: setFromOptions => MEF90CtxSetFromOptions

  • public subroutine MEF90CtxSetFromOptions(self, ierr)

    Author
    Blaise Bourdin (2012-2014, bourdin@lsu.edu) Blaise Bourdin (2026, bourdin@mcmaster.ca)

    MEF90CtxSetFromOptions: initializes a MEF90Ctx_Type from options

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90Ctx_Type), intent(inout) :: self
    integer(kind=C_INT32_T), intent(inout) :: ierr

procedure, public, pass(self) :: view => MEF90Object_view

  • private subroutine MEF90Object_view(self, viewer, ierr)

    Author
    Blaise Bourdin (2026, bourdin@mcmaster.ca)

    MEF90Object_view: Views a MEF90Object and flagged it as viewed so that it is not viewed multiple times when -verbose is set to a high value

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90Object), intent(in) :: self
    type(tPetscViewer), intent(in) :: viewer
    integer(kind=C_INT32_T), intent(inout) :: ierr

procedure, public, pass(self) :: view_internal => MEF90CtxView

  • public subroutine MEF90CtxView(self, viewer, ierr)

    Author
    Blaise Bourdin (2026, bourdin@mcmaster.ca)

    MEF90CtxView: the default viewer for a MEF90Ctx_Type

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90Ctx_Type), intent(in) :: self
    type(tPetscViewer), intent(in) :: viewer
    integer(kind=C_INT32_T), intent(inout) :: ierr