25 const std::vector<Teuchos::RCP<panzer::PhysicsBlock> > & physicsBlocks,
26 const Teuchos::RCP<ConnManager> & connMngr,
27 const std::string & fieldOrder)
const
29 PANZER_FUNC_TIME_MONITOR_DIFF(
"panzer::DOFManagerFactory::buildUnqueGlobalIndexer",BUGI);
31 Teuchos::RCP<Teuchos::FancyOStream> pout = Teuchos::getFancyOStream(Teuchos::rcpFromRef(std::cout));
32 pout->setShowProcRank(
true);
33 pout->setOutputToRootOnly(0);
36 Teuchos::RCP<panzer::DOFManager> dofManager
43 bool orientationsRequired =
false;
45 std::vector<Teuchos::RCP<panzer::PhysicsBlock> >::const_iterator physIter;
46 for(physIter=physicsBlocks.begin();physIter!=physicsBlocks.end();++physIter) {
47 Teuchos::RCP<const panzer::PhysicsBlock> pb = *physIter;
49 const std::vector<StrPureBasisPair> & blockFields = pb->getProvidedDOFs();
52 std::set<StrPureBasisPair,StrPureBasisComp> fieldNames;
53 fieldNames.insert(blockFields.begin(),blockFields.end());
56 std::set<StrPureBasisPair,StrPureBasisComp>::const_iterator fieldItr;
57 for (fieldItr=fieldNames.begin();fieldItr!=fieldNames.end();++fieldItr) {
61 orientationsRequired |= fieldItr->second->requiresOrientations();
63 Teuchos::RCP< Intrepid2::Basis<PHX::Device::execution_space,double,double> > intrepidBasis
64 = fieldItr->second->getIntrepid2Basis();
66 dofManager->addField(pb->elementBlockID(),fieldItr->first,fp);
74 dofManager->setOrientationsRequired(orientationsRequired);
77 std::vector<std::string> fieldOrderV;
79 dofManager->setFieldOrder(fieldOrderV);
83 PANZER_FUNC_TIME_MONITOR_DIFF(
"panzer::DOFManagerFactory::buildUnqueGlobalIndexer:buildGlobalUnknowns",BGU);
84 dofManager->buildGlobalUnknowns();
virtual Teuchos::RCP< panzer::GlobalIndexer > buildGlobalIndexer(const Teuchos::RCP< const Teuchos::OpaqueWrapper< MPI_Comm > > &mpiComm, const std::vector< Teuchos::RCP< panzer::PhysicsBlock > > &physicsBlocks, const Teuchos::RCP< ConnManager > &connMngr, const std::string &fieldOrder="") const