Skip to content

Commit

Permalink
Update PlasmaParticleContainer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak authored Feb 21, 2025
1 parent a5435e8 commit 4a27702
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/particles/plasma/PlasmaParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,32 +803,6 @@ PlasmaToBeam (MultiBeam& beams, const amrex::Vector< std::string > beamnames, co
}
}



// extract the beam data for resizing
//const int nbeams = beams.get_nbeams();
//for (int ibeam = 0; ibeam < nbeams; ibeam++) {

// if (num_new_beam_part.dataValue() == 0) continue;

//std::string name = beams.get_name(ibeam);
//if(std::find(beamnames.begin(), beamnames.end(), name) == beamnames.end() ) continue;

//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();
//auto new_size = old_size + num_new_beam_part.dataValue();
//beam_soa.resize(new_size);


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


void
PlasmaParticleContainer::InSituComputeDiags (int islice)
{
Expand Down

0 comments on commit 4a27702

Please sign in to comment.