aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/LaserParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/LaserParticleContainer.cpp')
-rw-r--r--Source/Particles/LaserParticleContainer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Particles/LaserParticleContainer.cpp b/Source/Particles/LaserParticleContainer.cpp
index 0f0259438..f451634f8 100644
--- a/Source/Particles/LaserParticleContainer.cpp
+++ b/Source/Particles/LaserParticleContainer.cpp
@@ -541,11 +541,14 @@ LaserParticleContainer::InitData (int lev)
amrex::Vector<amrex::ParticleReal> particle_uz(np, 0.0);
if (Verbose()) amrex::Print() << Utils::TextMsg::Info("Adding laser particles");
+ amrex::Vector<amrex::Vector<ParticleReal>> attr;
+ attr.push_back(particle_w);
+ amrex::Vector<amrex::Vector<int>> attr_int;
// Add particles on level 0. They will be redistributed afterwards
AddNParticles(0,
- np, particle_x.dataPtr(), particle_y.dataPtr(), particle_z.dataPtr(),
- particle_ux.dataPtr(), particle_uy.dataPtr(), particle_uz.dataPtr(),
- 1, particle_w.dataPtr(), 0, nullptr, 1);
+ np, particle_x, particle_y, particle_z,
+ particle_ux, particle_uy, particle_uz,
+ 1, attr, 0, attr_int, 1);
}
void