11 #ifndef PANZER_STK_IOCLOSURE_MODEL_FACTORY_IMPL_HPP
12 #define PANZER_STK_IOCLOSURE_MODEL_FACTORY_IMPL_HPP
16 #include "Panzer_STK_ScatterCellAvgQuantity.hpp"
17 #include "Panzer_STK_ScatterCellQuantity.hpp"
21 template<
typename EvalT>
26 : mesh_(mesh), userCMF_(userCMF)
36 template<
typename EvalT>
40 const std::map<std::string,std::vector<std::string> > & nodalFields,
41 const std::map<std::string,std::vector<std::string> > & cellFields)
42 : mesh_(mesh), userCMF_(userCMF)
47 typedef std::map<std::string,std::vector<std::string> >::const_iterator const_iterator;
49 for(const_iterator itr=nodalFields.begin();itr!=nodalFields.end();++itr)
51 for(const_iterator itr=cellFields.begin();itr!=cellFields.end();++itr)
57 template<
typename EvalT>
60 std::map<std::string,std::vector<std::string> > & blockIdToFields)
const
63 itr!=pl.
end();++itr) {
64 const std::string & blockId = itr->first;
65 const std::string & fields = Teuchos::any_cast<std::string>(itr->second.getAny());
66 std::vector<std::string> & tokens = blockIdToFields[blockId];
71 blockIdEvaluated_[blockId] =
false;
77 template<
typename EvalT>
91 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