Skip to content

Commit

Permalink
Add throws to new makeDistArray compat function (#2765)
Browse files Browse the repository at this point in the history
The 1.32 makeDistArray functions need to be throwing functions,
so that we can catch out of memory errors if running out of memory
when creating an arrayy.

Co-authored-by: pierce <[email protected]>
  • Loading branch information
bmcdonald3 and stress-tess authored Sep 13, 2023
1 parent 5fa1e52 commit 834a218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compat/gt-131/SymArrayDmapCompat.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module SymArrayDmapCompat
return dom.tryCreateArray(etype);
}

proc makeDistArray(in a: [?D] ?etype)
proc makeDistArray(in a: [?D] ?etype) throws
where MyDmap != Dmap.defaultRectangular && a.isDefaultRectangular() {
var res = makeDistArray(D.size, etype);
res = a;
Expand Down

0 comments on commit 834a218

Please sign in to comment.