43 #ifndef __Panzer_STKConnManager_hpp__
44 #define __Panzer_STKConnManager_hpp__
52 #include "Kokkos_DynRankView.hpp"
60 namespace panzer_stk {
62 template <
typename GO>
128 {
return stkMeshDB_->getElementBlockNames(elementBlockIds); }
132 std::vector<std::string> elementBlockIds;
134 elementBlockTopologies.reserve(elementBlockIds.size());
135 for (
unsigned i=0; i<elementBlockIds.size(); ++i) {
136 elementBlockTopologies.push_back(*(
stkMeshDB_->getCellTopology(elementBlockIds[i])));
146 virtual const std::vector<LocalOrdinal> &
getElementBlock(
const std::string & blockId)
const
170 std::vector<std::size_t> & localCellIds,
171 Kokkos::DynRankView<double,PHX::Device> & points)
const;
std::vector< bool > sidesetYieldedAssociations_
panzer::ConnManager< int, GO >::GlobalOrdinal GlobalOrdinal
void associateElementsInSideset(const std::string sideset_id)
virtual Teuchos::RCP< panzer::ConnManagerBase< int > > noConnectivityClone() const
GlobalOrdinalT GlobalOrdinal
std::vector< GlobalOrdinal > connectivity_
std::vector< std::vector< LocalOrdinal > > elmtToAssociatedElmts_
virtual void buildConnectivity(const panzer::FieldPattern &fp)
void buildLocalElementMapping()
std::map< std::string, GlobalOrdinal > blockIdToIndex_
virtual const std::vector< LocalOrdinal > & getElementBlock(const std::string &blockId) const
STKConnManager(const Teuchos::RCP< const STK_Interface > &stkMeshDB)
virtual bool hasAssociatedNeighbors() const
virtual const std::vector< LocalOrdinal > & getNeighborElementBlock(const std::string &blockId) const
virtual std::size_t numElementBlocks() const
virtual const std::vector< LocalOrdinal > & getAssociatedNeighbors(const LocalOrdinal &el) const
std::size_t getOwnedElementCount() const
void applyInterfaceConditions()
virtual void getDofCoords(const std::string &blockId, const panzer::Intrepid2FieldPattern &coordProvider, std::vector< std::size_t > &localCellIds, Kokkos::DynRankView< double, PHX::Device > &points) const
LocalOrdinalT LocalOrdinal
virtual ~STKConnManager()
std::map< std::string, Teuchos::RCP< std::vector< LocalOrdinal > > > neighborElementBlocks_
panzer::ConnManager< int, GO >::LocalOrdinal LocalOrdinal
LocalOrdinal addSubcellConnectivities(stk::mesh::Entity element, unsigned subcellRank, LocalOrdinal idCnt, GlobalOrdinal offset)
std::vector< LocalOrdinal > connSize_
void modifySubcellConnectivities(const panzer::FieldPattern &fp, stk::mesh::Entity element, unsigned subcellRank, unsigned subcellId, GlobalOrdinal newId, GlobalOrdinal offset)
virtual void getElementBlockTopologies(std::vector< shards::CellTopology > &elementBlockTopologies) const
virtual LocalOrdinal getConnectivitySize(LocalOrdinal localElmtId) const
std::vector< std::string > checkAssociateElementsInSidesets(const Teuchos::Comm< int > &comm) const
virtual void getElementBlockIds(std::vector< std::string > &elementBlockIds) const
virtual GlobalOrdinal * getConnectivity(LocalOrdinal localElmtId)
Teuchos::RCP< std::vector< stk::mesh::Entity > > elements_
std::vector< std::string > sidesetsToAssociate_
void applyPeriodicBCs(const panzer::FieldPattern &fp, GlobalOrdinal nodeOffset, GlobalOrdinal edgeOffset, GlobalOrdinal faceOffset, GlobalOrdinal cellOffset)
virtual std::string getBlockId(LocalOrdinal localElmtId) const
std::vector< LocalOrdinal > elmtLidToConn_
void buildOffsetsAndIdCounts(const panzer::FieldPattern &fp, LocalOrdinal &nodeIdCnt, LocalOrdinal &edgeIdCnt, LocalOrdinal &faceIdCnt, LocalOrdinal &cellIdCnt, GlobalOrdinal &nodeOffset, GlobalOrdinal &edgeOffset, GlobalOrdinal &faceOffset, GlobalOrdinal &cellOffset) const
void clearLocalElementMapping()
Teuchos::RCP< const STK_Interface > getSTKInterface() const
virtual const GlobalOrdinal * getConnectivity(LocalOrdinal localElmtId) const
std::map< std::string, Teuchos::RCP< std::vector< LocalOrdinal > > > elementBlocks_
std::size_t ownedElementCount_
Teuchos::RCP< const STK_Interface > stkMeshDB_