panzer connectivity questions for multi blocks.
Created by: bathmatt
@rppawlo @eric-c-cyr I've been looking through the ConnManager and take the function
virtual const GlobalOrdinal * getConnectivity(LocalOrdinal localElmtId) const = 0;
This doesn't take a local element id, It takes an index into which local element id.
This code fails if you have multiple blocks because localIDs[id] is not consecutive.
const std::vector &localIDs = conn_->getElementBlock(block_ids[which_blk]);
for (unsigned id=0;id<localIDs.size(); ++id) {
int n_conn = conn_->getConnectivitySize(localIDs[id]);
const GlobalOrdinal * connectivity = conn_->getConnectivity(localIDs[id]);
}
I assume this is the intended use?
So, the documentation should be made cleaner?