Dear all, I'm trying to change the preconditioner and solver types of linear_solver that exists in a LinearImplicitSystem object, and I'm having some trouble with getting access to linear_solver of the LinearSolver within a LinearImplicitSystem object.
1) I have no problem getting fe pointed to by an AutoPtr. Even this declaration is giving me problems: AutoPtr <LinearSolver<Real>> test_aptr; Error as follows (the above is in line 167, and I did not get the other 3 warnings if I take the above line out. line 196 has nothing to do with LinearSolver): /Users/karenlee/Documents/Code/libmesh-0.6.4/libmesh/include/base/auto_ptr.h:196: warning: possible problem detected in invocation of delete operator: /Users/karenlee/Documents/Code/libmesh-0.6.4/libmesh/include/base/auto_ptr.h:196: warning: invalid use of undefined type ‘struct LinearSolver<Number>’ /Users/karenlee/Documents/Code/libmesh-0.6.4/libmesh/include/solvers/linear_implicit_system.h:32: warning: declaration of ‘struct LinearSolver<Number>’ /Users/karenlee/Documents/Code/libmesh-0.6.4/libmesh/include/base/auto_ptr.h:196: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. 2) I looked at linear_implicit_system.h, but did not find get_linear_solver () there (or in linear_implicit_system.C). According to the class docs online, it should be there... How do I access the object with the right type so that I can call set_preconditioner_type (PRECOND_type) and set_solver_type (SOLVER_type) properly? Thanks, Karen ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
