Commit d4242d9f authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Meshindicator corrected

parent 63917c5d
......@@ -27,8 +27,8 @@ namespace tools {
struct MeshIndicator
{
MeshIndicator() : boundary_index(0) { dimension.set(1.0); }
MeshIndicator(WorldVector<double> dimension_) : boundary_index(0), dimension(dimension_) { }
MeshIndicator(Mesh* mesh) : boundary_index(0)
{
dimension = Helpers::getMeshDimension(mesh);
......@@ -42,12 +42,9 @@ namespace tools {
virtual bool operator()(const ElInfo* elInfo) const
{
bool result = true;
for (int i = 0; i < elInfo->getMesh()->getDim()+1; i++) {
for (int i = 0; i < elInfo->getMesh()->getDim()+1; i++)
result = result && operator()(elInfo->getCoord(i));
if (!result)
break;
}
return true;
return result;
}
void set_boundary_index(int boundary_index_)
......
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