Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_GridComp) | :: | comp | ||||
type(ESMF_State) | :: | importState | ||||
type(ESMF_State) | :: | exportState | ||||
type(ESMF_Clock) | :: | clock | ||||
integer, | intent(out) | :: | rc |
subroutine user_initP3(comp, importState, exportState, clock, rc) type(ESMF_GridComp) :: comp type(ESMF_State) :: importState, exportState type(ESMF_Clock) :: clock integer, intent(out) :: rc ! Local variables type(ESMF_Field) :: field ! Initialize return code rc = ESMF_SUCCESS print *, "User Comp2 Init phase=3 starting" ! Access Field with shared Mesh that is available in the importState call ESMF_StateGet(importState, "dstField", field, rc=rc) if (rc/=ESMF_SUCCESS) return ! bail out ! Allocate memory for data by finishing the creation of the Field call ESMF_FieldEmptyComplete(field, typekind=ESMF_TYPEKIND_R8, rc=rc) if (rc/=ESMF_SUCCESS) return ! bail out print *, "User Comp2 Init phase=3 returning" end subroutine user_initP3