Skip to content

Commit

Permalink
Removed extraneous arrays. Added appropriate doxygen documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarissaReames-NOAA committed Mar 15, 2024
1 parent 48109ca commit 5c99fb6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sorc/chgres_cube.fd/static_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ end subroutine get_static_fields
!! @param[in] i_target the "i" dimension of the target model tile
!! @param[in] j_target the "j" dimension of the target model tile
!! @param[in] tile the tile number of be processed
!! @param[in] land_frac landcover fraction on the target model tile
!! @param[out] data_one_tile the processed surface data on the tile
!! @param[out] max_data_one_tile for fields with multiple time periods, the max
!! yearly value on the tile
Expand All @@ -299,7 +300,7 @@ subroutine read_static_file(field, i_target, j_target, tile, &
min_data_one_tile)

use netcdf
use model_grid, only : tiles_target_grid, land_frac_target_grid
use model_grid, only : tiles_target_grid
use program_setup, only : fix_dir_target_grid, cres_target_grid, &
cycle_mon, cycle_day, cycle_hour

Expand All @@ -326,8 +327,6 @@ subroutine read_static_file(field, i_target, j_target, tile, &
real(esmf_kind_r8) :: num_days, num_days_rec1, rinc(5)
real(esmf_kind_r8) :: weight_rec1, weight_rec2

real(esmf_kind_r8), allocatable :: land_frac_target_tile(:,:)

if (trim(field) == 'facsf') filename = "/" // trim(cres_target_grid) // ".facsf." // trim(tiles_target_grid(tile)) // ".nc"
if (trim(field) == 'maximum_snow_albedo') filename = "/" // trim(cres_target_grid) // ".maximum_snow_albedo." // trim(tiles_target_grid(tile)) // ".nc"
if (trim(field) == 'slope_type') filename = "/" // trim(cres_target_grid) // ".slope_type." // trim(tiles_target_grid(tile)) // ".nc"
Expand Down

0 comments on commit 5c99fb6

Please sign in to comment.