set flags properly for new Elements

This commit is contained in:
Matthias Hochsteger 2021-06-11 15:32:07 +02:00
parent 1b5aa71ad6
commit b2af4c1069

View File

@ -384,6 +384,8 @@ namespace netgen
volelements.Append (el);
}
volelements.Last().flags.illegal_valid = 0;
volelements.Last().flags.fixed = 0;
volelements.Last().flags.deleted = 0;
// while (volelements.Size() > eltyps.Size())
// eltyps.Append (FREEELEMENT);
@ -405,6 +407,8 @@ namespace netgen
volelements[ei] = el;
volelements[ei].flags.illegal_valid = 0;
volelements[ei].flags.fixed = 0;
volelements[ei].flags.deleted = 0;
}