Commit 3f54d6db authored by Gao Ankang's avatar Gao Ankang Committed by Chris Cantwell

using lz instead of 2pi in FilterEnergy

parent c9874270
......@@ -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)
**NekMesh**
- Fix compile errors when using intel cc (!1114)
......
......@@ -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