Get field pointer.
Definition at line 36 of file mom_cap_methods.F90.
◆ state_getfldptr_1d()
subroutine mom_cap_methods::state_getfldptr::state_getfldptr_1d |
( |
type(esmf_state), intent(in) |
State, |
|
|
character(len=*), intent(in) |
fldname, |
|
|
real(esmf_kind_r8), dimension(:), intent(in), pointer |
fldptr, |
|
|
integer, intent(out), optional |
rc |
|
) |
| |
|
private |
Get field pointer 1D.
- Parameters
-
[in] | state | ESMF state |
[in] | fldname | Field name |
[in] | fldptr | Pointer to the 1D field |
[out] | rc | Return code |
Definition at line 619 of file mom_cap_methods.F90.
619 type(ESMF_State) ,
intent(in) :: State
620 character(len=*) ,
intent(in) :: fldname
621 real(ESMF_KIND_R8),
pointer ,
intent(in) :: fldptr(:)
622 integer,
optional ,
intent(out) :: rc
625 type(ESMF_Field) :: lfield
627 character(len=*),
parameter :: subname=
'(MOM_cap:State_GetFldPtr)'
629 call esmf_stateget(state, itemname=trim(fldname), field=lfield, rc=lrc)
630 if (esmf_logfounderror(rctocheck=rc, msg=esmf_logerr_passthru, &
634 call esmf_fieldget(lfield, farrayptr=fldptr, rc=lrc)
635 if (esmf_logfounderror(rctocheck=rc, msg=esmf_logerr_passthru, &
640 if (
present(rc)) rc = lrc
◆ state_getfldptr_2d()
subroutine mom_cap_methods::state_getfldptr::state_getfldptr_2d |
( |
type(esmf_state), intent(in) |
State, |
|
|
character(len=*), intent(in) |
fldname, |
|
|
real(esmf_kind_r8), dimension(:,:), intent(in), pointer |
fldptr, |
|
|
integer, intent(out), optional |
rc |
|
) |
| |
|
private |
Get field pointer 2D.
- Parameters
-
[in] | state | ESMF state |
[in] | fldname | Field name |
[in] | fldptr | Pointer to the 2D field |
[out] | rc | Return code |
Definition at line 646 of file mom_cap_methods.F90.
646 type(ESMF_State) ,
intent(in) :: State
647 character(len=*) ,
intent(in) :: fldname
648 real(ESMF_KIND_R8),
pointer ,
intent(in) :: fldptr(:,:)
649 integer,
optional ,
intent(out) :: rc
652 type(ESMF_Field) :: lfield
654 character(len=*),
parameter :: subname=
'(MOM_cap:State_GetFldPtr)'
656 call esmf_stateget(state, itemname=trim(fldname), field=lfield, rc=lrc)
657 if (esmf_logfounderror(rctocheck=rc, msg=esmf_logerr_passthru, &
661 call esmf_fieldget(lfield, farrayptr=fldptr, rc=lrc)
662 if (esmf_logfounderror(rctocheck=rc, msg=esmf_logerr_passthru, &
667 if (
present(rc)) rc = lrc
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/config_src/nuopc_driver/mom_cap_methods.F90