43 #ifndef PANZER_BCSTRATEGY_DIRCHLET_UTILITIES_HPP 44 #define PANZER_BCSTRATEGY_DIRCHLET_UTILITIES_HPP 46 #include "Phalanx_FieldManager.hpp" 49 #include "Teuchos_ParameterList.hpp" 77 template<
typename EvalT>
82 const std::string comma_sep_closure_model_list,
83 const Teuchos::ParameterList& models,
84 const Teuchos::ParameterList& user_data)
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);
95 Teuchos::ParameterList models_to_build;
97 for (Teuchos::ParameterList::ConstIterator model = models.begin(); model != models.end(); ++model) {
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);
110 TEUCHOS_TEST_FOR_EXCEPTION(closure_model_list.size() != 0, std::logic_error,
111 "Error - the list of closure models \"" << comma_sep_closure_model_list <<
"\" contains an invalid model.");
Object that contains information on the physics and discretization of a block of elements with the SA...
void buildAndRegisterClosureModelEvaluatorsForType(PHX::FieldManager< panzer::Traits > &fm, const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > &factory, const Teuchos::ParameterList &models, const Teuchos::ParameterList &user_data) const
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.