I usually overload my own NonlinearProblem for this purpose, it makes it much easier to switch out different types of newton solvers as well. Even the demos go back and forth on how to define a non-linear solver some using Variational Problem others building their own. It would be nice to have a way to just give a VariationalProblem a newton solver.
+1 for adding getters and setters here. -- Andy On Mon, Apr 6, 2009 at 11:44 AM, Mehdi Nikbakht <[email protected]> wrote: > Hello, > > How can I set the parameters of NewtonSolver object while using > VariationalProblem class to solve a nonlinear problem? > > Note that We only have a pointer to NewtonSolver object as a private member of > this class. > > Mehdi > > _______________________________________________ > DOLFIN-dev mailing list > [email protected] > http://www.fenics.org/mailman/listinfo/dolfin-dev > _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
