Re: [Libmesh-users] problem with EquationSystems in a loop

2012-02-07 Thread John Peterson
On Tue, Feb 7, 2012 at 3:23 PM, water force wrote: > 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] )

Re: [Libmesh-users] problem with EquationSystems in a loop

2012-02-07 Thread Roy Stogner
On Tue, 7 Feb 2012, water force wrote: > 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(s

[Libmesh-users] problem with EquationSystems in a loop

2012-02-07 Thread water force
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(sys_name); es.get_system(sys_name).add_va

[Libmesh-users] read_serialized_data and read_header

2012-02-07 Thread David Knezevic
In the reduced_basis code, we read in vectors from file using read_serialized_data, in RBEvaluation::read_in_basis_functions. To make this work, at the moment we call read_header in RBEvaluation::read_in_basis_functions, but the way this read_header call is made seems to be wrong, e.g. it break