43 #ifndef PANZER_MODEL_EVALUATOR_FACTORY_IMPL_HPP
44 #define PANZER_MODEL_EVALUATOR_FACTORY_IMPL_HPP
46 #include "Thyra_ModelEvaluator.hpp"
47 #include "Thyra_EpetraModelEvaluator.hpp"
48 #include "Teuchos_StandardParameterEntryValidators.hpp"
53 template <
typename ScalarT,
typename LO,
typename GO>
59 std::string type = getMyParamList.
get<std::string>(
"Model Evaluator Type");
61 if (type ==
"Epetra") {
67 epetraThyraModel =
rcp(new ::Thyra::EpetraModelEvaluator());
68 epetraThyraModel->initialize(epetraModel,lowsFactory);
73 else if (type ==
"Tpetra") {
75 "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)