On Sep 1, 2010, at 11:58 AM, Roy Stogner wrote: > My single-bool suggestion isn't the best way to do things. Ideally > any time we're reinitializing an existing vector (lines 246, 262, 310) > we want to query it and reinitialize it with the same type it already > had. We could use a bool (or better, an enum ParallelType) to > determine how to initialize everything - perhaps a System member for > System::solution and as another optional argument to > System::add_vector() for others.
Essentially, you're suggesting a std::map between vector name and ParallelType? That way each vector can be reinitialized with different types? Then you can pass ParallelType into add_vector()? And like you mention you'll need member variables for the parallel type of "solution" and "rhs". Sounds reasonable to me. I'll get on it. > But you've been sounding like you're in a hurry; if you want to start > with the single-bool now and get things just right after whatever > deadline is past, that's fine too. Well... I'm always in a hurry! That's no excuse for hacking terrible code! ;-) Derek ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel