aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/InjectorMomentum.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-24 11:38:22 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-24 11:38:22 -0800
commitd21b7d819a1bc84fdb28deff578f369a6932b5b8 (patch)
treeaf6a1901206a9c10de60b9afdfcf3c606e1cf3ff /Source/Initialization/InjectorMomentum.cpp
parentf0f1e4009a53f032d6c69082e600680025086c89 (diff)
parenta32b3292967b6b0ee766ad14303c6cd0f2369b04 (diff)
downloadWarpX-d21b7d819a1bc84fdb28deff578f369a6932b5b8.tar.gz
WarpX-d21b7d819a1bc84fdb28deff578f369a6932b5b8.tar.zst
WarpX-d21b7d819a1bc84fdb28deff578f369a6932b5b8.zip
Merge branch 'dev' into bugfix
Diffstat (limited to 'Source/Initialization/InjectorMomentum.cpp')
-rw-r--r--Source/Initialization/InjectorMomentum.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Initialization/InjectorMomentum.cpp b/Source/Initialization/InjectorMomentum.cpp
index 8fadf0c4b..255883a34 100644
--- a/Source/Initialization/InjectorMomentum.cpp
+++ b/Source/Initialization/InjectorMomentum.cpp
@@ -30,9 +30,9 @@ InjectorMomentum::sharedMemoryNeeded () const noexcept
{
case Type::parser:
{
- // For parser injector, the 3D position of each particle
+ // For parser injector, the 3D position of each particle and time, t,
// is stored in shared memory.
- return amrex::Gpu::numThreadsPerBlockParallelFor() * sizeof(double) * 3;
+ return amrex::Gpu::numThreadsPerBlockParallelFor() * sizeof(double) * 4;
}
default:
return 0;