42 use utilities,
only : error_handler
45 integer :: ierr, localpet, npets
55 print*,
"- INITIALIZE ESMF"
56 call esmf_initialize(rc=ierr)
57 if(esmf_logfounderror(rctocheck=ierr,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
58 call error_handler(
"INITIALIZING ESMF", ierr)
60 print*,
"- CALL VMGetGlobal"
61 call esmf_vmgetglobal(vm, rc=ierr)
62 if(esmf_logfounderror(rctocheck=ierr,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
63 call error_handler(
"IN VMGetGlobal", ierr)
66 call esmf_vmget(vm, localpet=localpet, petcount=npets, rc=ierr)
67 if(esmf_logfounderror(rctocheck=ierr,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
68 call error_handler(
"IN VMGet", ierr)
70 print*,
'- NPETS IS ',npets
71 print*,
'- LOCAL PET ',localpet
115 print*,
"- CALL ESMF_finalize"
116 call esmf_finalize(endflag=esmf_end_keepmpi, rc=ierr)
118 call mpi_finalize(ierr)
program chgres
Initialize an FV3 model run.
Process atmospheric fields.
subroutine, public atmosphere_driver(localpet)
Driver routine to process for atmospheric fields.
Sets up the ESMF grid objects for the input data grid and target FV3 grid.
subroutine, public define_target_grid(localpet, npets)
Setup the esmf grid object for the target grid.
subroutine, public cleanup_input_target_grid_data
Deallocate all esmf grid objects.
subroutine, public define_input_grid(localpet, npets)
Driver routine to setup the esmf grid object for the input grid.
This module contains code to read the setup namelist file, handle the varmap file for GRIB2 data,...
subroutine, public read_setup_namelist(filename)
Reads program configuration namelist.
subroutine, public read_varmap
Reads the variable mapping table, which is required for initializing with GRIB2 data.
logical, public convert_sfc
Convert sfc data when true.
logical, public convert_atm
Convert atmospheric data when true.
Process surface and nst fields.
subroutine, public surface_driver(localpet)
Driver routine to process surface/nst data.