mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
master shouldn't refine
This commit is contained in:
parent
5994bf798d
commit
e17b2a4cd5
@ -15,6 +15,10 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
PrintMessage (3, "Refine mesh");
|
PrintMessage (3, "Refine mesh");
|
||||||
|
|
||||||
|
if (ntasks > 1 && id == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
// reduce 2nd order
|
// reduce 2nd order
|
||||||
mesh.ComputeNVertices();
|
mesh.ComputeNVertices();
|
||||||
mesh.SetNP(mesh.GetNV());
|
mesh.SetNP(mesh.GetNV());
|
||||||
@ -350,7 +354,7 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
PrintMessage (5, "have 2d elements");
|
PrintMessage (5, "have 2d elements");
|
||||||
|
// cout << "id = " << id << ", ne = " << mesh.GetNE() << endl;
|
||||||
// refine volume elements
|
// refine volume elements
|
||||||
int oldne = mesh.GetNE();
|
int oldne = mesh.GetNE();
|
||||||
mesh.VolumeElements().SetAllocSize(8*oldne);
|
mesh.VolumeElements().SetAllocSize(8*oldne);
|
||||||
|
Loading…
Reference in New Issue
Block a user