Greetings,
I make ASCII .msh files with gmsh, and can run just fine in Elmer. But when I load a new mesh into an existing project, the equations, materials, initial conditions, everything related to bodies remain just fine, but it drops all of the boundary conditions so I need to go back in and enter them again. Though mesh density changes from run to run, the same boundary numbers have the same boundary conditions, just like the body numbers and info.
I would be happy to investigate myself if necessary; where should I start?
This is with revision 4256.
Thanks,
Adam
ElmerGUI loses boundary conditions when reloading a mesh
Re: ElmerGUI loses boundary conditions when reloading a mesh
I've traced this issue to a few lines at the end of MainWindow::applyOperations() :
It's not clear why this is here, and when it's commented, everything code works fine, the boundary conditions remain after loading the mesh, and starting by loading a mesh works fine.
Can these lines be removed without hurting anything?
Code: Select all
// Added 05 September 2009
boundaryPropertyEditor.clear();
int parts = glWidget->getLists();
boundaryPropertyEditor.resize(parts);
for(int i = 0; i < parts; i++)
boundaryPropertyEditor[i] = new BoundaryPropertyEditor;
Can these lines be removed without hurting anything?