test_FieldCOPY_R8 Subroutine

public subroutine test_FieldCOPY_R8(this)

Arguments

Type IntentOptional Attributes Name
class(MpiTestMethod), intent(inout) :: this

Calls

proc~~test_fieldcopy_r8~~CallsGraph proc~test_fieldcopy_r8 test_FieldCOPY_R8 assertequal assertequal proc~test_fieldcopy_r8->assertequal esmf_fieldget esmf_fieldget proc~test_fieldcopy_r8->esmf_fieldget interface~fieldcopy FieldCOPY proc~test_fieldcopy_r8->interface~fieldcopy proc~mapl_verify MAPL_Verify proc~test_fieldcopy_r8->proc~mapl_verify proc~mapl_throw_exception MAPL_throw_exception proc~mapl_verify->proc~mapl_throw_exception

Source Code

   subroutine test_FieldCOPY_R8(this)
      class(MpiTestMethod), intent(inout) :: this
      type(ESMF_Field) :: x
      type(ESMF_Field) :: y
      real(kind=ESMF_KIND_R8), dimension(:,:), pointer :: x_ptr
      real(kind=ESMF_KIND_R8), dimension(:,:), pointer :: y_ptr
      integer :: status, rc

      x = XR8
      y = YR8
      call FieldCOPY(x, y, _RC)
      call ESMF_FieldGet(x, farrayPtr = x_ptr, _RC)
      call ESMF_FieldGet(y, farrayPtr = y_ptr, _RC)
      @assertEqual(x_ptr, y_ptr)

   end subroutine test_FieldCOPY_R8