43 #ifndef PANZER_BCSTRATEGY_DIRCHLET_UTILITIES_HPP
44 #define PANZER_BCSTRATEGY_DIRCHLET_UTILITIES_HPP
46 #include "Phalanx_FieldManager.hpp"
77 template<
typename EvalT>
82 const std::string comma_sep_closure_model_list,
87 std::vector<std::string> closure_model_vector;
91 std::list<std::string> closure_model_list;
92 for (std::vector<std::string>::iterator i=closure_model_vector.begin(); i != closure_model_vector.end(); ++i)
93 closure_model_list.push_back(*i);
99 std::list<std::string>::iterator search =
100 std::find(closure_model_list.begin(), closure_model_list.end(), model->first);
102 if (search != closure_model_list.end()) {
103 closure_model_list.erase(search);
104 models_to_build.
sublist(model->first) = models.
sublist(model->first);
107 models_to_build.
sublist(model->first);
111 "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.