| 14 | namespace detail |
| 15 | { |
| 16 | void ValidateUserInput() { |
| 17 | if (growth_factor < min_factor) { |
| 18 | if (Verbose()) { |
| 19 | amrex::Print() << "Warning: user-provided vector growth factor is too small." |
| 20 | << " Clamping to " << min_factor << ". \n"; |
| 21 | } |
| 22 | growth_factor = min_factor; |
| 23 | } |
| 24 | |
| 25 | if (growth_factor > max_factor) { |
| 26 | if (Verbose()) { |
| 27 | amrex::Print() << "Warning: user-provided vector growth factor is too large." |
| 28 | << " Clamping to " << max_factor << ". \n"; |
| 29 | } |
| 30 | growth_factor = max_factor; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | /// \endcond |
| 35 |
no test coverage detected