On Thu, 6 Dec 2012, John Peterson wrote: >> It's a bug we should probably be trying to detect and assert against >> in library code, though... I'm not sure how to do easily without also >> accidentally asserting against valid usage patterns, though. > > And how would you do it in a complicated way?
MeshBase has a "is_in_use" flag initialized to false; EquationSystems' constructor asserts that it's false, sets it true. EquationSystems' destructor sets it false. All wrapped in #ifndef NDEBUG directives. Huh; that's actually not quite as complicated as I suggested. I don't have time to do it myself right now, but I might try it out in a few weeks if nobody beats me to it. --- Roy ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
