@@ -56,7 +56,7 @@ module AdvCore_GridCompMod
5656! !USES:
5757
5858 use ESMF
59- use MAPL_Mod
59+ use MAPL
6060 use m_set_eta, only: set_eta
6161 use fv_arrays_mod, only: fv_atmos_type, FVPRC, REAL4, REAL8
6262 use fms_mod, only: fms_init, set_domain, nullify_domain
@@ -67,6 +67,7 @@ module AdvCore_GridCompMod
6767
6868 USE FV_StateMod, only: AdvCoreTracers = > T_TRACERS
6969 USE FV_StateMod, only: FV_Atm
70+ use CubeGridPrototype, only: register_grid_and_regridders
7071
7172 implicit none
7273 private
@@ -274,6 +275,7 @@ subroutine SetServices(GC, rc)
274275 if (.NOT. FV3_DynCoreIsRunning) then
275276 ! Make sure FV3 is setup
276277 ! -----------------------
278+ call register_grid_and_regridders()
277279 call fv_init1(FV_Atm, dt, grids_on_my_pe, p_split)
278280 ! Get Domain decomposition
279281 !- ------------------------
@@ -316,7 +318,6 @@ subroutine SetServices(GC, rc)
316318 !- -------------------------------------------------
317319 if (.NOT. FV3_DynCoreIsRunning) then
318320 call fv_init2(FV_Atm, dt, grids_on_my_pe, p_split)
319- call register_grid_and_regridders()
320321 end if
321322
322323 ! Ending with a Generic SetServices call is a MAPL requirement
@@ -935,31 +936,4 @@ subroutine global_integral (QG,Q,PLE,IM,JM,KM,NQ)
935936
936937end subroutine global_integral
937938
938- subroutine register_grid_and_regridders ()
939- use MAPL_GridManagerMod, only: grid_manager
940- use CubedSphereGridFactoryMod, only: CubedSphereGridFactory
941- use MAPL_RegridderManagerMod, only: regridder_manager
942- use MAPL_RegridderSpecMod, only: REGRID_METHOD_BILINEAR
943- use LatLonToCubeRegridderMod
944- use CubeToLatLonRegridderMod
945- use CubeToCubeRegridderMod
946-
947- type (CubedSphereGridFactory) :: factory
948-
949- type (CubeToLatLonRegridder) :: cube_to_latlon_prototype
950- type (LatLonToCubeRegridder) :: latlon_to_cube_prototype
951- type (CubeToCubeRegridder) :: cube_to_cube_prototype
952-
953- call grid_manager% add_prototype(' Cubed-Sphere' ,factory)
954- associate (method = > REGRID_METHOD_BILINEAR, mgr = > regridder_manager)
955- call mgr% add_prototype(' Cubed-Sphere' , ' LatLon' , method, cube_to_latlon_prototype)
956- call mgr% add_prototype(' LatLon' , ' Cubed-Sphere' , method, latlon_to_cube_prototype)
957- call mgr% add_prototype(' Cubed-Sphere' , ' Cubed-Sphere' , method, cube_to_cube_prototype)
958- end associate
959-
960- end subroutine register_grid_and_regridders
961-
962- ! EOC
963- !- -----------------------------------------------------------------------------
964-
965939end module AdvCore_GridCompMod
0 commit comments