From eae59541286d361836f6f508cad746a2a1969ec3 Mon Sep 17 00:00:00 2001 From: ChrisZYJ Date: Mon, 28 Oct 2024 21:36:26 -0700 Subject: [PATCH] fix case-opt --- src/simulation/m_mpi_proxy.fpp | 3 ++- toolchain/mfc/case.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/simulation/m_mpi_proxy.fpp b/src/simulation/m_mpi_proxy.fpp index a84f7c60e5..e2e9dbafbd 100644 --- a/src/simulation/m_mpi_proxy.fpp +++ b/src/simulation/m_mpi_proxy.fpp @@ -213,7 +213,7 @@ contains #:endfor end if - #:for VAR in [ 'dt','weno_eps','wenoz_q','teno_CT','pref','rhoref','R0ref','Web','Ca', 'sigma', & + #:for VAR in [ 'dt','weno_eps','teno_CT','pref','rhoref','R0ref','Web','Ca', 'sigma', & & 'Re_inv', 'poly_sigma', 'palpha_eps', 'ptgalpha_eps', 'pi_fac', & & 'bc_x%vb1','bc_x%vb2','bc_x%vb3','bc_x%ve1','bc_x%ve2','bc_x%ve2', & & 'bc_y%vb1','bc_y%vb2','bc_y%vb3','bc_y%ve1','bc_y%ve2','bc_y%ve3', & @@ -230,6 +230,7 @@ contains call MPI_BCAST(weno_order, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr) call MPI_BCAST(nb, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr) call MPI_BCAST(num_fluids, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr) + call MPI_BCAST(wenoz_q, 1, MPI_DOUBLE_PRECISION, 0, MPI_COMM_WORLD, ierr) #:endif do i = 1, num_fluids_max diff --git a/toolchain/mfc/case.py b/toolchain/mfc/case.py index 23f9657e48..771b38f080 100644 --- a/toolchain/mfc/case.py +++ b/toolchain/mfc/case.py @@ -199,7 +199,7 @@ def __get_sim_fpp(self, print: bool) -> str: else: weno_num_stencils = weno_polyn - # Throw error if wenoz_q or teno_CT are required but not set + # Throw error if wenoz_q is required but not set return f"""\ #:set MFC_CASE_OPTIMIZATION = {ARG("case_optimization")} #:set weno_order = {weno_order} @@ -213,7 +213,7 @@ def __get_sim_fpp(self, print: bool) -> str: #:set mapped_weno = {mapped_weno} #:set wenoz = {wenoz} #:set teno = {teno} -#:set wenoz_q = {int(self.params.get("wenoz_q", -1))} +#:set wenoz_q = {self.params.get("wenoz_q", -1)} """ return """\