Skip to content

Commit

Permalink
fix: 🩹 strata_trapper: initialize output arrays with NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaxus committed Aug 9, 2024
1 parent c6dc14c commit 0f13d2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions strata_trapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

saturations = linspace(params.sw_resid,1,options.sat_num_points);

cap_pres_upscaled = zeros(grid.cells.num,length(saturations));
krw = zeros(grid.cells.num,3,length(saturations));
krg = zeros(grid.cells.num,3,length(saturations));
cap_pres_upscaled = nan(grid.cells.num,length(saturations));
krw = nan(grid.cells.num,3,length(saturations));
krg = nan(grid.cells.num,3,length(saturations));

cells_num = min(length(mask),grid.cells.num);
mask = mask(1:cells_num);
Expand Down

0 comments on commit 0f13d2c

Please sign in to comment.