Commit 7f0132ce authored by Kristof Sarosi's avatar Kristof Sarosi
Browse files

cylindric BC had a bug, modified '-' to '+'

parent 9c290a70
......@@ -43,7 +43,7 @@ protected:
virtual const bool nodeOnPatch(const Vector3D& coord) const
{
double distance = std::sqrt(std::pow(coord[0] - m_Center[0], 2.0) - std::pow(coord[2] - m_Center[2], 2.0)); //cylinder -> y direction doesn't matter
double distance = std::sqrt(std::pow(coord[0] - m_Center[0], 2.0) + std::pow(coord[2] - m_Center[2], 2.0)); //cylinder -> y direction doesn't matter
bool pointInCylinder = distance < m_Radius;
return pointInCylinder;
}
......
Supports Markdown
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