Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn committed Feb 14, 2024
1 parent 8edacf6 commit 216ca5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/OpenPMDWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ OpenPMDWriter::CopyBeams (MultiBeam& beams, const amrex::Vector< std::string > b
m_uint64_beam_data[ibeam][idx].get() + m_offset[ibeam]);
}

AMREX_ALWAYS_ASSERT_WITH_MESSAGE(m_real_beam_data.size() == soa.NumRealComps(),
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(m_real_beam_data[ibeam].size() == soa.NumRealComps(),
"List of real names in openPMD Writer class do not match the beam");

for (std::size_t idx=0; idx<m_real_beam_data[ibeam].size(); idx++) {
Expand Down

0 comments on commit 216ca5e

Please sign in to comment.