On Fri, 17 Dec 2010, robert wrote:
> When totally remeshing my domain use a new mesh and EquationSystems
> object. If I do this in a loop I would like to copy my EquationSystems
> object.
> I think about something like:
>
> time loop{
>
> Mesh new_mesh (2);
> ...//build some mesh
>
> EquationSystems new_equation_systems (new_mesh);
> ...
> ...
> old_equation_systems = new_equation_systems;
>
>
> }
>
> Well, I know that it doesn't work in this way. Is there a
> copy-constructor for EquationSystems (I couldn't find it but maybe i
> didn't look carefully enough).
There isn't - it's such a heavyweight object that we wouldn't want to
encourage people to deep-copy it willy-nilly.
> If not, how would you do it?
In your case it might be appropriate - if you wanted to write a deep
copy constructor (or assignment operator) I'd be happy to look over
the patch.
> I thought I could write it to a file and read it afterwards again, but
> this might not be very efficient.
Depending on the I/O type you used, how frequently you remesh, and
how expensive your solves in between are, this would either be
inefficient or disasterously inefficient.
---
Roy
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users