← Back to team overview

yade-dev team mailing list archive

Re: Energy tracing vs. multithread?

 

> No, I don't think so. I know implicit conversion is the way to get the 
> sum of threads, but the problem is there is nowhere to type such 
> "bar=foo". It can't be done in functor::go or functor::ctor, obviously. 
> It should be somewhere inside the "save" process, or in a "sync" 
> function called from outside the functor (once per step for instance).
OK, I get it. If you use IntrCallback, you could override the stepInit
function.

You can also define functor member function which will get the value on
request. (wrap it in python if you need)

HTH, Vaclav






Follow ups

References