Function ErrorMessages::Switch¶
Defined in File ErrorMessages.h
Function Documentation¶
-
void ErrorMessages::Switch(std::string routine, std::string variable_name, int variable)¶
Logs an error about an out-of-range input setting and exits the program.
Writes a message to both the error log file and STDERR, then exits the program. An out-of-range model selection would otherwise leave the model state uninitialised, so execution cannot continue.
- Parameters:
routine – The name of the routine where the error occurred.
variable_name – The name of the variable that is out of range.
variable – The value of the variable that triggered the error.