File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ // mam4xx: Copyright (c) 2022,
2+ // Battelle Memorial Institute and
3+ // National Technology & Engineering Solutions of Sandia, LLC (NTESS)
4+ // SPDX-License-Identifier: BSD-3-Clause
5+
6+ #ifndef PHYSICAL_LIMITS_HPP
7+ #define PHYSICAL_LIMITS_HPP
8+
9+ namespace mam4 {
10+ KOKKOS_INLINE_FUNCTION
11+ constexpr Real interstitial_aerosol_number_min () { return 0 ; }
12+ KOKKOS_INLINE_FUNCTION
13+ constexpr Real interstitial_aerosol_number_max () { return 1e13 ; }
14+ KOKKOS_INLINE_FUNCTION
15+ void check_valid_interstitial_aerosol_number (const Real aero_num) {
16+ EKAT_KERNEL_REQUIRE_MSG (interstitial_aerosol_number_min () <= aero_num &&
17+ aero_num < interstitial_aerosol_number_max (),
18+ " Computed total interstitial aerosol number outside "
19+ " of the resonable baounds of 0 to 1e13." );
20+ }
21+ } // namespace mam4
22+
23+ #endif
You can’t perform that action at this time.
0 commit comments