Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak committed Feb 2, 2025
1 parent 60e5301 commit 2793b7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/particles/beam/BeamParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ BeamParticleContainer::ReadParameters ()
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( m_duz_per_uz0_dzeta == 0.,
"Tilted beams and correlated energy spreads are only implemented for fixed weight beams");
}

queryWithParserAlt(pp, "initialize_on_cpu", m_initialize_on_cpu, pp_alt);
auto& soa = getBeamInitSlice().GetStructOfArrays();
soa.GetIdCPUData().setArena(
Expand Down
2 changes: 1 addition & 1 deletion src/particles/plasma/MultiPlasma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MultiPlasma::InitData (amrex::Vector<amrex::BoxArray> slice_ba,
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
10 changes: 5 additions & 5 deletions src/particles/plasma/PlasmaParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,10 +768,10 @@ PlasmaToBeam (MultiBeam& beams, const amrex::Vector< std::string > beamnames, co
auto [sum_new_beam_part] = reduce_data.value();
amrex::Gpu::Atomic::Add(p_num_new_beam_part, static_cast<uint32_t>(sum_new_beam_part));
//uint32_t h_num_new_beam_part = num_new_beam_part.dataValue(); // take the value
//h_num_new_beam_part += sum_new_beam_part;
//h_num_new_beam_part += sum_new_beam_part;
//num_new_beam_part.dataValue() = h_num_new_beam_part;
}


// extract the beam data for resizing
const int nbeams = beams.get_nbeams();
Expand All @@ -785,7 +785,7 @@ PlasmaToBeam (MultiBeam& beams, const amrex::Vector< std::string > beamnames, co
auto& beam = beams.getBeam(ibeam);

const uint64_t np = beam.getNumParticles(WhichBeamSlice::This);


auto& beam_soa = beam.getBeamSlice(WhichBeamSlice::This).GetStructOfArrays();
auto old_size = beam_soa.size();
Expand All @@ -794,9 +794,9 @@ PlasmaToBeam (MultiBeam& beams, const amrex::Vector< std::string > beamnames, co

// beam_soa.GetRealData(BeamIdx::x).data()=;
// beam_soa.GetRealData(BeamIdx::y).data()=;

}
}
}

void
PlasmaParticleContainer::InSituComputeDiags (int islice)
Expand Down

0 comments on commit 2793b7c

Please sign in to comment.