Lock mesh in Mesh::Compress

This commit is contained in:
Matthias Hochsteger 2019-09-16 13:13:48 +02:00
parent 9feb9de9b1
commit 7c88a6da76

View File

@ -3257,6 +3257,8 @@ namespace netgen
void Mesh :: Compress ()
{
static Timer t("Mesh::Compress"); RegionTimer reg(t);
NgLock lock(mutex);
lock.Lock();
NgArray<PointIndex,PointIndex::BASE,PointIndex> op2np(GetNP());
NgArray<MeshPoint> hpoints;
@ -3415,6 +3417,7 @@ namespace netgen
// FindOpenElements();
timestamp = NextTimeStamp();
lock.UnLock();
}
void Mesh :: OrderElements()