Commit cce1dc18 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Fixed code formatting.

parent 7eadb1d2
......@@ -1598,9 +1598,10 @@ namespace Nektar
break;
case StdRegions::eLaplacian:
{
if(m_metricinfo->GetGtype() == SpatialDomains::eDeformed ||
mkey.GetNVarCoeff()||
(mkey.ConstFactorExists(StdRegions::eFactorSVVCutoffRatio)))
if (m_metricinfo->GetGtype() == SpatialDomains::eDeformed ||
mkey.GetNVarCoeff()||
mkey.ConstFactorExists(
StdRegions::eFactorSVVCutoffRatio))
{
NekDouble one = 1.0;
DNekMatSharedPtr mat = GenMatrix(mkey);
......
......@@ -1341,9 +1341,10 @@ namespace Nektar
case StdRegions::eLaplacian:
{
if((m_metricinfo->GetGtype() == SpatialDomains::eDeformed)||
(mkey.GetNVarCoeff() > 0)||
(mkey.ConstFactorExists(StdRegions::eFactorSVVCutoffRatio)))
if (m_metricinfo->GetGtype() == SpatialDomains::eDeformed ||
mkey.GetNVarCoeff() > 0 ||
mkey.ConstFactorExists(
StdRegions::eFactorSVVCutoffRatio))
{
NekDouble one = 1.0;
DNekMatSharedPtr mat = GenMatrix(mkey);
......
......@@ -451,9 +451,10 @@ namespace Nektar
break;
case StdRegions::eLaplacian:
{
if((m_metricinfo->GetGtype() == SpatialDomains::eDeformed)||
(mkey.GetNVarCoeff() > 0)||
(mkey.ConstFactorExists(StdRegions::eFactorSVVCutoffRatio)))
if (m_metricinfo->GetGtype() == SpatialDomains::eDeformed ||
mkey.GetNVarCoeff() > 0 ||
mkey.ConstFactorExists(
StdRegions::eFactorSVVCutoffRatio))
{
NekDouble one = 1.0;
DNekMatSharedPtr mat = GenMatrix(mkey);
......
......@@ -197,8 +197,8 @@ namespace Nektar
Array<OneD,NekDouble> &outarray,
const StdRegions::StdMatrixKey &mkey)
{
if((mkey.GetNVarCoeff() == 0)
&&!mkey.ConstFactorExists(eFactorSVVCutoffRatio))
if ( mkey.GetNVarCoeff() == 0 &&
!mkey.ConstFactorExists(eFactorSVVCutoffRatio))
{
// This implementation is only valid when there are no
// coefficients associated to the Laplacian operator
......
......@@ -1459,10 +1459,12 @@ namespace Nektar
{
if(j + k >= cutoff) //to filter out only the "high-modes"
{
//orthocoeffs[cnt] *= (1.0+SvvDiffCoeff*exp(-(j-nmodes)*(j-nmodes)/((NekDouble)((j-cutoff+epsilon)*(j-cutoff+epsilon))))*exp(-(k-nmodes)*(k-nmodes)/((NekDouble)((k-cutoff+epsilon)*(k-cutoff+epsilon)))));
orthocoeffs[j*nmodes_b+k] *= (1.0+SvvDiffCoeff*exp(-(j+k-nmodes)*(j+k-nmodes)/((NekDouble)((j+k-cutoff+1)*(j+k-cutoff+1)))));
orthocoeffs[j*nmodes_b+k] *=
(1.0+SvvDiffCoeff*exp(-(j+k-nmodes)*(j+k-nmodes)/
((NekDouble)((j+k-cutoff+1)*
(j+k-cutoff+1)))));
}
cnt++;
cnt++;
}
}
......
Supports Markdown
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