Skip to content

Commit be79d1b

Browse files
committed
fix: update analytical IC codegen to use x%cc(i) after grid_axis refactor
1 parent d902e42 commit be79d1b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

toolchain/mfc/case.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ def __get_analytic_ic_fpp(self, print: bool) -> str:
189189
# values from the case file
190190
def rhs_replace(match):
191191
return {
192-
"x": "x_cc(i)",
193-
"y": "y_cc(j)",
194-
"z": "z_cc(k)",
192+
"x": "x%cc(i)",
193+
"y": "y%cc(j)",
194+
"z": "z%cc(k)",
195195
"xc": f"patch_icpp({pid})%x_centroid",
196196
"yc": f"patch_icpp({pid})%y_centroid",
197197
"zc": f"patch_icpp({pid})%z_centroid",
@@ -271,9 +271,9 @@ def __get_analytic_mib_fpp(self, print: bool) -> str:
271271
# values from the case file
272272
def rhs_replace(match):
273273
return {
274-
"x": "x_cc(i)",
275-
"y": "y_cc(j)",
276-
"z": "z_cc(k)",
274+
"x": "x%cc(i)",
275+
"y": "y%cc(j)",
276+
"z": "z%cc(k)",
277277
"t": "mytime",
278278
"r": f"patch_ib({pid})%radius",
279279
"e": f"{math.e}",

0 commit comments

Comments
 (0)