diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml index 8f1b8259a15..9b81184b998 100644 --- a/.github/workflows/insitu.yml +++ b/.github/workflows/insitu.yml @@ -30,3 +30,42 @@ 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: /ascent/install-debug/lib/cmake/ + container: + image: alpinedav/ascent:ascent-ubuntu-18_2021-11-02-sha458045 + steps: + - uses: actions/checkout@v2 + - name: Configure + run: | + . /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 + - name: Test + run: | + cp Examples/Physics_applications/laser_acceleration/inputs_3d . + cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml ascent_actions.yaml + mpiexec -n 2 ./build/bin/warpx \ + inputs_3d \ + max_step = 40 \ + diag1.intervals = 30:40:10 \ + diag1.format = ascent + - 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/3d_ascent_actions.yaml b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml new file mode 100644 index 00000000000..c5b71058741 --- /dev/null +++ b/Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml @@ -0,0 +1,76 @@ +# +# 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 + 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 + renders: + r1: + camera: + azimuth: 90.0 + image_prefix: "ey_volrend_" + uz_pc: + plots: + p0: + field: particle_electrons_uz + type: pseudocolor + renders: + r1: + camera: + azimuth: 90.0 + image_prefix: "uz_pc_" +- + action: add_extracts + extracts: + e1: + params: + path: ./conduit_blueprint + protocol: blueprint/mesh/hdf5 + type: relay +