diff --git a/diag_manager/diag_util.F90 b/diag_manager/diag_util.F90 index 34dc13fb29..55ef7ae3a1 100644 --- a/diag_manager/diag_util.F90 +++ b/diag_manager/diag_util.F90 @@ -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'