NullRegridder.F90 Source File


This file depends on

sourcefile~~nullregridder.f90~~EfferentGraph sourcefile~nullregridder.f90 NullRegridder.F90 sourcefile~errorhandling.f90 ErrorHandling.F90 sourcefile~nullregridder.f90->sourcefile~errorhandling.f90 sourcefile~mapl_throw.f90 MAPL_Throw.F90 sourcefile~errorhandling.f90->sourcefile~mapl_throw.f90

Files dependent on this one

sourcefile~~nullregridder.f90~~AfferentGraph sourcefile~nullregridder.f90 NullRegridder.F90 sourcefile~esmfregridderfactory.f90 EsmfRegridderFactory.F90 sourcefile~esmfregridderfactory.f90->sourcefile~nullregridder.f90 sourcefile~regriddermanager.f90 RegridderManager.F90 sourcefile~regriddermanager.f90->sourcefile~nullregridder.f90 sourcefile~regriddermanager.f90->sourcefile~esmfregridderfactory.f90 sourcefile~regridder_mgr.f90 regridder_mgr.F90 sourcefile~regridder_mgr.f90->sourcefile~regriddermanager.f90 sourcefile~regridaction.f90 RegridAction.F90 sourcefile~regridaction.f90->sourcefile~regridder_mgr.f90 sourcefile~test_regriddermanager.pf Test_RegridderManager.pf sourcefile~test_regriddermanager.pf->sourcefile~regridder_mgr.f90 sourcefile~test_routehandlemanager.pf Test_RouteHandleManager.pf sourcefile~test_routehandlemanager.pf->sourcefile~regridder_mgr.f90 sourcefile~timeinterpolateaction.f90 TimeInterpolateAction.F90 sourcefile~timeinterpolateaction.f90->sourcefile~regridder_mgr.f90 sourcefile~fieldspec.f90 FieldSpec.F90 sourcefile~fieldspec.f90->sourcefile~regridaction.f90 sourcefile~test_timeinterpolateaction.pf Test_TimeInterpolateAction.pf sourcefile~test_timeinterpolateaction.pf->sourcefile~timeinterpolateaction.f90

Source Code

#include "MAPL_Generic.h"

module mapl3g_NullRegridder
   use esmf
   use mapl3g_Regridder
   use mapl_ErrorHandlingMod
   implicit none
   private

   public :: NULL_REGRIDDER

   type, extends(Regridder) :: NullRegridder
      private
   contains
      procedure :: regrid_scalar
   end type NullRegridder

   type(NullRegridder), parameter :: NULL_REGRIDDER = NullRegridder()

contains

   function new_NullRegridder() result(regriddr)
      type(NullRegridder) :: regriddr
      
   end function new_NullRegridder

   subroutine regrid_scalar(this, f_in, f_out, rc)
      class(NullRegridder), intent(inout) :: this
      type(ESMF_Field), intent(inout) :: f_in, f_out
      integer, optional, intent(out) :: rc

      _FAIL('Null regridder')
   end subroutine regrid_scalar

end module mapl3g_NullRegridder