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