Skip to content

Commit

Permalink
Panzer MiniEM: Fix bug in debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Aug 17, 2023
1 parent 4b126e5 commit 844586d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/panzer/mini-em/src/solvers/MiniEM_Interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ Teko::LinearOp buildInterpolation(const Teuchos::RCP<const panzer::LinearObjFact
ep_rowmap = global_eloc->getMapForBlock(hoBlockIndex);
ep_colmap = ghosted_eloc->getMapForBlock(loBlockIndex);

{
// loop over element blocks
std::vector<std::string> elementBlockIds;
blockedDOFMngr->getElementBlockIds(elementBlockIds);
for(std::size_t blockIter = 0; blockIter < elementBlockIds.size(); ++blockIter) {

// loop over elements
std::vector<int> elementIds = ho_ugi->getElementBlock(elementBlockIds[blockIter]);
maxNumElementsPerBlock = std::max(maxNumElementsPerBlock, elementIds.size());
}
}

// TODO: Fix this.
size_t nnzPerRowEstimate = 25*loCardinality;

Expand Down

0 comments on commit 844586d

Please sign in to comment.