On Thu, 9 Sep 2010, David Knezevic wrote:

> On 09/09/2010 10:06 AM, Tim Kroeger wrote:
>>
>> 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.

Thank you again.  Even if this works, I think that Jed's solution is 
better suited in my situation, in particular because I want to keep 
the values of the variable outside X2.

Best Regards,

Tim

-- 
Dr. Tim Kroeger
CeVis -- Center of Complex Systems and Visualization
University of Bremen              [email protected]
Universitaetsallee 29             [email protected]
D-28359 Bremen                             Phone +49-421-218-7710
Germany                                    Fax   +49-421-218-4236

------------------------------------------------------------------------------
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