On 09/09/2010 10:06 AM, Tim Kroeger wrote:
> Dear David,
>
> On Thu, 9 Sep 2010, David Knezevic wrote:
>
>> You can specify variables that are defined only on X2 by specifying the
>> appropriate subdomain id(s) when you add the variable to the system. See
>> add_variable in system.h
>
> Thank you for your reply.  How does this solution behave if the
> subdomain_id values change during runtime?  I guess, it won't behave
> that way I need it to do.  That is, the set X2 (in my notation) may
> change within the application quite frequently, so that (if my
> assumtion is correct) I can't use your solution.


I haven't tried subdomain-only variables with changing subdomains, but 
it seems possible that equations_systems.reinit(); might do the 
appropriate re-sizing and re-indexing for you (or could be modified to 
do so)... I don't know though.

David

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to