aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/CustomMomentumProb.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-03-01 11:14:21 -0800
committerGravatar GitHub <noreply@github.com> 2019-03-01 11:14:21 -0800
commit26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50 (patch)
tree9455e4117e8cac9625132368881872bcff727d95 /Source/Initialization/CustomMomentumProb.cpp
parent24ae5647745f93978c88a005acefdcacf356e418 (diff)
parent7e7dccaa7fb1206f829f8747f2ec2ad80bec599c (diff)
downloadWarpX-26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50.tar.gz
WarpX-26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50.tar.zst
WarpX-26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50.zip
Merge pull request #56 from ECP-WarpX/source_subfolders
Reorganize Source with subfolders
Diffstat (limited to 'Source/Initialization/CustomMomentumProb.cpp')
-rw-r--r--Source/Initialization/CustomMomentumProb.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Initialization/CustomMomentumProb.cpp b/Source/Initialization/CustomMomentumProb.cpp
new file mode 100644
index 000000000..fa21252d0
--- /dev/null
+++ b/Source/Initialization/CustomMomentumProb.cpp
@@ -0,0 +1,14 @@
+#include <PlasmaInjector.H>
+
+#include <iostream>
+
+using namespace amrex;
+
+///
+/// This "custom" momentum distribution just does 0 momentum
+///
+void CustomMomentumDistribution::getMomentum(vec3& u, Real x, Real y, Real z) {
+ u[0] = 0;
+ u[1] = 0;
+ u[2] = 0;
+}