Saras
Finite Difference Solver for Fluid Dynamics Simulations
|
Contains all the global variables set by the user through the yaml file. More...
#include "lib/io/parser.h"
Public Member Functions | |
void | writeParams () |
Function to write all the parameter values to I/O. More... | |
Contains all the global variables set by the user through the yaml file.
The class parses the paramters.yaml file and stores all the simulation paramters in publicly accessible constants. The class also has a function to check the consistency of the user set paramters and throw exceptions. The class is best initialized as a constant to prevent inadvertent tampering of the global variables it contains.
void parser::writeParams | ( | ) |
Function to write all the parameter values to I/O.
All the user set parameters have to be written to I/O so that the runlog or any out file contains all the relevant information about the case that was run. This public function has to be called from the solver by one rank only.