Function ErrorMessages::Switch

Function Documentation

void ErrorMessages::Switch(std::string routine, std::string variable_name, int variable)

Accumulates a warning message about an out-of-range input setting.

This function stores the error message in a stringstream to be written later, thus minimizing file I/O operations during runtime.

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 warning.