fix some NSE documentation #2517
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: burn_cell | |
on: [pull_request] | |
jobs: | |
burn_cell: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get AMReX | |
run: | | |
mkdir external | |
cd external | |
git clone https://github.com/AMReX-Codes/amrex.git | |
cd amrex | |
git checkout development | |
echo 'AMREX_HOME=$(GITHUB_WORKSPACE)/external/amrex' >> $GITHUB_ENV | |
echo $AMREX_HOME | |
if [[ -n "${AMREX_HOME}" ]]; then exit 1; fi | |
cd ../.. | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y -qq | |
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0 | |
- name: Compile, burn_cell (VODE, subch_simple) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=subch_simple -j 4 | |
- name: Run burn_cell (VODE, subch_simple) | |
run: | | |
cd unit_test/burn_cell | |
./main3d.gnu.ex inputs_subch_simple amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out | |
- name: Compare to stored output (VODE, subch_simple) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/subch_simple_unit_test.out | |
- name: Compile, burn_cell (VODE, ECSN) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=ECSN -j 4 | |
- name: Run burn_cell (VODE, ECSN) | |
run: | | |
cd unit_test/burn_cell | |
# disable fpe_trap_overflow, as there's a spurious exception when | |
# calculating DEL in vode_dvnlsd.H. | |
./main3d.gnu.ex inputs_ecsn amrex.fpe_trap_{invalid,zero}=1 > test.out | |
- name: Compare to stored output (VODE, ECSN) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/ecsn_unit_test.out | |
- name: Compile, burn_cell (VODE, ignition_chamulak) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=ignition_chamulak -j 4 | |
- name: Run burn_cell (VODE, ignition_chamulak) | |
run: | | |
cd unit_test/burn_cell | |
./main3d.gnu.ex inputs_ignition_chamulak amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out | |
- name: Compare to stored output (VODE, ignition_chamulak) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/chamulak_VODE_unit_test.out | |
- name: Compile, burn_cell (ForwardEuler, triple_alpha_plus_cago) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=triple_alpha_plus_cago INTEGRATOR_DIR=ForwardEuler -j 4 | |
- name: Run burn_cell (ForwardEuler, triple_alpha_plus_cago) | |
run: | | |
cd unit_test/burn_cell | |
./main3d.gnu.ex inputs_triple amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out | |
- name: Compare to stored output (ForwardEuler, triple_alpha_plus_cago) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/triple_alpha_plus_cago_FE_unit_test.out | |
- name: Compile, burn_cell (BackwardEuler, subch_simple) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=subch_simple INTEGRATOR_DIR=BackwardEuler -j 4 | |
- name: Run burn_cell (BackwardEuler, subch_simple) | |
run: | | |
cd unit_test/burn_cell | |
./main3d.gnu.ex inputs_subch_simple amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out | |
- name: Compare to stored output (BackwardEuler, subch_simple) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/subch_simple_BE_unit_test.out | |
- name: Compile, burn_cell (QSS, aprox13) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=aprox13 INTEGRATOR_DIR=QSS -j 4 | |
- name: Run burn_cell (QSS, aprox13) | |
run: | | |
cd unit_test/burn_cell | |
./main3d.gnu.ex inputs_aprox13 amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out | |
- name: Compare to stored output (QSS, aprox13) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/aprox13_QSS_unit_test.out | |
- name: Compile, burn_cell (RKC, aprox13) | |
run: | | |
cd unit_test/burn_cell | |
make realclean | |
make NETWORK_DIR=aprox13 INTEGRATOR_DIR=RKC -j 4 | |
- name: Run burn_cell (RKC, aprox13) | |
run: | | |
cd unit_test/burn_cell | |
./main3d.gnu.ex inputs_aprox13 unit_test.temperature=1.e9 amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out | |
- name: Compare to stored output (RKC, aprox13) | |
run: | | |
cd unit_test/burn_cell | |
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/aprox13_RKC_unit_test.out | |
- name: Print backtrace | |
if: ${{ failure() && hashFiles('unit_test/burn_cell/Backtrace.0') != '' }} | |
run: cat unit_test/burn_cell/Backtrace.0 |