Commit 84e76975 authored by Douglas Serson's avatar Douglas Serson

Use flooe to make code clearer

parent 900ac603
......@@ -172,8 +172,8 @@ void FilterHistoryPoints::v_Initialise(
int plane;
if (m_outputPlane == -1)
{
// Convert to int to pick the previous plane closer to the point
plane = (gloCoord[2]*nplanes)/lhom;
// Pick plane immediately before the point
plane = floor((gloCoord[2]*nplanes)/lhom);
}
else
{
......@@ -185,8 +185,8 @@ void FilterHistoryPoints::v_Initialise(
Z = (Z+1)*lhom/2;
if(fabs(gloCoord[2]-Z) > NekConstants::kVertexTheSameDouble)
{
cout << "Reseting History point from " << gloCoord[2]
<< " to " << Z << endl;
cout << "Reseting History point from z = " << gloCoord[2]
<< " to z = " << Z << endl;
}
gloCoord[2] = Z;
planeIDs.push_back(plane);
......
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