Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_GridComp), | intent(inout) | :: | comp | |||
type(ESMF_State), | intent(inout) | :: | importState | |||
type(ESMF_State), | intent(inout) | :: | exportState | |||
type(ESMF_Clock), | intent(in) | :: | clock | |||
integer, | intent(out) | :: | rc |
subroutine user_run(comp, importState, exportState, clock, rc) type(ESMF_GridComp), intent(inout) :: comp type(ESMF_State), intent(inout) :: importState, exportState type(ESMF_Clock), intent(in) :: clock integer, intent(out) :: rc ! ! Local variables type(ESMF_Field) :: humidity integer :: status print *, "User Comp Run starting" ! Get information from the component. ! call ESMF_StatePrint(importState, rc=status) call ESMF_StateGetField(importState, "humidity", humidity, rc=status) ! call ESMF_FieldPrint(humidity, "", rc=status) ! This is where the model specific computation goes. print *, "Imported Array in user model 2:" print *, "User Comp Run returning" rc = status end subroutine user_run