On May 31, 2012, at 11:18 AM, <[email protected]> <[email protected]> wrote:
> To make your example work, I had to add these 2 lines in the time loop: > > >>> for var in y: > var.stale = 1 > > other wise it looks like CellVariables do not know they've got some new > values. Oops! Good point! > Am I doing someting wrong by using the stale attribute of CellVariables? You should use var._markStale(), so that any Variables that depend on var get notified, but otherwise, yes you're doing the right thing. _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
