Skip to content

Commit

Permalink
hello
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak committed Jan 31, 2025
1 parent b0083e8 commit 60e5301
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/particles/plasma/MultiPlasma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ MultiPlasma::InitData (amrex::Vector<amrex::BoxArray> slice_ba,
if(plasma.m_can_laser_injection) {
for (int i=0; i<m_names.size(); ++i) {
if(m_names[i] == plasma.m_product_beam_name) {
plasma.m_product_beam_pc = &m_all_beams[i];
plasma.m_product_beam_pc = &m_all_plasmas[i];
}
}
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(beam.m_product_beam_pc != nullptr,
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(plasma.m_product_beam_pc != nullptr,
"Must specify a valid product beam for laser injection using ionization_product");
}

Expand Down Expand Up @@ -151,8 +151,7 @@ MultiPlasma::DoLaserInjection (
const MultiLaser& laser, const int islice)
{
for (auto& plasma : m_all_plasmas) {
plasma.PlasmaToBeam(beams, beamnames, laser_geom,
MultiLaser& laser, slice);
plasma.PlasmaToBeam(beams, beamnames, laser_geom,laser, islice);
}
}

Expand Down

0 comments on commit 60e5301

Please sign in to comment.