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

Meshindicator corrected

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