Hello,

I have a couple of meshes, each with the same linear equations and boundary
conditions. Then I tried to solve them in a loop in the following way:

for (int i = 0; i < number_of_meshes; i++)
{
    EquationSystems es( mesh[i] );
    es.add_system<LinearImplicitSystem>(sys_name);
    es.get_system(sys_name).add_variable("u", FIRST);
    es.get_system(sys_name).attach_assemble_function(assemble_func);
    es.init();
    es.get_system(sys_name).solve();
}

But it always gives a segmentation fault if the number of meshes is more
than one. I guess it might be due to the declaration of an equation system
in the loop. Could you give me any suggestions? Thanks!

Best
Jingjing
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to