MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / validateAndSetDefaultValidationEpsilon

Function validateAndSetDefaultValidationEpsilon

quest/src/core/envvars.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110void validateAndSetDefaultValidationEpsilon(const char* caller) {
111
112 // permit unspecified, falling back to the hardcoded precision-specific default
113 string name = envvar_names::DEFAULT_VALIDATION_EPSILON;
114 if (!isEnvVarSpecified(name))
115 return;
116
117 // otherwise, validate user passed a positive real integer (or zero)
118 string value = getSpecifiedEnvVarValue(name);
119 validate_envVarDefaultValidationEpsilon(value, caller);
120
121 // overwrite default env-var value
122 envvar_values::DEFAULT_VALIDATION_EPSILON = parser_parseReal(value);
123}
124
125
126

Callers 1

Calls 4

isEnvVarSpecifiedFunction · 0.85
getSpecifiedEnvVarValueFunction · 0.85
parser_parseRealFunction · 0.85

Tested by

no test coverage detected