42 #ifndef THYRA_RESPONSE_ONLY_MODEL_EVALUATOR_BASE_HPP
43 #define THYRA_RESPONSE_ONLY_MODEL_EVALUATOR_BASE_HPP
46 #include "Thyra_ModelEvaluatorDefaultBase.hpp"
47 #include "Teuchos_Assert.hpp"
63 template<
class Scalar>
110 template<
class Scalar>
114 return Teuchos::null;
118 template<
class Scalar>
125 return Teuchos::null;
129 template<
class Scalar>
139 template<
class Scalar>
143 return Teuchos::null;
147 template<
class Scalar>
150 {
return this->createInArgs(); }
153 template<
class Scalar>
156 {
return this->createInArgs(); }
159 template<
class Scalar>
162 {
return this->createInArgs(); }
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() may be overridden by the subclass to return"
173 " 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 create_W_op() may be overridden by the subclass "
187 <<this->description()<<
" to return a non-null object!"
193 template<
class Scalar>
198 true, std::logic_error,
199 "Error, if \'W\' is supported by the ModelEvaluator subclass then"
200 " this function create_W_prec() may be overridden by the subclass "
201 <<this->description()<<
" to return a non-null object!"
207 template<
class Scalar>
212 true, std::logic_error
213 ,
"Error, if \'W\' is supported by the ModelEvaluator subclass then"
214 " this function get_W_factory() may be overridden by the subclass "
215 <<this->description()<<
" to return a non-null object!"
221 template<
class Scalar>
234 #endif // THYRA_RESPONSE_ONLY_MODEL_EVALUATOR_BASE_HPP
RCP< LinearOpWithSolveBase< Scalar > > create_W() const
Thorws exception.
RCP< const VectorSpaceBase< Scalar > > get_x_space() const
Throws exception.
ModelEvaluatorBase::InArgs< Scalar > getLowerBounds() const
Returns this->createInArgs().
ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Returns this->createInArgs().
RCP< PreconditionerBase< Scalar > > create_W_prec() const
Thorws exception.
This base class defines default function implementations appropritate for a response-only model evalu...
ModelEvaluatorBase::InArgs< Scalar > getUpperBounds() const
Returns this->createInArgs().
RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Returns null.
#define TEUCHOS_ASSERT_IN_RANGE_UPPER_EXCLUSIVE(index, lower_inclusive, upper_exclusive)
Concrete aggregate class for all input arguments computable by a ModelEvaluator subclass object.
RCP< LinearOpBase< Scalar > > create_W_op() const
Thorws exception.
RCP< const LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Thorws exception.
RCP< const VectorSpaceBase< Scalar > > get_f_space() const
Throws exception.
void reportFinalPoint(const ModelEvaluatorBase::InArgs< Scalar > &finalPoint, const bool wasSolved)
Does nothing and ignores input.
Default base class for concrete model evaluators.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Teuchos::ArrayView< const std::string > get_g_names(int j) const
Returns null.
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)