aboutsummaryrefslogtreecommitdiff
path: root/Source/CustomDensityProb.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2017-03-23 20:21:06 +0000
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2017-03-23 20:21:06 +0000
commitca8c8e00d98e06a0e09b973d4cd4cce8c37f3db7 (patch)
treec809a9623a3dd700f13cebfcd3d22613965d42df /Source/CustomDensityProb.cpp
parent01cda1142a6a27a53ad41428d4461c8c28e8356e (diff)
parentbc29a15f36ebe4e553e869c0a3b33f472ab96640 (diff)
downloadWarpX-ca8c8e00d98e06a0e09b973d4cd4cce8c37f3db7.tar.gz
WarpX-ca8c8e00d98e06a0e09b973d4cd4cce8c37f3db7.tar.zst
WarpX-ca8c8e00d98e06a0e09b973d4cd4cce8c37f3db7.zip
Merged in plasma_injector (pull request #14)
Plasma injector Approved-by: Weiqun Zhang <WeiqunZhang@lbl.gov> Approved-by: Remi Lehe <remi.lehe@normalesup.org>
Diffstat (limited to 'Source/CustomDensityProb.cpp')
-rw-r--r--Source/CustomDensityProb.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/CustomDensityProb.cpp b/Source/CustomDensityProb.cpp
new file mode 100644
index 000000000..1df3d75ad
--- /dev/null
+++ b/Source/CustomDensityProb.cpp
@@ -0,0 +1,13 @@
+#include <PlasmaInjector.H>
+
+#include <iostream>
+
+#include <AMReX.H>
+
+amrex::Real CustomDensityProfile::getDensity(amrex::Real x,
+ amrex::Real y,
+ amrex::Real z) const
+{
+ amrex::Abort("If running with a custom density profile, you must supply a CustomDensityProb.cpp file");
+ return 0.0;
+}