11 #ifndef PANZER_MODEL_EVALUATOR_FACTORY_IMPL_HPP
12 #define PANZER_MODEL_EVALUATOR_FACTORY_IMPL_HPP
14 #include "Thyra_ModelEvaluator.hpp"
15 #include "Thyra_EpetraModelEvaluator.hpp"
16 #include "Teuchos_StandardParameterEntryValidators.hpp"
21 template <
typename ScalarT,
typename LO,
typename GO>
27 std::string type = getMyParamList.
get<std::string>(
"Model Evaluator Type");
29 if (type ==
"Epetra") {
35 epetraThyraModel =
rcp(new ::Thyra::EpetraModelEvaluator());
36 epetraThyraModel->initialize(epetraModel,lowsFactory);
41 else if (type ==
"Tpetra") {
43 "Tpetra version not supported yet, use Epetra!");
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > buildModelEvaluator(const RCP< panzer::FieldManagerBuilder &fmb, const RCP< panzer::BlockedEpetraLinearObjFactory< panzer::Traits, int > > &lof)