11 #ifndef PANZER_BCSTRATEGY_DIRCHLET_UTILITIES_HPP
12 #define PANZER_BCSTRATEGY_DIRCHLET_UTILITIES_HPP
14 #include "Phalanx_FieldManager.hpp"
45 template<
typename EvalT>
50 const std::string comma_sep_closure_model_list,
55 std::vector<std::string> closure_model_vector;
59 std::list<std::string> closure_model_list;
60 for (std::vector<std::string>::iterator i=closure_model_vector.begin(); i != closure_model_vector.end(); ++i)
61 closure_model_list.push_back(*i);
67 std::list<std::string>::iterator search =
68 std::find(closure_model_list.begin(), closure_model_list.end(), model->first);
70 if (search != closure_model_list.end()) {
71 closure_model_list.erase(search);
72 models_to_build.
sublist(model->first) = models.
sublist(model->first);
75 models_to_build.
sublist(model->first);
79 "Error - the list of closure models \"" << comma_sep_closure_model_list <<
"\" contains an invalid model.");
ConstIterator end() const
Object that contains information on the physics and discretization of a block of elements with the SA...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void buildAndRegisterClosureModelEvaluatorsForType(PHX::FieldManager< panzer::Traits > &fm, const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > &factory, const Teuchos::ParameterList &models, const Teuchos::ParameterList &user_data) const
params_t::ConstIterator ConstIterator
ConstIterator begin() const
ParameterList & sublist(const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
void StringTokenizer(std::vector< std::string > &tokens, const std::string &str, const std::string delimiters, bool trim)
Tokenize a string, put tokens in a vector.
void buildAndRegisterSubsetOfClosureModelEvaluatorsForType(PHX::FieldManager< panzer::Traits > &fm, const panzer::PhysicsBlock &pb, const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > &factory, const std::string comma_sep_closure_model_list, const Teuchos::ParameterList &models, const Teuchos::ParameterList &user_data)
Builds the closure models for a particular physics block for a dirichlet bc.