Skip to content

Commit d791e67

Browse files
authored
Remove strang nse (AMReX-Astro#1549)
Strang does not really allow us to do 2nd order easily because we can't capture the evolution of the state during the burn
1 parent 4142d4f commit d791e67

File tree

5 files changed

+13
-150
lines changed

5 files changed

+13
-150
lines changed

.github/workflows/nse_table.yml

-20
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,6 @@ jobs:
2626
sudo apt-get update -y -qq
2727
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0
2828
29-
- name: Compile, burn_cell (NSE, aprox19)
30-
run: |
31-
cd unit_test/burn_cell
32-
make realclean
33-
make NETWORK_DIR=aprox19 USE_NSE_TABLE=TRUE INTEGRATOR_DIR=VODE -j 4
34-
35-
- name: Run burn_cell (NSE, aprox19)
36-
run: |
37-
cd unit_test/burn_cell
38-
./main3d.gnu.ex inputs_aprox19.nse amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
39-
40-
- name: Print backtrace
41-
if: ${{ failure() && hashFiles('unit_test/burn_cell/Backtrace.0') != '' }}
42-
run: cat unit_test/burn_cell/Backtrace.0
43-
44-
- name: Compare to stored output (NSE, aprox19)
45-
run: |
46-
cd unit_test/burn_cell
47-
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/aprox19_nse_unit_test.out
48-
4929
- name: Compile, burn_cell_sdc (NSE, aprox19)
5030
run: |
5131
cd unit_test/burn_cell_sdc

Make.Microphysics_extern

+9
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ endif
8787
table:
8888
@if [ ! -f helm_table.dat ]; then echo Linking helm_table.dat; ln -s $(EOS_PATH)/helm_table.dat .; fi
8989

90+
# USE_ALL_NSE will be used if any of the NSE techniques is applied
91+
ifeq ($(USE_NSE_TABLE),TRUE)
92+
USE_ALL_NSE := TRUE
93+
endif
94+
95+
ifeq ($(USE_NSE_NET),TRUE)
96+
USE_ALL_NSE := TRUE
97+
endif
98+
9099
# NSE networks need the table
91100
ifeq ($(USE_NSE_TABLE),TRUE)
92101
NSE_TABULAR_HOME ?= $(MICROPHYSICS_HOME)/nse_tabular

integration/Make.package

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ else
2626
CEXE_headers += integrator_setup_strang.H
2727
endif
2828

29-
ifeq ($(USE_NSE_TABLE), TRUE)
29+
30+
ifeq ($(USE_ALL_NSE), TRUE)
3031
ifeq ($(USE_ALL_SDC), TRUE)
3132
CEXE_headers += nse_update_sdc.H
3233
else
33-
CEXE_headers += nse_update_strang.H
34+
$(error NSE with Strang integration is not supported)
3435
endif
3536
endif
3637

integration/nse_update_strang.H

-128
This file was deleted.

unit_test/test_nse_interp/GNUmakefile

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ USE_MPI = FALSE
1111
USE_OMP = FALSE
1212

1313
USE_REACT = TRUE
14+
USE_SIMPLIFIED_SDC = TRUE
1415

1516
EBASE = main
1617

0 commit comments

Comments
 (0)