On Sat, 22 Nov 2008, Yujie wrote:

> I don't sorry that I don't understand the second problem. To my knowledge,
> if I use add_variable() to add the variables, these variables will add dofs,
> right?

Right.

> If  I use add_vector() to add the vectors, I don't specify the
> purpose of the vectors and they don't add dofs, right?

Right; each new vector has a coefficient corresponding to each
existing dof.

> Now, I want to copy the solution (variables) to the vectors(added by
> add_vector()), why do I need to create the local vector?

You don't need to create anything to copy the solution to the new
vectors.

But if you want to copy the current_local_solution to the new vectors,
it won't work, because the new vectors only have storage for local
dof coefficients, not for ghost dof coefficients.
---
Roy

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to