43 #ifndef PANZER_STK_IOCLOSURE_MODEL_FACTORY_IMPL_HPP
44 #define PANZER_STK_IOCLOSURE_MODEL_FACTORY_IMPL_HPP
48 #include "Panzer_STK_ScatterCellAvgQuantity.hpp"
49 #include "Panzer_STK_ScatterCellQuantity.hpp"
53 template<
typename EvalT>
58 : mesh_(mesh), userCMF_(userCMF)
68 template<
typename EvalT>
72 const std::map<std::string,std::vector<std::string> > & nodalFields,
73 const std::map<std::string,std::vector<std::string> > & cellFields)
74 : mesh_(mesh), userCMF_(userCMF)
79 typedef std::map<std::string,std::vector<std::string> >::const_iterator const_iterator;
81 for(const_iterator itr=nodalFields.begin();itr!=nodalFields.end();++itr)
83 for(const_iterator itr=cellFields.begin();itr!=cellFields.end();++itr)
89 template<
typename EvalT>
92 std::map<std::string,std::vector<std::string> > & blockIdToFields)
const
95 itr!=pl.
end();++itr) {
96 const std::string & blockId = itr->first;
97 const std::string & fields = Teuchos::any_cast<std::string>(itr->second.getAny());
98 std::vector<std::string> & tokens = blockIdToFields[blockId];
103 blockIdEvaluated_[blockId] =
false;
109 template<
typename EvalT>
123 return userCMF_->buildClosureModels(model_id,models,fl,ir,default_params,user_data,global_data,fm);
std::map< std::string, std::vector< std::string > > blockIdToCellAvgVectors_
Map showing which cell averaged vector fields need to be written out for each element block...
ConstIterator end() const
std::map< std::string, bool > blockIdEvaluated_
std::map< std::string, std::vector< std::string > > blockIdToCellFields_
Map showing which cell fields need to be written out for each element block.
std::map< std::string, std::vector< std::string > > blockIdToNodalFields_
Map showing which nodal fields need to be written out for each element block.
params_t::ConstIterator ConstIterator
ConstIterator begin() const
std::map< std::string, std::vector< std::string > > blockIdToCellAvgFields_
Map showing which cell averaged fields need to be written out for each element block.
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.
Teuchos::RCP< std::vector< Teuchos::RCP< PHX::Evaluator< panzer::Traits > > > > buildClosureModels(const std::string &model_id, const Teuchos::ParameterList &models, const panzer::FieldLayoutLibrary &fl, const Teuchos::RCP< panzer::IntegrationRule > &ir, const Teuchos::ParameterList &default_params, const Teuchos::ParameterList &user_data, const Teuchos::RCP< panzer::GlobalData > &global_data, PHX::FieldManager< panzer::Traits > &fm) const
IOClosureModelFactory(const Teuchos::RCP< const panzer::ClosureModelFactory< EvalT > > userCMF_, const Teuchos::RCP< STK_Interface > &mesh, const Teuchos::ParameterList &outputList)
void parseOutputList(const Teuchos::ParameterList &pl, std::map< std::string, std::vector< std::string > > &blockIdToFields) const