Skip to content

Commit

Permalink
fix: 🩹 truncate computation mask
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaxus committed Jul 17, 2024
1 parent a89d21b commit 7acc040
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions strata_trapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
krg = zeros(G.cells.num,3,length(saturations));

cells_num = min(length(mask),G.cells.num);
mask = mask(1:cells_num);

if enable_waitbar
wb_queue = parallel.pool.DataQueue;
Expand Down

0 comments on commit 7acc040

Please sign in to comment.