This must be a syntax error that I'm not seeing, but when I try the command
EquationSystems& es = system.get_equation_systems(); in the jacobian function, I get the error error: request for member get_equation_systems in system, which is of non-class type. Thanks, Andrea _ It seems like this function might not have access to it in this manner, since only the function pointer is in the class nonlinear_solver and not the function itself. On Tue, Jul 22, 2008 at 7:32 PM, John Peterson <[EMAIL PROTECTED]> wrote: > Hi, > > On Tue, Jul 22, 2008 at 6:30 PM, Andrea Hawkins <[EMAIL PROTECTED]> wrote: >> Hi- >> >> I am trying to solve a nonlinear system using as my system class >> TransientNonlinearImplicitSystem with the PetscNonlinearSolver. I >> realize the PetscNonlinearSolver class has a function pointer for >> jacobian, but I am wondering how when the function jacobian is >> actually defined to interface with the >> TransientNonlinearImplicitSystem. i.e. how do I access the equation >> system. > > > A System can return a reference to the EquationSystem of which it is a part. > > system.get_equation_systems(); > > should do it (see include/solvers/system.h). Does that answer your question? > > >> Do you have a simple example of something similar being done I could look at? > > I believe Derek's writing nonlinear solvers right now, so he will > probably have more to say shortly... > > -- > John > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
