check_variable_range Subroutine

subroutine check_variable_range(output_variable, time_index, met)

Checks whether the value(s) of an output variable are within their specified range of physical values.

Note that range checks are done on the native diagnostic (not to be confused with the netCDF variable which may have different units).

Arguments

Type IntentOptional Attributes Name
type(cable_output_variable_t), intent(in) :: output_variable

The output variable for which to check the range.

integer, intent(in) :: time_index

The current time step index, used for error messages.

type(met_type), intent(in), optional :: met

The met_type instance containing the current meteorological conditions, used for error messages.