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__)) &
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__)) &
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__)) &
70 print*,
'- NPETS IS ',npets
71 print*,
'- LOCAL PET ',localpet
107 if (convert_sfc)
then
115 print*,
"- CALL ESMF_finalize"
116 call esmf_finalize(endflag=esmf_end_keepmpi, rc=ierr)
118 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.