WarpX
Loading...
Searching...
No Matches
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 (std::vector< std::string > const &names) noexcept
 
SmartCopyTag getSmartCopyTag (std::vector< std::string > const &src, std::vector< std::string > const &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.
 

Typedef Documentation

◆ NameMap

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

◆ PolicyVec

Function Documentation

◆ getPolicies()

PolicyVec getPolicies ( std::vector< std::string > const & names)
noexcept

◆ getSmartCopyTag()

SmartCopyTag getSmartCopyTag ( std::vector< std::string > const & src,
std::vector< std::string > const & 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.