mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Call FindOpenElements before each optimization step
This commit is contained in:
parent
ab462237af
commit
a7a5067830
@ -451,6 +451,7 @@ namespace netgen
|
|||||||
const char * optstr = "mcmstmcmstmcmstmcm";
|
const char * optstr = "mcmstmcmstmcmstmcm";
|
||||||
for (size_t j = 1; j <= strlen(optstr); j++)
|
for (size_t j = 1; j <= strlen(optstr); j++)
|
||||||
{
|
{
|
||||||
|
mesh.FindOpenElements();
|
||||||
mesh.CalcSurfacesOfNode();
|
mesh.CalcSurfacesOfNode();
|
||||||
mesh.FreeOpenElementsEnvironment(2);
|
mesh.FreeOpenElementsEnvironment(2);
|
||||||
mesh.CalcSurfacesOfNode();
|
mesh.CalcSurfacesOfNode();
|
||||||
@ -466,12 +467,12 @@ namespace netgen
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.FindOpenElements();
|
mesh.FindOpenElements(domain);
|
||||||
PrintMessage (3, "Call remove problem");
|
PrintMessage (3, "Call remove problem");
|
||||||
// mesh.Save("before_remove.vol");
|
// mesh.Save("before_remove.vol");
|
||||||
RemoveProblem (mesh, domain);
|
RemoveProblem (mesh, domain);
|
||||||
// mesh.Save("after_remove.vol");
|
// mesh.Save("after_remove.vol");
|
||||||
mesh.FindOpenElements();
|
mesh.FindOpenElements(domain);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user