ElmerGUI loses boundary conditions when reloading a mesh

The graphical user interface of Elmer
Post Reply
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

ElmerGUI loses boundary conditions when reloading a mesh

Post by hazelsct »

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
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Re: ElmerGUI loses boundary conditions when reloading a mesh

Post by hazelsct »

I've traced this issue to a few lines at the end of MainWindow::applyOperations() :

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;
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?
Post Reply