diff --git a/Src/Particle/AMReX_ParticleTile.H b/Src/Particle/AMReX_ParticleTile.H index 42d8db90f00..1bb34058491 100644 --- a/Src/Particle/AMReX_ParticleTile.H +++ b/Src/Particle/AMReX_ParticleTile.H @@ -400,6 +400,22 @@ struct ParticleTile m_soa_tile.GetRealData(comp).insert(it, beg, end); } + /// + /// Add a range of Real values to the struct-of-arrays for the given comp. + /// This sets the data for several particles at once. + /// + void push_back_real (int comp, amrex::Vector::const_iterator beg, amrex::Vector::const_iterator end) { + push_back_real(comp, &(*beg), &(*end)); + } + + /// + /// Add a range of Real values to the struct-of-arrays for the given comp. + /// This sets the data for several particles at once. + /// + void push_back_real (int comp, amrex::Vector const & vec) { + push_back_real(comp, vec.cbegin(), vec.cend()); + } + /// /// Add npar copies of the Real value v to the struct-of-arrays for the given comp. /// This sets the data for several particles at once. @@ -436,6 +452,22 @@ struct ParticleTile m_soa_tile.GetIntData(comp).insert(it, beg, end); } + /// + /// Add a range of int values to the struct-of-arrays for the given comp. + /// This sets the data for several particles at once. + /// + void push_back_int (int comp, amrex::Vector::const_iterator beg, amrex::Vector::const_iterator end) { + push_back_int(comp, &(*beg), &(*end)); + } + + /// + /// Add a range of int values to the struct-of-arrays for the given comp. + /// This sets the data for several particles at once. + /// + void push_back_int (int comp, amrex::Vector const & vec) { + push_back_int(comp, vec.cbegin(), vec.cend()); + } + /// /// Add npar copies of the int value v to the struct-of-arrays for the given comp. /// This sets the data for several particles at once.