MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / ValidateUserInput

Function ValidateUserInput

Src/Base/AMReX_PODVector.cpp:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

InitializeFunction · 0.85
SetGrowthFactorFunction · 0.85

Calls 1

PrintClass · 0.85

Tested by

no test coverage detected