Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add github ci compile check for ascent #2483

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
cyrush marked this conversation as resolved.
Show resolved Hide resolved
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