[Trilinos-Users] [EXTERNAL] Setting NOX parameters when using Rythmos
Mike Sussman
sussmanm at math.pitt.edu
Thu Dec 1 15:09:00 MST 2011
Thanks, Roger, I needed that! And thanks for the quick response, too.
On Thu, 2011-12-01 at 16:31 -0500, Roger Pawlowski wrote:
> Hi Mike,
>
> It turns out that our doxygen generator was missing this file so that is
> why it is not in the documentation. I have updated the file to
> correctly catch this and it should start showing up tomorrow in the
> development version of the web pages.
>
> The class is defined in the file:
>
> Trilinos/packages/nox/src-thyra/Thyra_NonlinearSolver_NOX.hpp
>
> It derives from a Teuchos ParameterListAcceptor class. So you can set
> all the nox parameters by just setting a parameter list on the solver
> object directly.
>
> A simple example of this would be:
>
> Teuchos::RCP<Thyra::NOXNonlinearSolver> nox_solver =
> Teuchos::rcp(new Thyra::NOXNonlinearSolver);
> Teuchos::RCP<Teuchos::ParameterList> nox_params = Teuchos::rcp(new
> Teuchos::ParameterList);
>
> << set nox params here>>
>
> nox_solver->setParameterList(nox_params);
>
> Roger
>
>
> On 12/01/2011 04:09 PM, Mike Sussman wrote:
> > Folks,
> >
> > I am trying to learn to use Rythmos by studying the "1DFEM" example in
> > the examples subdirectory of package Rythmos. I have a quick question:
> >
> > I can see how to change parameters for the linear solver and the Rythmos
> > nonlinear solver, but not for NOX. Here, the nonlinear solver is set up
> > by Thyra::NOXNonlinearSolver, but I cannot find the documentation for
> > that class and I have not successfully guessed how to give it a
> > parameter list for NOX.
> >
> > Thanks in advance.
>
>
--
Mike Sussman
sussmanm at math.pitt.edu
More information about the Trilinos-Users
mailing list