-
Notifications
You must be signed in to change notification settings - Fork 35
206 lines (171 loc) · 6.87 KB
/
test_rhs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: test_rhs
on: [pull_request]
jobs:
test_rhs:
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: Build the fextrema tool
run: |
cd external/amrex/Tools/Plotfile
make programs=fextrema -j 2
- name: Compile, test_rhs (VODE, ignition_simple)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=ignition_simple -j 4
- name: Run test_rhs (VODE, ignition_simple)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_ignition_simple amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_ignition_simple_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, ignition_simple)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/ignition_simple.out
- name: Compile, test_rhs (VODE, ignition_chamulak)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=ignition_chamulak -j 4
- name: Run test_rhs (VODE, ignition_chamulak)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_chamulak amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_chamulak_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, ignition_chamulak)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/chamulak.out
- name: Compile, test_rhs (VODE, iso7)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=iso7 -j 4
- name: Run test_rhs (VODE, iso7)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_iso7 amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_iso7_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, iso7)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/iso7.out
- name: Compile, test_rhs (VODE, aprox13)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=aprox13 -j 4
- name: Run test_rhs (VODE, aprox13)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_aprox13 amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_aprox13_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, aprox13)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/aprox13.out
- name: Compile, test_rhs (VODE, aprox19)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=aprox19 -j 4
- name: Run test_rhs (VODE, aprox19)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_aprox19 amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_aprox19_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, aprox19)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/aprox19.out
- name: Compile, test_rhs (VODE, aprox21)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=aprox21 -j 4
- name: Run test_rhs (VODE, aprox21)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_aprox21 amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_aprox21_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, aprox21)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/aprox21.out
- name: Compile, test_rhs (VODE, rprox)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=rprox -j 4
- name: Run test_rhs (VODE, rprox)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_rprox amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_rprox_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, rprox)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/rprox.out
- name: Compile, test_rhs (VODE, powerlaw)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=powerlaw -j 4
- name: Run test_rhs (VODE, powerlaw)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_powerlaw amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_powerlaw_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, powerlaw)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/powerlaw.out
- name: Compile, test_rhs (VODE, triple_alpha_plus_cago)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=triple_alpha_plus_cago -j 4
- name: Run test_rhs (VODE, triple_alpha_plus_cago)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_triple_alpha_plus_cago amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_triple_alpha_plus_cago_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, triple_alpha_plus_cago)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/triple_alpha_plus_cago.out
- name: Compile, test_rhs (VODE, ECSN)
run: |
cd unit_test/test_rhs
make realclean
make NETWORK_DIR=ECSN -j 4
- name: Run test_rhs (VODE, ECSN)
run: |
cd unit_test/test_rhs
./main3d.gnu.ex inputs_ecsn amrex.fpe_trap_{invalid,zero,overflow}=1
../../external/amrex/Tools/Plotfile/fextrema.gnu.ex react_ecsn_test_rhs.VODE > test.out
- name: Compare to stored output (VODE, ECSN)
run: |
cd unit_test/test_rhs
diff test.out ci-benchmarks/ecsn.out
- name: Print backtrace
if: ${{ failure() && hashFiles('unit_test/test_rhs/Backtrace.0') != '' }}
run: cat unit_test/test_rhs/Backtrace.0