| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// NOX: An Object-Oriented Nonlinear Solver Package |
| 4 |
// |
| 5 |
// Copyright 2002 NTESS and the NOX contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
// ---------- Includes ---------- |
| 11 |
#include "Problem_Interface.H" |
| 12 |
#include "DennisSchnabel.H" |
| 13 |
|
| 14 |
//----------------------------------------------------------------------------- |
| 15 |
Problem_Interface::Problem_Interface(DennisSchnabel& Problem) : |
| 16 |
problem(Problem) |
| 17 |
{ } |
| 18 |
|
| 19 |
Problem_Interface::~Problem_Interface() |
| 20 |
{ } |
| 21 |
|
| 22 |
bool Problem_Interface::computeF(const Epetra_Vector& x, Epetra_Vector& FVec, |
| 23 |
NOX::Epetra::Interface::Required::FillType fillType) |
| 24 |
{ |
| 25 |
return problem.evaluate(fillType, &x, &FVec); |
| 26 |
} |
| 27 |
|
| 28 |
bool Problem_Interface::computeJacobian(const Epetra_Vector& x, |
| 29 |
Epetra_Operator& Jac) |
| 30 |
{ |
| 31 |
return problem.evaluate(NOX::Epetra::Interface::Required::Jac, &x, NULL); |
| 32 |
} |
| 33 |
|
| 34 |
//----------------------------------------------------------------------------- |
| 35 |
|