Skip to content

Commit

Permalink
add github ci compile check for ascent (#2483)
Browse files Browse the repository at this point in the history
* add github ci compile check for ascent

* now with less whitespace

* add ascent to insitu workflow

* Update .github/workflows/insitu.yml

Co-authored-by: Axel Huebl <[email protected]>

* more style

* try to run as existing user

* new container

* use env script

* path fix

* add ascent test

* fix space

* move test resources

* get into style

* style

* Ascent CI: Cleanup (#1)

- make sure inputs file stays up-to-date
- locate alongside example

* Update .github/workflows/insitu.yml

Co-authored-by: Axel Huebl <[email protected]>

* Update .github/workflows/insitu.yml

Co-authored-by: Axel Huebl <[email protected]>

* rename test file

* fix for cp

* improve color table for vol rendering

* now with rotation

Co-authored-by: Axel Huebl <[email protected]>
  • Loading branch information
cyrush and ax3l authored Nov 19, 2021
1 parent a110440 commit 279aadf
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/insitu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 279aadf

Please sign in to comment.