Skip to content

Commit eae5954

Browse files
committed
fix case-opt
1 parent 0b8e68b commit eae5954

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/simulation/m_mpi_proxy.fpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ contains
213213
#:endfor
214214
end if
215215
216-
#:for VAR in [ 'dt','weno_eps','wenoz_q','teno_CT','pref','rhoref','R0ref','Web','Ca', 'sigma', &
216+
#:for VAR in [ 'dt','weno_eps','teno_CT','pref','rhoref','R0ref','Web','Ca', 'sigma', &
217217
& 'Re_inv', 'poly_sigma', 'palpha_eps', 'ptgalpha_eps', 'pi_fac', &
218218
& 'bc_x%vb1','bc_x%vb2','bc_x%vb3','bc_x%ve1','bc_x%ve2','bc_x%ve2', &
219219
& 'bc_y%vb1','bc_y%vb2','bc_y%vb3','bc_y%ve1','bc_y%ve2','bc_y%ve3', &
@@ -230,6 +230,7 @@ contains
230230
call MPI_BCAST(weno_order, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)
231231
call MPI_BCAST(nb, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)
232232
call MPI_BCAST(num_fluids, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)
233+
call MPI_BCAST(wenoz_q, 1, MPI_DOUBLE_PRECISION, 0, MPI_COMM_WORLD, ierr)
233234
#:endif
234235
235236
do i = 1, num_fluids_max

toolchain/mfc/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __get_sim_fpp(self, print: bool) -> str:
199199
else:
200200
weno_num_stencils = weno_polyn
201201

202-
# Throw error if wenoz_q or teno_CT are required but not set
202+
# Throw error if wenoz_q is required but not set
203203
return f"""\
204204
#:set MFC_CASE_OPTIMIZATION = {ARG("case_optimization")}
205205
#:set weno_order = {weno_order}
@@ -213,7 +213,7 @@ def __get_sim_fpp(self, print: bool) -> str:
213213
#:set mapped_weno = {mapped_weno}
214214
#:set wenoz = {wenoz}
215215
#:set teno = {teno}
216-
#:set wenoz_q = {int(self.params.get("wenoz_q", -1))}
216+
#:set wenoz_q = {self.params.get("wenoz_q", -1)}
217217
"""
218218

219219
return """\

0 commit comments

Comments
 (0)