aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Docs/source/building/building.rst9
-rw-r--r--Docs/source/building/summitdev.rst36
-rw-r--r--Source/WarpX.cpp32
3 files changed, 57 insertions, 20 deletions
diff --git a/Docs/source/building/building.rst b/Docs/source/building/building.rst
index ad9d4e621..5913f283d 100644
--- a/Docs/source/building/building.rst
+++ b/Docs/source/building/building.rst
@@ -77,13 +77,13 @@ Type
::
make -j 4 USE_PYTHON_MAIN=TRUE
-
-or edit the GNUmakefile and set `USE_PYTHON_MAIN=TRUE`, and type
+
+or edit the GNUmakefile and set `USE_PYTHON_MAIN=TRUE`, and type
::
- make -j 4
-
+ make -j 4
+
This will compile the code, and install the Python bindings as a package (named
``pywarpx``) in your standard Python installation (i.e. in your
``site-packages`` directory). The note on compiler options from the previous
@@ -106,3 +106,4 @@ Advanced building instructions
spectral
cori
+ summitdev
diff --git a/Docs/source/building/summitdev.rst b/Docs/source/building/summitdev.rst
new file mode 100644
index 000000000..e194db73c
--- /dev/null
+++ b/Docs/source/building/summitdev.rst
@@ -0,0 +1,36 @@
+Building WarpX for Summit-dev (OLCF)
+====================================
+
+For the `Summit-dev cluster
+<https://www.olcf.ornl.gov/tag/summitdev/>`__ at OLCF,
+use the following commands to download the source code, and switch to the
+correct branch:
+
+::
+
+ mkdir warpx_directory
+ cd warpx_directory
+
+ git clone https://github.com/ECP-WarpX/WarpX.git
+ cd WarpX
+ git checkout gpu
+ cd ..
+
+ git clone https://bitbucket.org/berkeleylab/picsar.git
+ cd picsar
+ git checkout gpu
+ cd ..
+
+ git clone https://github.com/AMReX-Codes/amrex.git
+ cd amrex
+ git checkout development
+ cd ..
+
+
+Then, use the following set of commands to compile:
+
+::
+
+ module load pgi
+ module load cuda
+ make
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index ed6783d8c..9d19732eb 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -263,31 +263,31 @@ WarpX::ReadParameters ()
const std::string msg = "Unknown moving_window_dir: "+s;
amrex::Abort(msg.c_str());
}
-
+
moving_window_x = geom[0].ProbLo(moving_window_dir);
-
+
pp.get("moving_window_v", moving_window_v);
moving_window_v *= PhysConst::c;
}
-
+
pp.query("do_plasma_injection", do_plasma_injection);
if (do_plasma_injection) {
- pp.get("num_injected_species", num_injected_species);
- injected_plasma_species.resize(num_injected_species);
- pp.getarr("injected_plasma_species", injected_plasma_species,
- 0, num_injected_species);
- if (moving_window_v >= 0){
- // Inject particles continuously from the right end of the box
- current_injection_position = geom[0].ProbHi(moving_window_dir);
- } else {
- // Inject particles continuously from the left end of the box
- current_injection_position = geom[0].ProbLo(moving_window_dir);
- }
+ pp.get("num_injected_species", num_injected_species);
+ injected_plasma_species.resize(num_injected_species);
+ pp.getarr("injected_plasma_species", injected_plasma_species,
+ 0, num_injected_species);
+ if (moving_window_v >= 0){
+ // Inject particles continuously from the right end of the box
+ current_injection_position = geom[0].ProbHi(moving_window_dir);
+ } else {
+ // Inject particles continuously from the left end of the box
+ current_injection_position = geom[0].ProbLo(moving_window_dir);
+ }
}
-
+
pp.query("do_boosted_frame_diagnostic", do_boosted_frame_diagnostic);
if (do_boosted_frame_diagnostic) {
-
+
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(gamma_boost > 1.0,
"gamma_boost must be > 1 to use the boosted frame diagnostic.");