lib/io/parser.cc
/**
 ********************************************************************************************************************************************
 * \brief   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.
 ********************************************************************************************************************************************
 */
\brief   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.
\ brief 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 .
void parser::writeParams() {
    std::cout << std::endl << "Writing all parameters from the YAML input file for reference" << std::endl << std::endl;
    std::cout << "\t****************** START OF parameters.yaml ******************" << std::endl << std::endl;
    std::ifstream inFile;
    inFile.open("input/parameters.yaml", std::ifstream::in);
    std::string line;
    while (std::getline(inFile, line)) {
        std::cout << line << std::endl;
    }
    inFile.close();
    std::cout << std::endl << "\t******************* END OF parameters.yaml *******************" << std::endl;
    std::cout << std::endl;
}
void parser :: writeParams ( ) { std :: cout << std :: endl << " " << std :: endl << std :: endl ; std :: cout << " \t " << std :: endl << std :: endl ; std :: ifstream inFile ; inFile . open ( " " , std :: ifstream :: in ) ; std :: string line ; while ( std :: getline ( inFile , line ) ) { std :: cout << line << std :: endl ; } inFile . close ( ) ; std :: cout << std :: endl << " \t " << std :: endl ; std :: cout << std :: endl ; }
\brief   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.
\ brief 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 .