On Tue, Sep 15, 2009 at 1:53 PM, Derek Gaston <[email protected]> wrote:
> On Sep 15, 2009, at 12:45 PM, John Peterson wrote:
>
>> MeshRefinement::refine_and_coarsen_elements() and friends return a
>> boolean which is true if the Mesh changed.  Is that of any use to you?
>
> Not really... it's not trivial to pass around a bool to every piece that
> does caching to tell it to invalidate it's cache and recache.  It would be
> better if each place that did that could just do a test to see if it's cache
> should be invalidated.  But the bool from refine_and_coarsen _will_ help
> with  the use-case I specified where we need to know to start a new Exodus
> file... so thanks (to you and Ben) for the tip!

I see.  What if MeshRefinement stored the result of its most recent
refine/coarsen_elements call?

If not in MeshRefinement, then anywhere all these different pieces
have access to should be sufficient... maybe even a global variable ;)

-- 
John

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to