WarpX
Classes | Typedefs | Functions
SmartUtils.H File Reference
#include "DefaultInitialization.H"
#include <AMReX_Config.H>
#include <AMReX_GpuContainers.H>
#include <AMReX_GpuLaunch.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_INT.H>
#include <AMReX_ParallelDescriptor.H>
#include <AMReX_Particle.H>
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  SmartCopyTag
 

Typedefs

using NameMap = std::map< std::string, int >
 
using PolicyVec = amrex::Gpu::DeviceVector< InitializationPolicy >
 

Functions

PolicyVec getPolicies (const NameMap &names) noexcept
 
SmartCopyTag getSmartCopyTag (const NameMap &src, const NameMap &dst) noexcept
 
template<typename PTile >
void setNewParticleIDs (PTile &ptile, amrex::Long old_size, amrex::Long num_added)
 Sets the ids of newly created particles to the next values. More...
 

Typedef Documentation

◆ NameMap

using NameMap = std::map<std::string, int>

◆ PolicyVec

Function Documentation

◆ getPolicies()

PolicyVec getPolicies ( const NameMap names)
noexcept

◆ getSmartCopyTag()

SmartCopyTag getSmartCopyTag ( const NameMap src,
const NameMap dst 
)
noexcept

◆ setNewParticleIDs()

template<typename PTile >
void setNewParticleIDs ( PTile &  ptile,
amrex::Long  old_size,
amrex::Long  num_added 
)

Sets the ids of newly created particles to the next values.

Template Parameters
PTilethe particle tile type
Parameters
ptilethe particle tile
old_sizethe index of the first new particle
num_addedthe number of particles to set the ids for.