Skip to content

Commit

Permalink
Update fms_diag_reduction_methods.F90
Browse files Browse the repository at this point in the history
  • Loading branch information
ganganoaa authored Jul 25, 2023
1 parent 2a55ad9 commit 7361947
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions diag_manager/fms_diag_reduction_methods.F90
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ subroutine fms_diag_update_extremum(flag, buffer_obj, field_data, recon_bounds,
type is (real(kind=r8_kind))
real_counter(sample) = 1.0_r8_kind
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported intrinsic type')
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum'//&
' Unsupported type of buffer_obj%count_0d')
end select
type is (outputBuffer1d_type)
select type (real_counter => buffer_obj%count_0d)
Expand All @@ -367,7 +368,8 @@ subroutine fms_diag_update_extremum(flag, buffer_obj, field_data, recon_bounds,
type is (real(kind=r8_kind))
real_counter(sample) = 1.0_r8_kind
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported intrinsic type')
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum'//&
' Unsupported type of buffer_obj%count_0d')
end select
type is (outputBuffer2d_type)
select type (real_counter => buffer_obj%count_0d)
Expand All @@ -376,7 +378,8 @@ subroutine fms_diag_update_extremum(flag, buffer_obj, field_data, recon_bounds,
type is (real(kind=r8_kind))
real_counter(sample) = 1.0_r8_kind
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported intrinsic type')
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum'//&
' Unsupported type of buffer_obj%count_0d')
end select
type is (outputBuffer3d_type)
select type (real_counter => buffer_obj%count_0d)
Expand All @@ -385,7 +388,8 @@ subroutine fms_diag_update_extremum(flag, buffer_obj, field_data, recon_bounds,
type is (real(kind=r8_kind))
real_counter(sample) = 1.0_r8_kind
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported intrinsic type')
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum'//&
' Unsupported type of buffer_obj%count_0d')
end select
type is (outputBuffer4d_type)
select type (real_counter => buffer_obj%count_0d)
Expand All @@ -394,7 +398,8 @@ subroutine fms_diag_update_extremum(flag, buffer_obj, field_data, recon_bounds,
type is (real(kind=r8_kind))
real_counter(sample) = 1.0_r8_kind
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported intrinsic type')
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum'//&
' Unsupported type of buffer_obj%count_0d')
end select
type is (outputBuffer5d_type)
select type (real_counter => buffer_obj%count_0d)
Expand All @@ -403,7 +408,8 @@ subroutine fms_diag_update_extremum(flag, buffer_obj, field_data, recon_bounds,
type is (real(kind=r8_kind))
real_counter(sample) = 1.0_r8_kind
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported intrinsic type')
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum'//&
' Unsupported type of buffer_obj%count_0d')
end select
class default
call mpp_error(FATAL, 'fms_diag_reduction_methods_mod::fms_diag_update_extremum unsupported buffer type')
Expand Down Expand Up @@ -474,7 +480,8 @@ subroutine update_scalar_extremum(flag, field_data, buffer, mask, sample, recon_
end where
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum"//&
" buffer type does not match with field_data type.")
end select
type is (real(kind=r8_kind))
select type (buffer)
Expand All @@ -493,7 +500,8 @@ subroutine update_scalar_extremum(flag, field_data, buffer, mask, sample, recon_
end where
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum"//&
" buffer type does not match with field_data type.")
end select
type is (integer(kind=i4_kind))
select type (buffer)
Expand All @@ -512,7 +520,8 @@ subroutine update_scalar_extremum(flag, field_data, buffer, mask, sample, recon_
end where
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum"//&
" buffer type does not match with field_data type.")
end select
type is (integer(kind=i8_kind))
select type (buffer)
Expand All @@ -531,7 +540,8 @@ subroutine update_scalar_extremum(flag, field_data, buffer, mask, sample, recon_
end where
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum"//&
" buffer type does not match with field_data type.")
end select
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_scalar_extremum unsupported field data type")
Expand Down Expand Up @@ -605,7 +615,8 @@ subroutine update_array_extremum(flag, field_data, buffer, mask, sample, recon_b
end if
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum"//&
" buffer type does not match with field_data type.")
end select
type is (real(kind=r8_kind))
select type (buffer)
Expand Down Expand Up @@ -636,7 +647,8 @@ subroutine update_array_extremum(flag, field_data, buffer, mask, sample, recon_b
end if
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum"//&
" buffer type does not match with field_data type.")
end select
type is (integer(kind=i4_kind))
select type (buffer)
Expand Down Expand Up @@ -667,7 +679,8 @@ subroutine update_array_extremum(flag, field_data, buffer, mask, sample, recon_b
end if
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum"//&
" buffer type does not match with field_data type.")
end select
type is (integer(kind=i8_kind))
select type (buffer)
Expand Down Expand Up @@ -698,7 +711,8 @@ subroutine update_array_extremum(flag, field_data, buffer, mask, sample, recon_b
end if
end if
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum type mismatch")
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum"//&
" buffer type does not match with field_data type.")
end select
class default
call mpp_error( FATAL, "fms_diag_reduction_methods_mod::update_array_extremum unsupported field data type")
Expand Down

0 comments on commit 7361947

Please sign in to comment.