MEF90DefMechCreate Subroutine

public subroutine MEF90DefMechCreate(DefMechCtx, dm, MEF90Ctx, prefix, ierr)

MEF90DefMechCreate: allocates all the fields of a MEF90DefMech_Type

Arguments

Type IntentOptional Attributes Name
type(MEF90DefMech_Type), intent(out), target :: DefMechCtx

DefMech has the target attribute so that DefMech%PETScCtx can be handed over to PETSc as an application context. The actual argument MUST therefore also have the target attribute.

type(tDM), intent(in), target :: dm
type(MEF90Ctx_Type), intent(in), target :: MEF90Ctx
character(len=*), intent(in) :: prefix
integer(kind=C_INT32_T), intent(inout) :: ierr