Skip to content

Commit

Permalink
Fix logfile input dump
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Aug 10, 2023
1 parent 568b7c9 commit f869a80
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/NaluWind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ void NaluWind::init_prolog(bool multi_solver_mode)
// Dump the input yaml to the start of the logfile
// before the nalu banner
auto& env = sierra::nalu::NaluEnv::self();
if (!env.parallel_rank()) {
std::cout << std::string(20, '#') << " INPUT FILE START "
<< std::string(20, '#') << std::endl;
sierra::nalu::NaluParsingHelper::emit(std::cout, m_doc);
std::cout << std::string(20, '#') << " INPUT FILE END "
<< std::string(20, '#') << std::endl;
}
env.naluOutputP0() << std::string(20, '#') << " INPUT FILE START "
<< std::string(20, '#') << std::endl;
sierra::nalu::NaluParsingHelper::emit(*env.naluLogStream_, m_doc);
env.naluOutputP0() << 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 f869a80

Please sign in to comment.