diff options
author | 2019-03-06 16:09:35 -0800 | |
---|---|---|
committer | 2019-03-06 16:09:35 -0800 | |
commit | 1e44150d0cc7d2b295f8f3e1b6968b97df4efab3 (patch) | |
tree | 28303c8c0c318421b9cda3d504993fb2caeb0815 /Source/Initialization/CustomDensityProb.cpp | |
parent | 028011d44564f0745f3036b10bbd2ddadd0a0cf6 (diff) | |
parent | f0bea186a253a97d82a78dcd227d07879a0eea1d (diff) | |
download | WarpX-1e44150d0cc7d2b295f8f3e1b6968b97df4efab3.tar.gz WarpX-1e44150d0cc7d2b295f8f3e1b6968b97df4efab3.tar.zst WarpX-1e44150d0cc7d2b295f8f3e1b6968b97df4efab3.zip |
Merge branch 'dev' into RZgeometry
Diffstat (limited to 'Source/Initialization/CustomDensityProb.cpp')
-rw-r--r-- | Source/Initialization/CustomDensityProb.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Initialization/CustomDensityProb.cpp b/Source/Initialization/CustomDensityProb.cpp new file mode 100644 index 000000000..3efcb13c5 --- /dev/null +++ b/Source/Initialization/CustomDensityProb.cpp @@ -0,0 +1,12 @@ +#include <PlasmaInjector.H> + +#include <iostream> + +using namespace amrex; + +/// +/// This "custom" density profile just does constant +/// +Real CustomDensityProfile::getDensity(Real x, Real y, Real z) const { + return params[0]; +} |