Skip to content

Commit 2477c7f

Browse files
committed
fix frontier benchmarking buf
1 parent a2c0cc6 commit 2477c7f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

toolchain/mfc/case.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,18 +203,19 @@ def __get_sim_fpp(self, print: bool) -> str:
203203
wenojs = 0 if (mapped_weno or wenoz or teno) else 1
204204
igr = 1 if self.params.get("igr", 'F') == 'T' else 0
205205

206-
if self.params.get("igr", "F") == 'T':
207-
weno_order = 5
208-
weno_polyn = 3
209-
210206
recon_type = self.params.get("recon_type", 1)
207+
211208
# This fixes a bug on Frontier to do with allocating 0:0 arrays
212209
weno_order = int(self.params.get("weno_order", 0))
213210
if recon_type == 1:
214211
weno_polyn = int((weno_order - 1) / 2)
215212
else:
216213
weno_polyn = 1
217214

215+
if self.params.get("igr", "F") == 'T':
216+
weno_order = 5
217+
weno_polyn = 3
218+
218219
if teno:
219220
weno_num_stencils = weno_order - 3
220221
else:

0 commit comments

Comments
 (0)