From d27f875aad4436e9780e6ba55a930bf60c556c3f Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Mon, 25 Oct 2021 13:55:10 -0700 Subject: [PATCH 01/21] add github ci compile check for ascent --- .github/workflows/ascent.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ascent.yml diff --git a/.github/workflows/ascent.yml b/.github/workflows/ascent.yml new file mode 100644 index 00000000000..c12b9118d65 --- /dev/null +++ b/.github/workflows/ascent.yml @@ -0,0 +1,29 @@ +name: 🐧 In Situ Vis with Ascent + +on: [push, pull_request] + +concurrency: + group: ${{ github.ref }}-${{ github.head_ref }}-insituvis + cancel-in-progress: true + +jobs: + ascent: + name: Ascent + runs-on: ubuntu-20.04 + if: github.event.pull_request.draft == false + env: + CXX: g++ + CC: gcc + CMAKE_PREFIX_PATH: /home/user/ascent/install-debug/lib/cmake/ + container: + image: alpinedav/ascent:ascent-ubuntu-18_2021-10-23-shaba7872 + steps: + - uses: actions/checkout@v2 + - name: Configure + run: | + . ../s_env.sh && cmake -S . -B build \ + -DWarpX_ASCENT=ON \ + -DWarpX_COMPUTE=NOACC + - name: Build + run: | + . ../s_env.sh && cmake --build build -j 2 From aaf76e913fd47c5cc1bbeb434a8b03a024fb3c88 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Mon, 25 Oct 2021 14:18:14 -0700 Subject: [PATCH 02/21] now with less whitespace --- .github/workflows/ascent.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ascent.yml b/.github/workflows/ascent.yml index c12b9118d65..3106c5c7e02 100644 --- a/.github/workflows/ascent.yml +++ b/.github/workflows/ascent.yml @@ -21,9 +21,9 @@ jobs: - uses: actions/checkout@v2 - name: Configure run: | - . ../s_env.sh && cmake -S . -B build \ - -DWarpX_ASCENT=ON \ - -DWarpX_COMPUTE=NOACC + . ../s_env.sh && cmake -S . -B build \ + -DWarpX_ASCENT=ON \ + -DWarpX_COMPUTE=NOACC - name: Build run: | - . ../s_env.sh && cmake --build build -j 2 + . ../s_env.sh && cmake --build build -j 2 \ No newline at end of file From 5b2fb52521386c77cd0002451abfdb69ae22dd3d Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Mon, 25 Oct 2021 15:36:37 -0700 Subject: [PATCH 03/21] add ascent to insitu workflow --- .github/workflows/ascent.yml | 29 ----------------------------- .github/workflows/insitu.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/ascent.yml diff --git a/.github/workflows/ascent.yml b/.github/workflows/ascent.yml deleted file mode 100644 index 3106c5c7e02..00000000000 --- a/.github/workflows/ascent.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: 🐧 In Situ Vis with Ascent - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-insituvis - cancel-in-progress: true - -jobs: - ascent: - name: Ascent - runs-on: ubuntu-20.04 - if: github.event.pull_request.draft == false - env: - CXX: g++ - CC: gcc - CMAKE_PREFIX_PATH: /home/user/ascent/install-debug/lib/cmake/ - container: - image: alpinedav/ascent:ascent-ubuntu-18_2021-10-23-shaba7872 - steps: - - uses: actions/checkout@v2 - - name: Configure - run: | - . ../s_env.sh && cmake -S . -B build \ - -DWarpX_ASCENT=ON \ - -DWarpX_COMPUTE=NOACC - - name: Build - run: | - . ../s_env.sh && cmake --build build -j 2 \ No newline at end of file diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 8f1b8259a15..5d25aa3299c 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -30,3 +30,23 @@ jobs: - name: Build run: | cmake --build build -j 2 + ascent: + name: Ascent + runs-on: ubuntu-20.04 + if: github.event.pull_request.draft == false + env: + CXX: g++ + CC: gcc + CMAKE_PREFIX_PATH: /home/user/ascent/install-debug/lib/cmake/ + container: + image: alpinedav/ascent:ascent-ubuntu-18_2021-10-23-shaba7872 + steps: + - uses: actions/checkout@v2 + - name: Configure + run: | + . ../s_env.sh && cmake -S . -B build \ + -DWarpX_ASCENT=ON \ + -DWarpX_COMPUTE=NOACC + - name: Build + run: | + . ../s_env.sh && cmake --build build -j 2 \ No newline at end of file From 3f1329c791dd03e23233d61de767850c5158e13f Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Mon, 25 Oct 2021 15:48:39 -0700 Subject: [PATCH 04/21] Update .github/workflows/insitu.yml Co-authored-by: Axel Huebl --- .github/workflows/insitu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 5d25aa3299c..bb2d7cd62ed 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -30,6 +30,7 @@ jobs: - name: Build run: | cmake --build build -j 2 + ascent: name: Ascent runs-on: ubuntu-20.04 From b4aa52bf1f0c34685f0908dd584afcf646280489 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Mon, 25 Oct 2021 16:02:28 -0700 Subject: [PATCH 05/21] more style --- .github/workflows/insitu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index bb2d7cd62ed..5a50152620a 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -50,4 +50,4 @@ jobs: -DWarpX_COMPUTE=NOACC - name: Build run: | - . ../s_env.sh && cmake --build build -j 2 \ No newline at end of file + . ../s_env.sh && cmake --build build -j 2 From a2ad133ac77f954fc2f4a39ad319394a0743a9d6 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Mon, 1 Nov 2021 14:34:56 -0700 Subject: [PATCH 06/21] try to run as existing user --- .github/workflows/insitu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 5a50152620a..5a4e819a8e6 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -41,6 +41,7 @@ jobs: CMAKE_PREFIX_PATH: /home/user/ascent/install-debug/lib/cmake/ container: image: alpinedav/ascent:ascent-ubuntu-18_2021-10-23-shaba7872 + options: --user 1000 steps: - uses: actions/checkout@v2 - name: Configure From 551eed35094e85e1c5995bd99eebb0c69e6a9293 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Tue, 2 Nov 2021 19:18:19 -0700 Subject: [PATCH 07/21] new container --- .github/workflows/insitu.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 5a4e819a8e6..5f48ebce4bb 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -40,15 +40,14 @@ jobs: CC: gcc CMAKE_PREFIX_PATH: /home/user/ascent/install-debug/lib/cmake/ container: - image: alpinedav/ascent:ascent-ubuntu-18_2021-10-23-shaba7872 - options: --user 1000 + image: alpinedav/ascent:ascent-ubuntu-18_2021-11-02-sha458045 steps: - uses: actions/checkout@v2 - name: Configure run: | - . ../s_env.sh && cmake -S . -B build \ - -DWarpX_ASCENT=ON \ - -DWarpX_COMPUTE=NOACC + cmake -S . -B build \ + -DWarpX_ASCENT=ON \ + -DWarpX_COMPUTE=NOACC - name: Build run: | - . ../s_env.sh && cmake --build build -j 2 + cmake --build build -j 2 From e9e88645e14560606aee9b6eca5cab747f2aa44c Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Tue, 2 Nov 2021 19:59:49 -0700 Subject: [PATCH 08/21] use env script --- .github/workflows/insitu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 5f48ebce4bb..c6ac7ca0cad 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -45,9 +45,9 @@ jobs: - uses: actions/checkout@v2 - name: Configure run: | - cmake -S . -B build \ + . /ascent_docker_setup_env.sh && cmake -S . -B build \ -DWarpX_ASCENT=ON \ -DWarpX_COMPUTE=NOACC - name: Build run: | - cmake --build build -j 2 + . /ascent_docker_setup_env.sh && cmake --build build -j 2 From 78b1f4be86da971e04dc0a07619b268707be18da Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Tue, 2 Nov 2021 20:36:25 -0700 Subject: [PATCH 09/21] path fix --- .github/workflows/insitu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index c6ac7ca0cad..a80f3465f65 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -38,7 +38,7 @@ jobs: env: CXX: g++ CC: gcc - CMAKE_PREFIX_PATH: /home/user/ascent/install-debug/lib/cmake/ + CMAKE_PREFIX_PATH: /ascent/install-debug/lib/cmake/ container: image: alpinedav/ascent:ascent-ubuntu-18_2021-11-02-sha458045 steps: From 4b6cc57865f8ed2b1a68f7821620f67fe6784d46 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 3 Nov 2021 16:22:09 -0700 Subject: [PATCH 10/21] add ascent test --- .github/workflows/insitu.yml | 12 +++ .../ascent_actions_test.yaml | 44 +++++++++++ .../laser_acceleration/inputs_3d_ascent_test | 78 +++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml create mode 100644 Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index a80f3465f65..407eb8b4e6b 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -51,3 +51,15 @@ jobs: - name: Build run: | . /ascent_docker_setup_env.sh && cmake --build build -j 2 + - name: Test + run: | + cp Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test . + cp Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml ascent_actions.yaml + mpiexec -n 2 ./build/bin/warpx inputs_3d_ascent_test + - uses: actions/upload-artifact@v2 + with: + name: ascent-test-artifacts + path: | + *.png + conduit_* + if-no-files-found: error diff --git a/Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml b/Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml new file mode 100644 index 00000000000..cb8b0ec6e80 --- /dev/null +++ b/Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml @@ -0,0 +1,44 @@ +# +# This actions file tests: +# Rendering a Contour of Ey +# Volume Rendering Ey +# Rendering the Electrons Particle mesh +# Exporting Blueprint HDF5 files +# +- + action: add_pipelines + pipelines: + contour_pipeline: + f0: + params: + field: Ey + levels: 16 + type: contour +- + action: add_scenes + scenes: + ey_contour_pc: + plots: + p0: + field: Ey + pipeline: contour_pipeline + type: pseudocolor + ey_volrend: + plots: + p0: + field: Ey + type: volume + uz_pc: + plots: + p0: + field: particle_electrons_uz + type: pseudocolor +- + action: add_extracts + extracts: + e1: + params: + path: ./conduit_blueprint + protocol: blueprint/mesh/hdf5 + type: relay + diff --git a/Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test b/Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test new file mode 100644 index 00000000000..ae162f24b80 --- /dev/null +++ b/Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test @@ -0,0 +1,78 @@ +################################# +####### GENERAL PARAMETERS ###### +################################# +# NOTE: end early for this test +max_step = 40 +amr.n_cell = 64 64 512 +amr.max_grid_size = 64 # maximum size of each AMReX box, used to decompose the domain +amr.blocking_factor = 32 # minimum size of each AMReX box, used to decompose the domain +geometry.coord_sys = 0 # 0: Cartesian +geometry.prob_lo = -30.e-6 -30.e-6 -56.e-6 # physical domain +geometry.prob_hi = 30.e-6 30.e-6 12.e-6 +amr.max_level = 0 # Maximum level in hierarchy (1 might be unstable, >1 is not supported) +# warpx.fine_tag_lo = -5.e-6 -5.e-6 -50.e-6 +# warpx.fine_tag_hi = 5.e-6 5.e-6 -30.e-6 + +################################# +####### Boundary condition ###### +################################# +boundary.field_lo = periodic periodic pec +boundary.field_hi = periodic periodic pec + +################################# +############ NUMERICS ########### +################################# +warpx.verbose = 1 +warpx.do_dive_cleaning = 0 +warpx.use_filter = 1 +warpx.cfl = 1. # if 1., the time step is set to its CFL limit +warpx.do_moving_window = 1 +warpx.moving_window_dir = z # Only z is supported for the moment +warpx.moving_window_v = 1.0 # units of speed of light + +# Order of particle shape factors +algo.particle_shape = 3 + +################################# +############ PLASMA ############# +################################# +particles.species_names = electrons + +electrons.charge = -q_e +electrons.mass = m_e +electrons.injection_style = "NUniformPerCell" +electrons.num_particles_per_cell_each_dim = 1 1 1 +electrons.xmin = -20.e-6 +electrons.xmax = 20.e-6 +electrons.ymin = -20.e-6 +electrons.ymax = 20.e-6 +electrons.zmin = 10.e-6 +electrons.profile = constant +electrons.density = 2.e23 # number of electrons per m^3 +electrons.momentum_distribution_type = "at_rest" +electrons.do_continuous_injection = 1 + +################################# +############ LASER ############# +################################# +lasers.names = laser1 +laser1.profile = Gaussian +laser1.position = 0. 0. 9.e-6 # This point is on the laser plane +laser1.direction = 0. 0. 1. # The plane normal direction +laser1.polarization = 0. 1. 0. # The main polarization vector +laser1.e_max = 16.e12 # Maximum amplitude of the laser field (in V/m) +laser1.profile_waist = 5.e-6 # The waist of the laser (in m) +laser1.profile_duration = 15.e-15 # The duration of the laser (in s) +laser1.profile_t_peak = 30.e-15 # Time at which the laser reaches its peak (in s) +laser1.profile_focal_distance = 100.e-6 # Focal distance from the antenna (in m) +laser1.wavelength = 0.8e-6 # The wavelength of the laser (in m) + +# Diagnostics +diagnostics.diags_names = diag1 + +# Ascent tests at cycle = 30 and 40 +diag1.intervals = 30:40:10 +diag1.format = ascent +diag1.diag_type = Full +dia1.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho + From 5c17fe09dc9a210195042c3eb3b9bfc31fd8d02b Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 3 Nov 2021 16:24:23 -0700 Subject: [PATCH 11/21] fix space --- .github/workflows/insitu.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 407eb8b4e6b..af3048856be 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -45,7 +45,7 @@ jobs: - uses: actions/checkout@v2 - name: Configure run: | - . /ascent_docker_setup_env.sh && cmake -S . -B build \ + . /ascent_docker_setup_env.sh && cmake -S . -B build \ -DWarpX_ASCENT=ON \ -DWarpX_COMPUTE=NOACC - name: Build @@ -54,7 +54,7 @@ jobs: - name: Test run: | cp Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test . - cp Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml ascent_actions.yaml + cp Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml ascent_actions.yaml mpiexec -n 2 ./build/bin/warpx inputs_3d_ascent_test - uses: actions/upload-artifact@v2 with: @@ -62,4 +62,4 @@ jobs: path: | *.png conduit_* - if-no-files-found: error + if-no-files-found: error From 060419007a7c2c760d07b9d8e71093f55fe16b09 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 3 Nov 2021 16:29:43 -0700 Subject: [PATCH 12/21] move test resources --- .github/workflows/insitu.yml | 4 ++-- .../workflows/resources}/inputs_3d_ascent_test | 0 .../resources/inputs_3d_ascent_test_ascent_actions.yaml | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {Examples/Physics_applications/laser_acceleration => .github/workflows/resources}/inputs_3d_ascent_test (100%) rename Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml => .github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml (100%) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index af3048856be..237896d9241 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -53,8 +53,8 @@ jobs: . /ascent_docker_setup_env.sh && cmake --build build -j 2 - name: Test run: | - cp Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test . - cp Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml ascent_actions.yaml + cp .github/workflows/resources/inputs_3d_ascent_test . + cp .github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml ascent_actions.yaml mpiexec -n 2 ./build/bin/warpx inputs_3d_ascent_test - uses: actions/upload-artifact@v2 with: diff --git a/Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test b/.github/workflows/resources/inputs_3d_ascent_test similarity index 100% rename from Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test rename to .github/workflows/resources/inputs_3d_ascent_test diff --git a/Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml b/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml similarity index 100% rename from Examples/Physics_applications/laser_acceleration/ascent_actions_test.yaml rename to .github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml From 11a98a869d0fccead0ad12961a0c8f02aa2a3e11 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 3 Nov 2021 16:46:38 -0700 Subject: [PATCH 13/21] get into style --- .../inputs_3d_ascent_test_ascent_actions.yaml | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml b/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml index cb8b0ec6e80..59452995383 100644 --- a/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml +++ b/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml @@ -5,39 +5,39 @@ # Rendering the Electrons Particle mesh # Exporting Blueprint HDF5 files # -- +- action: add_pipelines - pipelines: - contour_pipeline: - f0: - params: + pipelines: + contour_pipeline: + f0: + params: field: Ey levels: 16 type: contour -- +- action: add_scenes - scenes: - ey_contour_pc: - plots: - p0: + scenes: + ey_contour_pc: + plots: + p0: field: Ey pipeline: contour_pipeline type: pseudocolor - ey_volrend: - plots: - p0: + ey_volrend: + plots: + p0: field: Ey type: volume - uz_pc: - plots: - p0: + uz_pc: + plots: + p0: field: particle_electrons_uz type: pseudocolor -- +- action: add_extracts - extracts: + extracts: e1: - params: + params: path: ./conduit_blueprint protocol: blueprint/mesh/hdf5 type: relay From ae68fe37d271904d66212bb73978f9e5b9ad7e22 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 3 Nov 2021 16:52:17 -0700 Subject: [PATCH 14/21] style --- .../resources/inputs_3d_ascent_test_ascent_actions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml b/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml index 59452995383..f8028225d2e 100644 --- a/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml +++ b/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml @@ -36,7 +36,7 @@ - action: add_extracts extracts: - e1: + e1: params: path: ./conduit_blueprint protocol: blueprint/mesh/hdf5 From 0c9e77a71758752c442223e9041eb2ad65903641 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 8 Nov 2021 15:05:37 -0800 Subject: [PATCH 15/21] Ascent CI: Cleanup (#1) - make sure inputs file stays up-to-date - locate alongside example --- .github/workflows/insitu.yml | 21 +++-- .../workflows/resources/inputs_3d_ascent_test | 78 ------------------- .../inputs_3d_ascent_test_ascent_actions.yaml | 0 3 files changed, 14 insertions(+), 85 deletions(-) delete mode 100644 .github/workflows/resources/inputs_3d_ascent_test rename {.github/workflows/resources => Examples/Physics_applications/laser_acceleration}/inputs_3d_ascent_test_ascent_actions.yaml (100%) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 237896d9241..d39f840ae6f 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -45,17 +45,24 @@ jobs: - uses: actions/checkout@v2 - name: Configure run: | - . /ascent_docker_setup_env.sh && cmake -S . -B build \ - -DWarpX_ASCENT=ON \ - -DWarpX_COMPUTE=NOACC + . /ascent_docker_setup_env.sh + cmake -S . -B build \ + -DWarpX_ASCENT=ON \ + -DWarpX_COMPUTE=NOACC - name: Build run: | - . /ascent_docker_setup_env.sh && cmake --build build -j 2 + . /ascent_docker_setup_env.sh + cmake --build build -j 2 - name: Test run: | - cp .github/workflows/resources/inputs_3d_ascent_test . - cp .github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml ascent_actions.yaml - mpiexec -n 2 ./build/bin/warpx inputs_3d_ascent_test + cp Examples/Physics_applications/laser_acceleration/inputs_3d . + cp Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test_ascent_actions.yaml ascent_actions.yaml + + mpiexec -n 2 ./build/bin/warpx \ + inputs_3d_ascent_test \ + max_step = 40 \ + diag1.intervals = 30:40:10 \ + diag1.format = ascent - uses: actions/upload-artifact@v2 with: name: ascent-test-artifacts diff --git a/.github/workflows/resources/inputs_3d_ascent_test b/.github/workflows/resources/inputs_3d_ascent_test deleted file mode 100644 index ae162f24b80..00000000000 --- a/.github/workflows/resources/inputs_3d_ascent_test +++ /dev/null @@ -1,78 +0,0 @@ -################################# -####### GENERAL PARAMETERS ###### -################################# -# NOTE: end early for this test -max_step = 40 -amr.n_cell = 64 64 512 -amr.max_grid_size = 64 # maximum size of each AMReX box, used to decompose the domain -amr.blocking_factor = 32 # minimum size of each AMReX box, used to decompose the domain -geometry.coord_sys = 0 # 0: Cartesian -geometry.prob_lo = -30.e-6 -30.e-6 -56.e-6 # physical domain -geometry.prob_hi = 30.e-6 30.e-6 12.e-6 -amr.max_level = 0 # Maximum level in hierarchy (1 might be unstable, >1 is not supported) -# warpx.fine_tag_lo = -5.e-6 -5.e-6 -50.e-6 -# warpx.fine_tag_hi = 5.e-6 5.e-6 -30.e-6 - -################################# -####### Boundary condition ###### -################################# -boundary.field_lo = periodic periodic pec -boundary.field_hi = periodic periodic pec - -################################# -############ NUMERICS ########### -################################# -warpx.verbose = 1 -warpx.do_dive_cleaning = 0 -warpx.use_filter = 1 -warpx.cfl = 1. # if 1., the time step is set to its CFL limit -warpx.do_moving_window = 1 -warpx.moving_window_dir = z # Only z is supported for the moment -warpx.moving_window_v = 1.0 # units of speed of light - -# Order of particle shape factors -algo.particle_shape = 3 - -################################# -############ PLASMA ############# -################################# -particles.species_names = electrons - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 1 1 1 -electrons.xmin = -20.e-6 -electrons.xmax = 20.e-6 -electrons.ymin = -20.e-6 -electrons.ymax = 20.e-6 -electrons.zmin = 10.e-6 -electrons.profile = constant -electrons.density = 2.e23 # number of electrons per m^3 -electrons.momentum_distribution_type = "at_rest" -electrons.do_continuous_injection = 1 - -################################# -############ LASER ############# -################################# -lasers.names = laser1 -laser1.profile = Gaussian -laser1.position = 0. 0. 9.e-6 # This point is on the laser plane -laser1.direction = 0. 0. 1. # The plane normal direction -laser1.polarization = 0. 1. 0. # The main polarization vector -laser1.e_max = 16.e12 # Maximum amplitude of the laser field (in V/m) -laser1.profile_waist = 5.e-6 # The waist of the laser (in m) -laser1.profile_duration = 15.e-15 # The duration of the laser (in s) -laser1.profile_t_peak = 30.e-15 # Time at which the laser reaches its peak (in s) -laser1.profile_focal_distance = 100.e-6 # Focal distance from the antenna (in m) -laser1.wavelength = 0.8e-6 # The wavelength of the laser (in m) - -# Diagnostics -diagnostics.diags_names = diag1 - -# Ascent tests at cycle = 30 and 40 -diag1.intervals = 30:40:10 -diag1.format = ascent -diag1.diag_type = Full -dia1.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho - diff --git a/.github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml b/Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test_ascent_actions.yaml similarity index 100% rename from .github/workflows/resources/inputs_3d_ascent_test_ascent_actions.yaml rename to Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test_ascent_actions.yaml From 516f11b2c515be4a937fe0ca532fec331949f285 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Tue, 9 Nov 2021 10:11:52 -0800 Subject: [PATCH 16/21] Update .github/workflows/insitu.yml Co-authored-by: Axel Huebl --- .github/workflows/insitu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index d39f840ae6f..16117e1bfc2 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -56,7 +56,7 @@ jobs: - name: Test run: | cp Examples/Physics_applications/laser_acceleration/inputs_3d . - cp Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test_ascent_actions.yaml ascent_actions.yaml + cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml mpiexec -n 2 ./build/bin/warpx \ inputs_3d_ascent_test \ From 550346d6b504c8e69e0e5fdf948e3f353f235ad7 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Tue, 9 Nov 2021 10:11:58 -0800 Subject: [PATCH 17/21] Update .github/workflows/insitu.yml Co-authored-by: Axel Huebl --- .github/workflows/insitu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 16117e1bfc2..757c6bf170e 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -59,7 +59,7 @@ jobs: cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml mpiexec -n 2 ./build/bin/warpx \ - inputs_3d_ascent_test \ + inputs_3d \ max_step = 40 \ diag1.intervals = 30:40:10 \ diag1.format = ascent From bc8c85da8d83ad3930fb41e3a41063f549f066f6 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 10 Nov 2021 09:59:47 -0800 Subject: [PATCH 18/21] rename test file --- ..._3d_ascent_test_ascent_actions.yaml => 3d_ascent_actions.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Examples/Physics_applications/laser_acceleration/{inputs_3d_ascent_test_ascent_actions.yaml => 3d_ascent_actions.yaml} (100%) diff --git a/Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test_ascent_actions.yaml b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml similarity index 100% rename from Examples/Physics_applications/laser_acceleration/inputs_3d_ascent_test_ascent_actions.yaml rename to Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml From e03ca10e8e40c117a3acaad4d76b6ca4988c83a8 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 10 Nov 2021 10:13:16 -0800 Subject: [PATCH 19/21] fix for cp --- .github/workflows/insitu.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 757c6bf170e..9b81184b998 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -56,8 +56,7 @@ jobs: - name: Test run: | cp Examples/Physics_applications/laser_acceleration/inputs_3d . - cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml - + cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml ascent_actions.yaml mpiexec -n 2 ./build/bin/warpx \ inputs_3d \ max_step = 40 \ From 9c509bf028366f1c8842c4cecde61de43e058558 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Thu, 11 Nov 2021 11:22:41 -0800 Subject: [PATCH 20/21] improve color table for vol rendering --- .../laser_acceleration/3d_ascent_actions.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml index f8028225d2e..81c048cb5c3 100644 --- a/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml +++ b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml @@ -28,6 +28,23 @@ p0: field: Ey type: volume + min_value: -3e+12 + max_value: 3e+12 + color_table: + name: "Cool to Warm Extended" + control_points: + - + type: "alpha" + position: 0.0 + alpha: 1.0 + - + type: "alpha" + position: 0.5 + alpha: 0.0 + - + type: "alpha" + position: 1.0 + alpha: 1.0 uz_pc: plots: p0: From 0ccc25a9849e5fbb70a35997a4ecb4d853b33e21 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Fri, 19 Nov 2021 09:53:44 -0800 Subject: [PATCH 21/21] now with rotation --- .../laser_acceleration/3d_ascent_actions.yaml | 65 ++++++++++++------- 1 file changed, 40 insertions(+), 25 deletions(-) diff --git a/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml index 81c048cb5c3..c5b71058741 100644 --- a/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml +++ b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml @@ -23,33 +23,48 @@ field: Ey pipeline: contour_pipeline type: pseudocolor + renders: + r1: + camera: + azimuth: 90.0 + image_prefix: "ey_contour_pc_" ey_volrend: - plots: - p0: - field: Ey - type: volume - min_value: -3e+12 - max_value: 3e+12 - color_table: - name: "Cool to Warm Extended" - control_points: - - - type: "alpha" - position: 0.0 - alpha: 1.0 - - - type: "alpha" - position: 0.5 - alpha: 0.0 - - - type: "alpha" - position: 1.0 - alpha: 1.0 + plots: + p0: + field: Ey + type: volume + min_value: -3e+12 + max_value: 3e+12 + color_table: + name: "Cool to Warm Extended" + control_points: + - + type: "alpha" + position: 0.0 + alpha: 1.0 + - + type: "alpha" + position: 0.5 + alpha: 0.0 + - + type: "alpha" + position: 1.0 + alpha: 1.0 + renders: + r1: + camera: + azimuth: 90.0 + image_prefix: "ey_volrend_" uz_pc: - plots: - p0: - field: particle_electrons_uz - type: pseudocolor + plots: + p0: + field: particle_electrons_uz + type: pseudocolor + renders: + r1: + camera: + azimuth: 90.0 + image_prefix: "uz_pc_" - action: add_extracts extracts: