Thyra Package Browser (Single Doxygen Collection)
Version of the Day
|
Simple 2d simulation only ModelEvaluator for f(x) = 0 using Tpetra objects. More...
#include <Simple2DTpetraModelEvaluator_decl.hpp>
Inherits StateFuncModelEvaluatorBase< Scalar >.
Private Attributes | |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | x_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | f_space_ |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | nominalValues_ |
Scalar | d_ |
Teuchos::RCP< Tpetra::Vector < Scalar > > | x0_ |
Teuchos::Array< Scalar > | p_ |
Teuchos::RCP< Tpetra::CrsGraph<> > | W_op_graph_ |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | prototypeInArgs_ |
Thyra::ModelEvaluatorBase::OutArgs < Scalar > | prototypeOutArgs_ |
Related Functions | |
(Note that these are not member functions.) | |
template<class Scalar > | |
Teuchos::RCP < Simple2DTpetraModelEvaluator < Scalar > > | simple2DTpetraModelEvaluator () |
Non-member constructor. More... | |
Constructors/Initializers/Accessors | |
Simple2DTpetraModelEvaluator () | |
void | set_d (const Scalar &d) |
void | set_p (const Teuchos::ArrayView< const Scalar > &p) |
void | set_x0 (const Teuchos::ArrayView< const Scalar > &x0) |
Public functions overridden from ModelEvaulator. | |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_x_space () const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_f_space () const |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | getNominalValues () const |
Teuchos::RCP < Thyra::LinearOpBase< Scalar > > | create_W_op () const |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | createInArgs () const |
Private functions overridden from ModelEvaulatorDefaultBase. | |
Thyra::ModelEvaluatorBase::OutArgs < Scalar > | createOutArgsImpl () const |
void | evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const |
Simple 2d simulation only ModelEvaluator for f(x) = 0 using Tpetra objects.
The equations modeled are:
f[0] = x[0] + x[1]*x[1] - p[0]; f[1] = d * ( x[0]*x[0] - x[1] - p[1] );
The Matrix W_op = d(f)/d(x)
is implemented as a Thyra::TpetraLinearOp
object and all of the other objects are Thyra wrappers for Tpetra objects.
Definition at line 36 of file Simple2DTpetraModelEvaluator_decl.hpp.
Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator | ( | ) |
Definition at line 24 of file Simple2DTpetraModelEvaluator_def.hpp.
References Thyra::createVector(), Simple2DTpetraModelEvaluator< Scalar >::f_space_, Teuchos::DefaultComm< class >::getComm(), Simple2DTpetraModelEvaluator< Scalar >::nominalValues_, Simple2DTpetraModelEvaluator< Scalar >::p_, Simple2DTpetraModelEvaluator< Scalar >::prototypeInArgs_, Simple2DTpetraModelEvaluator< Scalar >::prototypeOutArgs_, Teuchos::rcp(), rcp(), Teuchos::Array< T >::resize(), Simple2DTpetraModelEvaluator< Scalar >::set_d(), Simple2DTpetraModelEvaluator< Scalar >::set_p(), Simple2DTpetraModelEvaluator< Scalar >::set_x0(), Simple2DTpetraModelEvaluator< Scalar >::W_op_graph_, Simple2DTpetraModelEvaluator< Scalar >::x0_, and Simple2DTpetraModelEvaluator< Scalar >::x_space_.
void Simple2DTpetraModelEvaluator< Scalar >::set_d | ( | const Scalar & | d | ) |
Definition at line 96 of file Simple2DTpetraModelEvaluator_def.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
void Simple2DTpetraModelEvaluator< Scalar >::set_p | ( | const Teuchos::ArrayView< const Scalar > & | p | ) |
Definition at line 103 of file Simple2DTpetraModelEvaluator_def.hpp.
References Teuchos::ArrayView< T >::size(), and TEUCHOS_ASSERT_EQUALITY.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
void Simple2DTpetraModelEvaluator< Scalar >::set_x0 | ( | const Teuchos::ArrayView< const Scalar > & | x0 | ) |
Definition at line 113 of file Simple2DTpetraModelEvaluator_def.hpp.
References Teuchos::ArrayView< T >::size(), and TEUCHOS_ASSERT_EQUALITY.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Simple2DTpetraModelEvaluator< Scalar >::get_x_space | ( | ) | const |
Definition at line 127 of file Simple2DTpetraModelEvaluator_def.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Simple2DTpetraModelEvaluator< Scalar >::get_f_space | ( | ) | const |
Definition at line 135 of file Simple2DTpetraModelEvaluator_def.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Simple2DTpetraModelEvaluator< Scalar >::getNominalValues | ( | ) | const |
Definition at line 143 of file Simple2DTpetraModelEvaluator_def.hpp.
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Simple2DTpetraModelEvaluator< Scalar >::create_W_op | ( | ) | const |
Definition at line 151 of file Simple2DTpetraModelEvaluator_def.hpp.
References Thyra::createLinearOp(), and Teuchos::rcp().
Thyra::ModelEvaluatorBase::InArgs< Scalar > Simple2DTpetraModelEvaluator< Scalar >::createInArgs | ( | ) | const |
Definition at line 163 of file Simple2DTpetraModelEvaluator_def.hpp.
|
private |
Definition at line 174 of file Simple2DTpetraModelEvaluator_def.hpp.
|
private |
Definition at line 181 of file Simple2DTpetraModelEvaluator_def.hpp.
|
related |
Non-member constructor.
Definition at line 110 of file Simple2DTpetraModelEvaluator_decl.hpp.
References Teuchos::rcp().
|
private |
Definition at line 91 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 92 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 93 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 94 of file Simple2DTpetraModelEvaluator_decl.hpp.
|
private |
Definition at line 95 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 96 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 97 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 98 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().
|
private |
Definition at line 99 of file Simple2DTpetraModelEvaluator_decl.hpp.
Referenced by Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator().