mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50: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";
|
||||
for (size_t j = 1; j <= strlen(optstr); j++)
|
||||
{
|
||||
mesh.FindOpenElements();
|
||||
mesh.CalcSurfacesOfNode();
|
||||
mesh.FreeOpenElementsEnvironment(2);
|
||||
mesh.CalcSurfacesOfNode();
|
||||
@ -466,12 +467,12 @@ namespace netgen
|
||||
|
||||
}
|
||||
|
||||
mesh.FindOpenElements();
|
||||
mesh.FindOpenElements(domain);
|
||||
PrintMessage (3, "Call remove problem");
|
||||
// mesh.Save("before_remove.vol");
|
||||
RemoveProblem (mesh, domain);
|
||||
// mesh.Save("after_remove.vol");
|
||||
mesh.FindOpenElements();
|
||||
mesh.FindOpenElements(domain);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user