On Tue, 17 Nov 2009, Tim Kroeger wrote: > On Tue, 17 Nov 2009, Boyce Griffith wrote: > >>>> Can't you just call clear() in ~MyPreconditioner()? >>> >>> Sure, I can. Actually, that's what I'm doing now. But for that, still the >>> method Preconditioner::clear() does not have to exist, does it? >> >> I haven't used the Preconditioner class in libMesh, but this kind of >> init()/clear() functionality is useful for time-dependent problems in which >> you need to re-initialize the solver/preconditioner repeatedly. It is >> similarly useful for adaptive discretizations. > > Well, that might be right in a way. However, at least, I would vote > for removing the call to clear() inside the destructor of the > Preconditioner class, since this is definitely not doing anything, but > it might make users believe it would call overloaded clear() methods.
I agree, but let's wait on Derek's input. --- Roy ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
