On Tue, 12 Mar 2013, Manav Bhatia wrote:

> Using a functor was my original intent, but then realizing that the
> calculated values at a point (for the post-processed variables)
> would depend on the solution from another system (the original
> conservative variables), I was not sure of how to pass the latter to
> the functor.
>
> So, I wrote a small function to directly work with the nodal dofs.

That'll work fine as long as you stick to Lagrange elements.

> Should I be looking at deriving form the functor class such that it
> has a reference to the system whose solution it might be using?

Precisely.  The only downside to that approach is that it requires
typing up a lot of fluff, but that's C++03's fault more than ours.

I wonder if there's a terser way to do this using C++11 lambda
functions?  That would work for your problem in particular, but in
general it might be hard to make thread-safe unless there's some way
I'm ignorant of to mimic our clone() design on a lambda function with
captured variables.
---
Roy

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to