WarpX
Loading...
Searching...
No Matches
ParticleCreation Namespace Reference

Functions

template<typename PTile, typename DstPC>
void DefaultInitializeRuntimeAttributes (PTile &ptile, const DstPC &pc, int start, int stop, const int n_external_attr_real=0, const int n_external_attr_int=0, const bool do_qed_comps=false)
 Default initialize runtime attributes in a tile. This routine does not initialize the first n_external_attr_real real attributes and the first n_external_attr_int integer attributes, which have been in principle externally set elsewhere.
 

Function Documentation

◆ DefaultInitializeRuntimeAttributes()

template<typename PTile, typename DstPC>
void ParticleCreation::DefaultInitializeRuntimeAttributes ( PTile & ptile,
const DstPC & pc,
int start,
int stop,
const int n_external_attr_real = 0,
const int n_external_attr_int = 0,
const bool do_qed_comps = false )

Default initialize runtime attributes in a tile. This routine does not initialize the first n_external_attr_real real attributes and the first n_external_attr_int integer attributes, which have been in principle externally set elsewhere.

Template Parameters
PTileThe type of the particle tile to operate on (e.g. could use different allocators)
DstPCthe destination particle container type
Parameters
[in,out]ptilethe tile in which attributes are initialized
[in]pcthe destination particle container
[in]do_qed_compswhether to initialize the qed components (these are usually handled by SmartCopy, but NOT when adding particles in AddNParticles)
[in]startthe index to start initializing particles
[in]stopthe index to stop initializing particles
[in]n_external_attr_realThe number of real attributes that have been externally set. These are NOT initialized by this function.
[in]n_external_attr_intThe number of integer attributes that have been externally set. These are NOT initialized by this function.