"Martin Sandve Alnæs" <[EMAIL PROTECTED]> writes: > 2008/11/2 Joachim B Haga <[EMAIL PROTECTED]>: >>>> On Saturday 01 November 2008 17:10:09 Martin Sandve Alnæs wrote: >>>> > 2008/11/1 Garth N. Wells <[EMAIL PROTECTED]>: >>>> > > So if we remove >>>> > > >>>> > > mutable Cell* _cell >>>> > > mutable int _facet >>>> > > >>>> > > from the private member data of Function, does this resolve the >>>> > > biggest design issue for running multi-threaded? >>>> > >>>> > Yes. Otherwise the threads will overwrite each others current cell all >>>> > the time. >> >> If you can get away with making these variables static, thread-local >> variables (storage class __thread) is simpler. > > > But static... That sounds very limiting.
Perhaps. In that case, I'd suggest just letting each thread have its own instance of any mutable classes, if that's possible. -j. _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
