Skip to content

Commit

Permalink
Try to fix Doxygen warning
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Dec 6, 2024
1 parent 685d913 commit 440d9ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions Source/Utils/ParticleUtils.H
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

namespace ParticleUtils {

// Define shortcuts for frequently-used type names
using ParticleTileType = typename WarpXParticleContainer::ParticleTileType;
using ParticleTileDataType = typename ParticleTileType::ParticleTileDataType;

/**
* \brief Find the particles and count the particles that are in each cell. More specifically
* this function returns an amrex::DenseBins object containing an offset array and a permutation
Expand All @@ -28,10 +32,10 @@ namespace ParticleUtils {
* @param[in] mfi the MultiFAB iterator.
* @param[in] ptile the particle tile.
*/
amrex::DenseBins<typename WarpXParticleContainer::ParticleTileType::ParticleTileDataType>
amrex::DenseBins<ParticleTileDataType>
findParticlesInEachCell (int lev,
amrex::MFIter const & mfi,
WarpXParticleContainer::ParticleTileType & ptile);
const amrex::MFIter & mfi,
ParticleTileType & ptile);

/**
* \brief Return (relativistic) particle energy given velocity and mass.
Expand Down
6 changes: 3 additions & 3 deletions Source/Utils/ParticleUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ namespace ParticleUtils

/* Find the particles and count the particles that are in each cell.
Note that this does *not* rearrange particle arrays */
amrex::DenseBins<typename WarpXParticleContainer::ParticleTileType::ParticleTileDataType>
amrex::DenseBins<ParticleTileDataType>
findParticlesInEachCell (int lev,
amrex::MFIter const & mfi,
WarpXParticleContainer::ParticleTileType & ptile) {
const amrex::MFIter & mfi,
ParticleTileType & ptile) {

// Extract particle structures for this tile
int const np = ptile.numParticles();
Expand Down

0 comments on commit 440d9ed

Please sign in to comment.