From 084bd015f13611a99084352ee94566931f547eea Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 5 Oct 2023 12:37:41 +0100 Subject: [PATCH] modules::shockFluid: Clear temporary fluxed if NCC interfaces are updated Resolves bug-report https://bugs.openfoam.org/view.php?id=4020 --- applications/modules/shockFluid/shockFluid.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/modules/shockFluid/shockFluid.C b/applications/modules/shockFluid/shockFluid.C index e34996cecd..4770fa6d5f 100644 --- a/applications/modules/shockFluid/shockFluid.C +++ b/applications/modules/shockFluid/shockFluid.C @@ -24,6 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "shockFluid.H" +#include "fvMeshStitcher.H" #include "localEulerDdtScheme.H" #include "hydrostaticInitialisation.H" #include "fvcMeshPhi.H" @@ -255,7 +256,7 @@ void Foam::solvers::shockFluid::preSolve() fvModels().preUpdateMesh(); - if (mesh.topoChanging()) + if (mesh.topoChanging() || mesh.stitcher().stitches()) { pos.clear(); neg.clear();