44 integer :: ierr, localpet, npets
54 print*,
"- INITIALIZE ESMF"
55 call esmf_initialize(rc=ierr)
56 if(esmf_logfounderror(rctocheck=ierr,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
59 print*,
"- CALL VMGetGlobal"
60 call esmf_vmgetglobal(vm, rc=ierr)
61 if(esmf_logfounderror(rctocheck=ierr,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
65 call esmf_vmget(vm, localpet=localpet, petcount=npets, rc=ierr)
66 if(esmf_logfounderror(rctocheck=ierr,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
69 print*,
'- NPETS IS ',npets
70 print*,
'- LOCAL PET ',localpet
106 if (convert_sfc)
then
114 print*,
"- CALL ESMF_finalize"
115 call esmf_finalize(endflag=esmf_end_keepmpi, rc=ierr)
117 call mpi_finalize(ierr)
subroutine, public cleanup_input_target_grid_data
Deallocate all esmf grid objects.
Process surface and nst fields.
subroutine, public read_setup_namelist(filename)
Reads program configuration namelist.
Sets up the ESMF grid objects for the input data grid and target FV3 grid.
Process atmospheric fields.
subroutine, public atmosphere_driver(localpet)
Driver routine to process for atmospheric fields.
subroutine error_handler(string, rc)
General error handler.
This module contains code to read the setup namelist file, handle the varmap file for GRIB2 data...
subroutine, public read_varmap
Reads the variable mapping table, which is required for initializing with GRIB2 data.
program chgres
Initialize an FV3 model run.
subroutine, public define_input_grid(localpet, npets)
Driver routine to setup the esmf grid object for the input grid.
subroutine, public define_target_grid(localpet, npets)
Setup the esmf grid object for the target grid.
subroutine, public surface_driver(localpet)
Driver routine to process surface/nst data.