Skip to content

Commit 4070f08

Browse files
committed
Remove energy from mode output for eigenmode simulations
1 parent 3a47a0e commit 4070f08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

palace/models/postoperator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ void PostOperator<solver_t>::MeasureDomainFieldEnergy() const
562562
{
563563
Mpi::Print(" Field energy H = {:.3e} J\n", measurement_cache.domain_H_field_energy_all);
564564
}
565-
else
565+
else if constexpr (solver_t != config::ProblemData::Type::EIGENMODE)
566566
{
567567
Mpi::Print(" Field energy E ({:.3e} J) + H ({:.3e} J) = {:.3e} J\n",
568568
measurement_cache.domain_E_field_energy_all,
@@ -978,7 +978,7 @@ auto PostOperator<solver_t>::MeasureAndPrintAll(int step, const ComplexVector &e
978978
table.insert(Column("err_back", "Error (Bkwd.)") << error_abs);
979979
table.insert(Column("err_abs", "Error (Abs.)") << error_bkwd);
980980
table[0].print_as_int = true;
981-
Mpi::Print("{}", table.format_table());
981+
Mpi::Print("{}", (step == 0) ? table.format_table() : table.format_row(0));
982982
}
983983
MeasureAllImpl();
984984

0 commit comments

Comments
 (0)