9 static std::map<std::string, int> event_name_2_code_map{
11 {
"ProgramExecuted", 2},
12 {
"SolverPreInitialize", 31},
13 {
"SolverInitialized", 32},
14 {
"SolverPreExecution", 33},
15 {
"SolverExecuted", 34},
16 {
"SolverPreStep", 35},
18 {
"SolverPreAdvance", 37},
19 {
"SolverAdvanced", 38},
22 const auto it = event_name_2_code_map.find(event_name);
23 if (it != event_name_2_code_map.end())
return it->second;
int GetStandardEventCode(const std::string &event_name)