Skip to content

Commit

Permalink
Always dump input file to the logfile (Exawind#1201)
Browse files Browse the repository at this point in the history
* Always dump input file to the logfile

Make it so the input file is echoed into the log file so we always know what parameters were used to run the case.

* Style

* Fix typos
  • Loading branch information
psakievich authored Aug 2, 2023
1 parent 5c5f3d0 commit 89db3e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nalu.C
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,12 @@ main(int argc, char** argv)

// proceed with reading input file "document" from YAML
YAML::Node doc = YAML::LoadFile(inputFileName.c_str());
if (debug) {
if (!naluEnv.parallel_rank())
sierra::nalu::NaluParsingHelper::emit(std::cout, doc);
if (!naluEnv.parallel_rank()) {
std::cout << std::string(20, '#') << " INPUT FILE START "
<< std::string(20, '#') << std::endl;
sierra::nalu::NaluParsingHelper::emit(std::cout, doc);
std::cout << std::string(20, '#') << " INPUT FILE END "
<< std::string(20, '#') << std::endl;
}

// Hypre general parameter setting
Expand Down

0 comments on commit 89db3e7

Please sign in to comment.