Commit 84777f07 authored by Andrea Cassinelli's avatar Andrea Cassinelli

Modified logic so that SVVSpectralHP and SVVHomo1D can be specified...

Modified logic so that SVVSpectralHP and SVVHomo1D can be specified independently, and are off by default if not specified
parent 607577b5
......@@ -881,7 +881,7 @@ namespace Nektar
// Case of only Homo1D kernel
if(m_useSpecVanVisc == false)
if(m_session->DefinesSolverInfo("SpectralVanishingViscosityHomo1D"))
{
m_session->MatchSolverInfo("SpectralVanishingViscosityHomo1D",
"True", m_useHomo1DSpecVanVisc, false);
......@@ -891,22 +891,6 @@ namespace Nektar
"ExpKernel", m_useHomo1DSpecVanVisc, false);
}
}
else
{
bool testForFalse;
// Case where Homo1D is turned off but has been turned on
// impliictly by SpectralVanishingViscosity solver info
m_session->MatchSolverInfo("SpectralVanishingViscosityHomo1D",
"False", testForFalse, false);
if(testForFalse)
{
m_useHomo1DSpecVanVisc = false;
}
else
{
m_useHomo1DSpecVanVisc = true;
}
}
m_session->LoadParameter("SVVCutoffRatio",m_sVVCutoffRatio,0.75);
m_session->LoadParameter("SVVCutoffRatioHomo1D",m_sVVCutoffRatioHomo1D,m_sVVCutoffRatio);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment