| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// LOCA: Library of Continuation Algorithms Package |
| 4 |
// |
| 5 |
// Copyright 2001-2005 NTESS and the LOCA contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef PROBLEM_NOX_PROTOTYPE_H |
| 11 |
#define PROBLEM_NOX_PROTOTYPE_H |
| 12 |
|
| 13 |
#include <Epetra_CrsMatrix.h> |
| 14 |
#include <Epetra_Vector.h> |
| 15 |
#include <Teuchos_RCP.hpp> |
| 16 |
|
| 17 |
class ProblemNOXPrototype { |
| 18 |
|
| 19 |
public: |
| 20 |
|
| 21 |
// Constructor |
| 22 |
ProblemNOXPrototype(); |
| 23 |
|
| 24 |
// Destructor |
| 25 |
virtual ~ProblemNOXPrototype(); |
| 26 |
|
| 27 |
// Compute F |
| 28 |
virtual bool ComputeF(const Epetra_Vector & x, |
| 29 |
Epetra_Vector & f)=0; |
| 30 |
|
| 31 |
// Compute the Jacobian of F |
| 32 |
virtual bool ComputeJacF(const Epetra_Vector & x)=0; |
| 33 |
|
| 34 |
// Returns a pointer to the Jacobian of F |
| 35 |
virtual Teuchos::RCP <Epetra_CrsMatrix> GetJacF() const =0; |
| 36 |
|
| 37 |
// Returns a pointer to the initial guess |
| 38 |
virtual Teuchos::RCP <Epetra_Vector> GetInitialGuess() const =0; |
| 39 |
|
| 40 |
}; |
| 41 |
#endif |