On Sun, 3 Jan 2010, Andrea Hawkins wrote:

> In writing my own Line Search routine, I seem to have somehow cleared the
> solution vector in my NonlinearImplicitSystem.... (i.e. the pointer is
> empty) Is there a sneaky way to do that which I could have done by
> accident?!

Calling release() or reset() when you meant to call get()?

But the easiest way to accidentally set an auto_ptr target to NULL is
via its operator=.

// This resets system.solution to NULL, and deletes the solution
// vector when not_a_copy goes out of scope!
AutoPtr<NumericVector> not_a_copy = system.solution;

If you're not doing one of those things, you may be stuck stepping
through in the debugger.  Let us know if there's a mistake in library
code!
---
Roy

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to