From b6c14baeaacf50a11e5fd156f4ab8943112dde44 Mon Sep 17 00:00:00 2001
From: Jacques Xing <jxing1@ic.ac.uk>
Date: Fri, 20 Sep 2024 13:17:54 +0000
Subject: [PATCH] Fix unitialized parameter in VCS

---
 CHANGELOG.md                                                    | 1 +
 .../EquationSystems/VelocityCorrectionScheme.cpp                | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 874f99f113..3187b5e557 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ v5.7.0
 - Fix initial and boundary conditions in the moving reference frame (!1692, !1820)
 - Fix memory-leak for the Mixed_CG_Discontinuous projection when initializing the traceMep (!1806)
 - Add synthetic turbulence generation for the incompressible solver (!1664) 
+- Fix a uninitialized parameter in VCS (!1880)
 
 **ShallowWaterSolver**
 - Implement implicit time-discritization (!1784)
diff --git a/solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp b/solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
index ff208533c3..2028e8e2b1 100644
--- a/solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
+++ b/solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
@@ -942,6 +942,8 @@ void VelocityCorrectionScheme::SetUpSVV(void)
     }
     else
     {
+        m_useHomo1DSpecVanVisc = false;
+
         m_session->MatchSolverInfo("SpectralVanishingViscositySpectralHP",
                                    "PowerKernel", m_useSpecVanVisc, false);
     }
-- 
GitLab