Adding Input Parameters¶
Add the keyword in the appropriate parser file. E.g., src/parser/parse_reaction.cpp for reaction parameters or src/parser/parse_molFile.cpp for molecule parameters. Follow existing examples.
Define the keyword. E.g., enum RxnKeyword in include/classes/class_Parameters.hpp or include/class/class_Rxns.cpp.
Declare the variable. E.g., include/classes/class_Rxns.hpp or include/classes/class_bngl_parser.hpp or include/classes/class_MolTemplate.hpp.
Set the variable value from input. E.g., src/classes/class_bngl_parser_functions.cpp and src/classes/class_rxns.cpp, or src/classes/class_Parameters.cpp, or src/classes/class_MolTemplate.cpp.
For reaction parameters, ensure they are assigned in all relevant places, such as parsedRxn and forwardRxn. E.g., src/classes/class_rxns.cpp.
Add the variable to an existing variable, if necessary. E.g., in src/parser/parse_reaction.cpp.
Add to restart functionality in both src/io/write_restart.cpp and src/io/read_restart.cpp.