mk_field_r4_2d Function

public function mk_field_r4_2d(farray, name, rc) result(field)

Arguments

Type IntentOptional Attributes Name
real(kind=ESMF_KIND_R4), intent(in), dimension(:,:), target :: farray
character(len=*), intent(in) :: name
integer, intent(out), optional :: rc

Return Value type(ESMF_Field)


Calls

proc~~mk_field_r4_2d~~CallsGraph proc~mk_field_r4_2d mk_field_r4_2d esmf_fieldget esmf_fieldget proc~mk_field_r4_2d->esmf_fieldget proc~mapl_return MAPL_Return proc~mk_field_r4_2d->proc~mapl_return proc~mapl_verify MAPL_Verify proc~mk_field_r4_2d->proc~mapl_verify proc~mk_field_common mk_field_common proc~mk_field_r4_2d->proc~mk_field_common at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception proc~mapl_verify->proc~mapl_throw_exception proc~mk_field_common->proc~mapl_return proc~mk_field_common->proc~mapl_verify esmf_fieldcreate esmf_fieldcreate proc~mk_field_common->esmf_fieldcreate proc~mk_grid mk_grid proc~mk_field_common->proc~mk_grid proc~mk_grid->proc~mapl_return proc~mk_grid->proc~mapl_verify ESMF_GridCreateNoPeriDim ESMF_GridCreateNoPeriDim proc~mk_grid->ESMF_GridCreateNoPeriDim

Called by

proc~~mk_field_r4_2d~~CalledByGraph proc~mk_field_r4_2d mk_field_r4_2d interface~mk_field mk_field interface~mk_field->proc~mk_field_r4_2d proc~mk_r4field mk_r4field proc~mk_r4field->interface~mk_field proc~mk_r8field mk_r8field proc~mk_r8field->interface~mk_field proc~set_up_data set_up_data proc~set_up_data->interface~mk_field proc~set_up_data~2 set_up_data proc~set_up_data~2->interface~mk_field proc~test_fieldconvertprec_r4r8 test_FieldConvertPrec_R4R8 proc~test_fieldconvertprec_r4r8->interface~mk_field proc~test_fieldaddr4 test_FieldAddR4 proc~test_fieldaddr4->proc~mk_r4field proc~test_fieldaddr8 test_FieldAddR8 proc~test_fieldaddr8->proc~mk_r8field

Source Code

   function mk_field_r4_2d(farray, name, rc) result(field)
      real(kind=ESMF_KIND_R4), dimension(:,:), target, intent(in) :: farray
      character(len=*), intent(in) :: name
      integer, optional, intent(out) :: rc

      type(ESMF_Field) :: field
      real(kind=ESMF_KIND_R4), dimension(:,:), pointer :: ptr

      integer :: status

      field = mk_field_common(tk = ESMF_TYPEKIND_R4, name = name, _RC)
      call ESMF_FieldGet(field, farrayPtr = ptr, _RC)

      ptr = farray

      _RETURN(_SUCCESS)
   end function mk_field_r4_2d