Skip to content

Commit

Permalink
Merge branch 'add_electron_energy_equation_to_hybrid_solver' of githu…
Browse files Browse the repository at this point in the history
…b.com:marcoacc95/WarpX into add_electron_energy_equation_to_hybrid_solver
  • Loading branch information
marcoacc95 committed Oct 17, 2024
2 parents bf39bb0 + 12ff685 commit eea124b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Source/Fluids/QdsmcParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ public:
using const_iterator = amrex::ParConstIterSoA<QdsmcPIdx::nattribs, 0>;

//! similar to WarpXParticleContainer::AddNParticles

void AddNParticles (int lev, amrex::Long n,
amrex::Vector<amrex::ParticleReal> const & x,
amrex::Vector<amrex::ParticleReal> const & y,
amrex::Vector<amrex::ParticleReal> const & z);

// Function that initializes the particles (only positions)
// requires order used in QDSMC algorithm (nppc = order^dim), or nppc = 1 for electron energy equation solver
// calls AddNParticles
Expand Down
6 changes: 3 additions & 3 deletions Source/Fluids/QdsmcParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ QdsmcParticleContainer::QdsmcParticleContainer (AmrCore* amr_core)
}


void
void
QdsmcParticleContainer::AddNParticles (int lev, long n,
amrex::Vector<amrex::ParticleReal> const & x,
amrex::Vector<amrex::ParticleReal> const & y,
Expand All @@ -88,11 +88,11 @@ QdsmcParticleContainer::AddNParticles (int lev, long n,

auto& particle_tile = DefineAndReturnParticleTile(0, 0, 0);


// Creates a temporary tile to obtain data from simulation. This data
// is then coppied to the permament tile which is stored on the particle
// (particle_tile).

using PinnedTile = typename ContainerLike<amrex::PinnedArenaAllocator>::ParticleTileType;

PinnedTile pinned_tile;
Expand Down

0 comments on commit eea124b

Please sign in to comment.