Skip to content

Commit

Permalink
Converted warning about depth_list to a note
Browse files Browse the repository at this point in the history
The message that a file is being created was issued as a WARNING
when we all agree it should really be a NOTE. Depth_list.nc is
read if it is present to avoid recomputing a sorted list, but the
absence of the file is not an error and does not warrant a warning.

Changes:
- Changed WARNING to NOTE.
- Removed MOM_mesg from imports since it wasn't being used.
  • Loading branch information
adcroft authored and marshallward committed Jul 21, 2023
1 parent a5129ca commit bb71c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diagnostics/MOM_sum_output.F90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module MOM_sum_output
use MOM_coms, only : sum_across_PEs, PE_here, root_PE, num_PEs, max_across_PEs, field_chksum
use MOM_coms, only : reproducing_sum, reproducing_sum_EFP, EFP_to_real, real_to_EFP
use MOM_coms, only : EFP_type, operator(+), operator(-), assignment(=), EFP_sum_across_PEs
use MOM_error_handler, only : MOM_error, FATAL, WARNING, is_root_pe, MOM_mesg
use MOM_error_handler, only : MOM_error, FATAL, WARNING, NOTE, is_root_pe
use MOM_file_parser, only : get_param, log_param, log_version, param_file_type
use MOM_forcing_type, only : forcing
use MOM_grid, only : ocean_grid_type
Expand Down Expand Up @@ -1077,7 +1077,7 @@ subroutine depth_list_setup(G, GV, US, DL, CS)
valid_DL_read = .true. ! Otherwise there would have been a fatal error.
endif
else
if (is_root_pe()) call MOM_error(WARNING, "depth_list_setup: "// &
if (is_root_pe()) call MOM_error(NOTE, "depth_list_setup: "// &
trim(CS%depth_list_file)//" does not exist. Creating a new file.")
valid_DL_read = .false.
endif
Expand Down

0 comments on commit bb71c34

Please sign in to comment.