Skip to content

Commit

Permalink
Always dump the nalu input to logfile
Browse files Browse the repository at this point in the history
Same behavior as Exawind/nalu-wind#1201
  • Loading branch information
psakievich authored Aug 2, 2023
1 parent e93bc6c commit c6913ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/NaluWind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ NaluWind::~NaluWind() = default;

void NaluWind::init_prolog(bool multi_solver_mode)
{
// Dump the input yaml to the start of the logfile
// before the nalu banner
if (!env.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;
}
m_sim.load(m_doc);
if (m_sim.timeIntegrator_->overset_ != nullptr)
m_sim.timeIntegrator_->overset_->set_multi_solver_mode(
Expand Down

0 comments on commit c6913ce

Please sign in to comment.