Test_LatLonGeomFactory.pf Source File


This file depends on

sourcefile~~test_latlongeomfactory.pf~~EfferentGraph sourcefile~test_latlongeomfactory.pf Test_LatLonGeomFactory.pf sourcefile~geomspec.f90 GeomSpec.F90 sourcefile~test_latlongeomfactory.pf->sourcefile~geomspec.f90 sourcefile~latlongeomfactory.f90 LatLonGeomFactory.F90 sourcefile~test_latlongeomfactory.pf->sourcefile~latlongeomfactory.f90 sourcefile~latlongeomfactory.f90->sourcefile~geomspec.f90 sourcefile~errorhandling.f90 ErrorHandling.F90 sourcefile~latlongeomfactory.f90->sourcefile~errorhandling.f90 sourcefile~geomfactory.f90 GeomFactory.F90 sourcefile~latlongeomfactory.f90->sourcefile~geomfactory.f90 sourcefile~keywordenforcer.f90 KeywordEnforcer.F90 sourcefile~latlongeomfactory.f90->sourcefile~keywordenforcer.f90 sourcefile~latlongeomspec.f90 LatLonGeomSpec.F90 sourcefile~latlongeomfactory.f90->sourcefile~latlongeomspec.f90 sourcefile~pfio.f90 pFIO.F90 sourcefile~latlongeomfactory.f90->sourcefile~pfio.f90

Source Code

#define I_AM_PFUNIT
#include "MAPL_ErrLog.h"

module Test_LatLonGeomFactory
   use pfunit
   use mapl3g_GeomSpec
   use mapl3g_LatLonGeomFactory
   use esmf
   implicit none

contains

   @test
   subroutine test_make_from_hconfig()

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

      hconfig = ESMF_HConfigCreate(content="{im_world: 12, jm_world: 13, pole: PC, dateline: DC, 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_LatLonGeomFactory