Commit 8842a63f authored by Chris Cantwell's avatar Chris Cantwell

Merge branch 'fixFilterEnergy' into 'master'

using lz instead of 2pi in FilterEnergy

See merge request nektar/nektar!1132
parents 016ef65c 3f54d6db
Pipeline #1713 failed with stages
in 212 minutes and 19 seconds
......@@ -20,6 +20,7 @@ v5.0.1
**Library**
- Fix incorrect coordinate dimension used in history point filter (!1118)
- Fix compile errors with GCC 9.x (!1108)
- Correct the Energy/Enstropy integral for the 3DH1 flow (!1132)
**IncNavierStokesSolver**
- Change the baseflow time in the Adjoint advection (!1133)
......
......@@ -202,7 +202,7 @@ void FilterEnergy::v_Update(
{
Array<OneD, NekDouble> tmp2(nPoints, 0.0);
pFields[0]->HomogeneousFwdTrans(tmp, tmp2);
Ek = pFields[0]->GetPlane(0)->Integral(tmp2) * 2.0 * M_PI;
Ek = pFields[0]->GetPlane(0)->Integral(tmp2) * m_homogeneousLength;
}
else
{
......@@ -256,7 +256,7 @@ void FilterEnergy::v_Update(
pFields[i]->SetWaveSpace(waveSpace[i]);
}
pFields[0]->HomogeneousFwdTrans(tmp, tmp);
Ek = pFields[0]->GetPlane(0)->Integral(tmp) * 2 * M_PI;
Ek = pFields[0]->GetPlane(0)->Integral(tmp) * m_homogeneousLength;
}
else
{
......
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