10 #ifndef THYRA_RESPONSE_ONLY_MODEL_EVALUATOR_BASE_HPP
11 #define THYRA_RESPONSE_ONLY_MODEL_EVALUATOR_BASE_HPP
14 #include "Thyra_ModelEvaluatorDefaultBase.hpp"
15 #include "Teuchos_Assert.hpp"
31 template<
class Scalar>
78 template<
class Scalar>
86 template<
class Scalar>
99 template<
class Scalar>
111 template<
class Scalar>
115 return Teuchos::null;
119 template<
class Scalar>
122 {
return this->createInArgs(); }
125 template<
class Scalar>
128 {
return this->createInArgs(); }
131 template<
class Scalar>
134 {
return this->createInArgs(); }
137 template<
class Scalar>
142 true, std::logic_error
143 ,
"Error, if \'W\' is supported by the ModelEvaluator subclass then"
144 " this function create_W() may be overridden by the subclass to return"
145 " a non-null object!"
151 template<
class Scalar>
156 true, std::logic_error,
157 "Error, if \'W\' is supported by the ModelEvaluator subclass then"
158 " this function create_W_op() may be overridden by the subclass "
159 <<this->description()<<
" to return a non-null object!"
165 template<
class Scalar>
170 true, std::logic_error,
171 "Error, if \'W\' is supported by the ModelEvaluator subclass then"
172 " this function create_W_prec() may be overridden by the subclass "
173 <<this->description()<<
" to return a non-null object!"
179 template<
class Scalar>
184 true, std::logic_error
185 ,
"Error, if \'W\' is supported by the ModelEvaluator subclass then"
186 " this function get_W_factory() may be overridden by the subclass "
187 <<this->description()<<
" to return a non-null object!"
193 template<
class Scalar>
206 #endif // THYRA_RESPONSE_ONLY_MODEL_EVALUATOR_BASE_HPP
ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Returns this->createInArgs().
Default base class for concrete model evaluators.
ModelEvaluatorBase::InArgs< Scalar > getUpperBounds() const
Returns this->createInArgs().
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
RCP< LinearOpBase< Scalar > > create_W_op() const
Thorws exception.
void reportFinalPoint(const ModelEvaluatorBase::InArgs< Scalar > &finalPoint, const bool wasSolved)
Does nothing and ignores input.
RCP< const VectorSpaceBase< Scalar > > get_x_space() const
Throws exception.
#define TEUCHOS_ASSERT_IN_RANGE_UPPER_EXCLUSIVE(index, lower_inclusive, upper_exclusive)
Teuchos::ArrayView< const std::string > get_g_names(int j) const
Returns null.
This base class defines default function implementations appropritate for a response-only model evalu...
RCP< LinearOpWithSolveBase< Scalar > > create_W() const
Thorws exception.
RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Returns null.
RCP< const VectorSpaceBase< Scalar > > get_f_space() const
Throws exception.
RCP< PreconditionerBase< Scalar > > create_W_prec() const
Thorws exception.
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)
ModelEvaluatorBase::InArgs< Scalar > getLowerBounds() const
Returns this->createInArgs().
RCP< const LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Thorws exception.
Concrete aggregate class for all input arguments computable by a ModelEvaluator subclass object...