58 const Teuchos::RCP<const panzer::GlobalIndexer> & indexer,
59 const Teuchos::ParameterList& p)
63 const std::vector<std::string>& names =
64 *(p.get< Teuchos::RCP< std::vector<std::string> > >(
"DOF Names"));
66 indexerNames_ = p.get< Teuchos::RCP< std::vector<std::string> > >(
"Indexer Names");
69 Teuchos::RCP<const panzer::PureBasis> basis;
70 if(p.isType< Teuchos::RCP<panzer::PureBasis> >(
"Basis"))
71 basis = p.get< Teuchos::RCP<panzer::PureBasis> >(
"Basis");
73 basis = p.get< Teuchos::RCP<const panzer::PureBasis> >(
"Basis");
76 for (std::size_t fd = 0; fd < names.size(); ++fd) {
79 PHX::MDField<ScalarT,Cell,NODE>(basis->name()+
" Orientation",basis->functional);
83 this->setName(
"Gather Orientation");
88GatherOrientation(
const std::vector<Teuchos::RCP<const GlobalIndexer> > & indexers,
89 const Teuchos::ParameterList& p)
92 const std::vector<std::string>& names =
93 *(p.get< Teuchos::RCP< std::vector<std::string> > >(
"DOF Names"));
95 indexerNames_ = p.get< Teuchos::RCP< std::vector<std::string> > >(
"Indexer Names");
98 Teuchos::RCP<const panzer::PureBasis> basis;
99 if(p.isType< Teuchos::RCP<panzer::PureBasis> >(
"Basis"))
100 basis = p.get< Teuchos::RCP<panzer::PureBasis> >(
"Basis");
102 basis = p.get< Teuchos::RCP<const panzer::PureBasis> >(
"Basis");
105 for (std::size_t fd = 0; fd < names.size(); ++fd) {
107 PHX::MDField<ScalarT,Cell,NODE>(basis->name()+
" Orientation",basis->functional);
111 this->setName(
"Gather Orientation");
141 std::vector<double> orientation;
144 std::string blockId = this->
wda(workset).block_id;
145 const std::vector<std::size_t> & localCellIds = this->
wda(workset).cell_local_ids;
153 auto subRowIndexer =
indexers_[indexerId];
154 const std::vector<int> & elmtOffset = subRowIndexer->getGIDFieldOffsets(blockId,subFieldNum);
157 for(std::size_t worksetCellIndex=0;worksetCellIndex<localCellIds.size();++worksetCellIndex) {
158 std::size_t cellLocalId = localCellIds[worksetCellIndex];
160 subRowIndexer->getElementOrientation(cellLocalId,orientation);
163 for(std::size_t basis=0;basis<elmtOffset.size();basis++) {
164 int offset = elmtOffset[basis];