Test_CubedSphereGeomFactory.pf Source File


This file depends on

sourcefile~~test_cubedspheregeomfactory.pf~~EfferentGraph sourcefile~test_cubedspheregeomfactory.pf Test_CubedSphereGeomFactory.pf sourcefile~cubedspheregeomfactory.f90 CubedSphereGeomFactory.F90 sourcefile~test_cubedspheregeomfactory.pf->sourcefile~cubedspheregeomfactory.f90 sourcefile~geomspec.f90 GeomSpec.F90 sourcefile~test_cubedspheregeomfactory.pf->sourcefile~geomspec.f90 sourcefile~cubedspheregeomfactory.f90->sourcefile~geomspec.f90 sourcefile~cubedspheregeomspec.f90 CubedSphereGeomSpec.F90 sourcefile~cubedspheregeomfactory.f90->sourcefile~cubedspheregeomspec.f90 sourcefile~geomfactory.f90 GeomFactory.F90 sourcefile~cubedspheregeomfactory.f90->sourcefile~geomfactory.f90 sourcefile~keywordenforcer.f90 KeywordEnforcer.F90 sourcefile~cubedspheregeomfactory.f90->sourcefile~keywordenforcer.f90 sourcefile~pfio.f90 pFIO.F90 sourcefile~cubedspheregeomfactory.f90->sourcefile~pfio.f90

Source Code

#define I_AM_PFUNIT
#include "MAPL_ErrLog.h"

module Test_CubedSphereGeomFactory
   use pfunit
   use mapl3g_GeomSpec
   use mapl3g_CubedSphereGeomFactory
   use esmf
   implicit none

contains

   @test(npes=[6])
   subroutine test_make_from_hconfig(this)
      class(MpiTestMethod), intent(inout) :: this

      type(ESMF_HConfig) :: hconfig
      integer :: status
      type(CubedSphereGeomFactory) :: factory
      class(GeomSpec), allocatable :: geom_spec
      type(ESMF_Geom) :: geom

      hconfig = ESMF_HConfigCreate(content="{im_world: 12, nx: 1, ny: 1}", rc=status)
      @assert_that(status, is(0))

      allocate(geom_spec, source=factory%make_spec(hconfig, rc=status))
      @assert_that(status, is(0))

      geom = factory%make_geom(geom_spec, rc=status)
      @assert_that(status, is(0))
   end subroutine test_make_from_hconfig


end module Test_CubedSphereGeomFactory