Skip to content

Commit

Permalink
mom-ocean#23. Updating the string comparison when dictating the outp…
Browse files Browse the repository at this point in the history
…ut_name of a given diagnostic
  • Loading branch information
Erik Mason committed Nov 15, 2016
1 parent 4346ec2 commit aa351fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diag_manager/diag_util.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1552,14 +1552,14 @@ SUBROUTINE init_output_field(module_name, field_name, output_name, output_file,&
CASE ( 'maximum', 'max' )
output_fields(out_num)%time_max = .TRUE.
l1 = LEN_TRIM(output_fields(out_num)%output_name)
IF ( output_fields(out_num)%output_name(l1-2:l1) /= 'max' ) &
IF ( lowercase(trim(adjustl(output_fields(out_num)%output_name(l1-2:l1)))) /= 'max' ) &
output_fields(out_num)%output_name = TRIM(output_name)//'_max'
method_selected = method_selected+1
t_method = 'max'
CASE ( 'minimum', 'min' )
output_fields(out_num)%time_min = .TRUE.
l1 = LEN_TRIM(output_fields(out_num)%output_name)
IF ( output_fields(out_num)%output_name(l1-2:l1) /= 'min' )&
IF ( lowercase(trim(adjustl(output_fields(out_num)%output_name(l1-2:l1)))) /= 'min' )&
& output_fields(out_num)%output_name = TRIM(output_name)//'_min'
method_selected = method_selected+1
t_method = 'min'
Expand Down

0 comments on commit aa351fc

Please sign in to comment.