Skip to content

Commit

Permalink
rename deleteParticles()
Browse files Browse the repository at this point in the history
rename deleteParticles() to deleteGuardParticles()
  • Loading branch information
psychocoderHPC committed Apr 25, 2014
1 parent 5a43b44 commit 5373658
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/libPMacc/include/particles/ParticlesBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* libPMacc is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand Down Expand Up @@ -126,10 +126,10 @@ class ParticlesBase : public SimulationFieldHelper<MappingDesc>
{
this->fillGaps < BORDER > ();
}

/* Delete all particles in GUARD for one direction.
*/
void deleteParticles(uint32_t exchangeType);
void deleteGuardParticles(uint32_t exchangeType);

/* Bash particles in a direction.
* Copy all particles from the guard of a direction to the device exchange buffer
Expand Down
10 changes: 5 additions & 5 deletions src/libPMacc/include/particles/ParticlesBase.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* libPMacc is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand All @@ -19,7 +19,7 @@
* and the GNU Lesser General Public License along with libPMacc.
* If not, see <http://www.gnu.org/licenses/>.
*/


#include "Environment.hpp"
#include "eventSystem/EventSystem.hpp"
Expand All @@ -34,15 +34,15 @@
namespace PMacc
{
template<typename T_ParticleDescription, class MappingDesc>
void ParticlesBase<T_ParticleDescription, MappingDesc>::deleteParticles(uint32_t exchangeType)
void ParticlesBase<T_ParticleDescription, MappingDesc>::deleteGuardParticles(uint32_t exchangeType)
{

ExchangeMapping<GUARD, MappingDesc> mapper(this->cellDescription, exchangeType);
dim3 grid(mapper.getGridDim());

__cudaKernel(kernelDeleteParticles)
(grid, TileSize)
(particlesBuffer->getDeviceParticleBox(), mapper);
(particlesBuffer->getDeviceParticleBox(), mapper);
}

template<typename T_ParticleDescription, class MappingDesc>
Expand All @@ -58,7 +58,7 @@ namespace PMacc
__cudaKernel(kernelBashParticles)
(grid, TileSize)
(particlesBuffer->getDeviceParticleBox(),
particlesBuffer->getSendExchangeStack(exchangeType).getDeviceExchangePushDataBox(), mapper);
particlesBuffer->getSendExchangeStack(exchangeType).getDeviceExchangePushDataBox(), mapper);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/libPMacc/include/particles/tasks/TaskParticlesSend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TaskParticlesSend : public MPITask
else
{
__startAtomicTransaction(serialEvent);
parBase.deleteParticles(i);
parBase.deleteGuardParticles(i);
tmpEvent += __endTransaction();
}
}
Expand Down

0 comments on commit 5373658

Please sign in to comment.