Hi,

I use "DifferentiableSystem" class together with "EulerSolver" class and
at some moment I want to access old nonlinear solution through

                 time_solver->old_nonlinear_solution(index)

Now,   "time_solver" is an AutoPtr< TimeSolver > in  
"DifferentiableSystem"  and
function "old_nonlinear_solution" is not virtual in abstract class 
"TimeSolver".
So I get a compilation error
(" undefined reference to `TimeSolver::old_nonlinear_solution(unsigned 
int) const' ").

My question is should "old_nonlinear_solution" be virtual in  "TimeSolver"?
Or I have to access "old_nonlinear_solution" in a different way.

For now I  get raw pointer form "time_solver" and do dynamic cast to
"EulerSolver" pointer.

Thanks,
Mladen


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to