Hi,

I have encountered segfaults while using projection of exact solution
when using variables that are defined in specific subdomains. I traced
the problem to system_projection.C and found that the fix is to check
whether the variable is defined for the subdomain in question before
performing the projection. This would also provide a cost benefit by
not computing L2 projections when not needed.

I've attached a patch for the same. Its just couple of lines of code
but it solved the issues I was encountering with my code. It would be
very helpful for me if someone can check whether there are any
downsides to the patch and if it really is the fix needed here. Also,
if anyone else has a test case, then do check whether the patch fixes
the problem before committing it. I sent a code to Roy yesterday and
that can serve as a test code for this use case also.

Thanks,
vijay

Attachment: projection.patch
Description: Binary data

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to