| 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 |
#ifndef NOX_EPETRA_SCHURINTERFACE_H |
| 11 |
#define NOX_EPETRA_SCHURINTERFACE_H |
| 12 |
|
| 13 |
#include "NOX_Epetra.H" |
| 14 |
|
| 15 |
//----------------------------------------------------------------------------- |
| 16 |
|
| 17 |
// This is a new class that may eventually get moved into NOX::Epetra. For now, |
| 18 |
// this is simply used as a testbed for driving new coupling algorithms - RWH 10/23/2006 |
| 19 |
|
| 20 |
namespace NOX { |
| 21 |
|
| 22 |
namespace Epetra { |
| 23 |
|
| 24 |
class SchurInterface |
| 25 |
{ |
| 26 |
public: |
| 27 |
|
| 28 |
SchurInterface() { }; |
| 29 |
|
| 30 |
virtual ~SchurInterface() { }; |
| 31 |
|
| 32 |
//! Apply the action of a matrix block on a vector |
| 33 |
virtual bool applyBlockAction( int rowBlock, int colBlock, const Epetra_Vector & x, Epetra_Vector & result ) = 0; |
| 34 |
|
| 35 |
//! Apply the action of a matrix block inverse on a vector |
| 36 |
virtual bool applyBlockInverseAction( int rowBlock, int colBlock, const Epetra_Vector & x, Epetra_Vector & result ) = 0; |
| 37 |
|
| 38 |
//! Get the communicator |
| 39 |
virtual const Epetra_Comm & getComm() = 0; |
| 40 |
|
| 41 |
//! Query availability of explicit operator |
| 42 |
virtual bool hasExplicitOperator( int rowBlock, int colBlock ) |
| 43 |
{ return false; } |
| 44 |
|
| 45 |
//! Access explicit operator |
| 46 |
virtual Teuchos::RCP<Epetra_Operator> getExplicitOperator( int rowBlock, int colBlock ) |
| 47 |
{ return Teuchos::null; } |
| 48 |
|
| 49 |
}; |
| 50 |
} // Epetra |
| 51 |
} // NOX |
| 52 |
|
| 53 |
#endif |