mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
Lock mesh in Mesh::Compress
This commit is contained in:
parent
9feb9de9b1
commit
7c88a6da76
@ -3257,6 +3257,8 @@ namespace netgen
|
|||||||
void Mesh :: Compress ()
|
void Mesh :: Compress ()
|
||||||
{
|
{
|
||||||
static Timer t("Mesh::Compress"); RegionTimer reg(t);
|
static Timer t("Mesh::Compress"); RegionTimer reg(t);
|
||||||
|
NgLock lock(mutex);
|
||||||
|
lock.Lock();
|
||||||
|
|
||||||
NgArray<PointIndex,PointIndex::BASE,PointIndex> op2np(GetNP());
|
NgArray<PointIndex,PointIndex::BASE,PointIndex> op2np(GetNP());
|
||||||
NgArray<MeshPoint> hpoints;
|
NgArray<MeshPoint> hpoints;
|
||||||
@ -3415,6 +3417,7 @@ namespace netgen
|
|||||||
|
|
||||||
// FindOpenElements();
|
// FindOpenElements();
|
||||||
timestamp = NextTimeStamp();
|
timestamp = NextTimeStamp();
|
||||||
|
lock.UnLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mesh :: OrderElements()
|
void Mesh :: OrderElements()
|
||||||
|
Loading…
Reference in New Issue
Block a user