Commit be9c8a69 authored by Julian Marcon's avatar Julian Marcon
Browse files

Corrected phi evaluator.

parent aefbd798
...@@ -196,7 +196,7 @@ void CurveMesh::GetPhiFunction() ...@@ -196,7 +196,7 @@ void CurveMesh::GetPhiFunction()
newPhi.resize(2); newPhi.resize(2);
newPhi[0] = 0.0; newPhi[0] = 0.0;
newPhi[1] = 0.0; newPhi[1] = m_bloffset[0];
m_ps[0] = newPhi; m_ps[0] = newPhi;
...@@ -253,11 +253,11 @@ NekDouble CurveMesh::EvaluatePS(NekDouble s) ...@@ -253,11 +253,11 @@ NekDouble CurveMesh::EvaluatePS(NekDouble s)
int a = 0; int a = 0;
int b = 0; int b = 0;
if (s == 0) if (s <= m_bloffset[0])
{ {
return m_ps[0][0]; return m_ps[0][0];
} }
else if (s == m_curvelength) else if (s >= m_curvelength - m_bloffset[1])
{ {
return m_ps[m_numSamplePoints - 1][0]; return m_ps[m_numSamplePoints - 1][0];
} }
......
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