39 type(esmf_regridmethod_flag) :: method
47 print*,
"- INITIALIZE ESMF" 48 call esmf_initialize(rc=rc)
49 if(esmf_logfounderror(rctocheck=rc,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
52 print*,
"- CALL VMGetGlobal" 53 call esmf_vmgetglobal(vm, rc=rc)
54 if(esmf_logfounderror(rctocheck=rc,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
58 call esmf_vmget(vm, localpet=localpet, petcount=npets, rc=rc)
59 if(esmf_logfounderror(rctocheck=rc,msg=esmf_logerr_passthru,line=__line__,file=__file__)) &
62 print*,
'- NPETS IS ',npets
63 print*,
'- LOCAL PET ',localpet
83 method=esmf_regridmethod_nearest_stod
91 method=esmf_regridmethod_bilinear
101 method=esmf_regridmethod_bilinear
112 method=esmf_regridmethod_bilinear
121 method=esmf_regridmethod_bilinear
130 method=esmf_regridmethod_nearest_stod
139 method=esmf_regridmethod_nearest_stod
148 method=esmf_regridmethod_nearest_stod
158 method=esmf_regridmethod_bilinear
168 method=esmf_regridmethod_bilinear
176 print*,
"- CALL ESMF_finalize" 177 call esmf_finalize(endflag=esmf_end_keepmpi, rc=rc)
179 call mpi_finalize(rc)
Set up program execution.
subroutine, public model_grid_cleanup
Model grid cleanup.
subroutine, public define_model_grid(localpet, npets)
Define model grid.
character(len=50), public snowfree_albedo_method
Interpolation method for snowfree albedo.
character(len=500), public input_facsf_file
File containing input fractional coverage data for strong zenith angle dependent albedo.
character(len=500), public input_soil_type_file
File containing input soil type data.
This module defines the model grid.
character(len=500), public input_snowfree_albedo_file
File containing input snow-free albedo data.
character(len=500), public input_maximum_snow_albedo_file
File containing input maximum snow albedo data.
subroutine, public read_setup_namelist(localpet)
Read program setup namelist.
Read grid specs, date information and land/sea mask for the source data that will be interpolated to ...
subroutine, public define_source_grid(localpet, npets, input_file)
Defines esmf grid object for source grid.
subroutine, public source_grid_cleanup
Free up memory associated with this module.
program driver
Reads static surface data on a global lat/lon grid, interpolates the data to the fv3 model grid...
character(len=500), public input_leaf_area_index_file
File containing input leaf area index data.
subroutine, public error_handler(string, rc)
Handle errors.
subroutine interp(localpet, method, input_file)
Read the input source data and interpolate it to the model grid.
character(len=500), public input_vegetation_greenness_file
File containing input vegetation greenness data.
character(len=50), public leaf_area_index_method
Interpolation method for leaf area index.
character(len=500), public input_slope_type_file
File containing input slope type data.
character(len=50), public maximum_snow_albedo_method
Interpolation method for max snow albedo.
character(len=500), public input_soil_color_file
File containing input soil color data.
character(len=500), public input_vegetation_type_file
File containing input vegetation type data.
character(len=500), public input_substrate_temperature_file
File containing input soil substrate temperature data.
character(len=50), public vegetation_greenness_method
Interpolation method for vegetation greenness.