Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate compiler warning in chgres_cube #456

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove some unused variables that can cause warnings
depending on the compiler.

Fixes #450
  • Loading branch information
GeorgeGayno-NOAA committed Apr 23, 2021
commit 466eae186edfbabc6e50fa0f0f71d414d11e7829
4 changes: 2 additions & 2 deletions sorc/chgres_cube.fd/input_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6045,11 +6045,11 @@ subroutine read_winds(file,inv,u,v,localpet)
real(esmf_kind_r8) :: d2r

integer :: varnum_u, varnum_v, vlev, & !ncid, id_var, &
error, iret, i,istr
error, iret, istr

character(len=20) :: vname
character(len=50) :: method_u, method_v
character(len=250) :: file_coord, cmdline_msg
character(len=250) :: file_coord
character(len=10000) :: temp_msg

d2r=acos(-1.0_esmf_kind_r8) / 180.0_esmf_kind_r8
Expand Down
4 changes: 2 additions & 2 deletions sorc/chgres_cube.fd/model_grid.F90
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ subroutine define_input_grid_grib2(localpet, npets)
use netcdf
use wgrib2api
use program_setup, only : grib2_file_input_grid, data_dir_input_grid, &
fix_dir_input_grid, external_model
fix_dir_input_grid
implicit none

character(len=500) :: the_file, temp_file
Expand All @@ -826,7 +826,7 @@ subroutine define_input_grid_grib2(localpet, npets)
real(esmf_kind_r8) :: deltalon, dx
integer :: ncid,id_var, id_dim
real(esmf_kind_r8), pointer :: lat_src_ptr(:,:), lon_src_ptr(:,:)
character(len=10000) :: cmdline_msg, temp_msg, temp_msg2
character(len=10000) :: temp_msg
character(len=10) :: temp_num = 'NA'

num_tiles_input_grid = 1
Expand Down
5 changes: 2 additions & 3 deletions sorc/chgres_cube.fd/surface.F90
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ subroutine surface_driver(localpet)
read_input_nst_data

use program_setup, only : calc_soil_params_driver, &
convert_nst, &
vgtyp_from_climo, &
sotyp_from_climo
convert_nst

use static_data, only : get_static_fields, &
cleanup_static_fields

Expand Down