Skip to content

Commit

Permalink
Fixes Bears-R-Us#2648: Fix empty bounding box error (Bears-R-Us#3651)
Browse files Browse the repository at this point in the history
This PR (closes Bears-R-Us#2648) fixes empty bounding box error

Co-authored-by: Tess Hayes <stress-tess@users.noreply.github.com>
  • Loading branch information
stress-tess and stress-tess authored Aug 12, 2024
1 parent c9d5ee2 commit 704d0f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/SymArrayDmap.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ module SymArrayDmap {
return dom;
}
when Dmap.blockDist {
return blockDist.createDomain(dom);
if dom.size > 0 {
return blockDist.createDomain(dom);
}
// fix the annoyance about boundingBox being empty
else {
return dom dmapped new blockDist(boundingBox=dom.expand(1));
}
}
}
}
Expand Down

0 comments on commit 704d0f6

Please sign in to comment.