Skip to content

Commit

Permalink
Merge pull request #68 from turquoisedragon2926/main
Browse files Browse the repository at this point in the history
Added `step_no` to `sum_co2_inventory`
  • Loading branch information
moyner authored Oct 9, 2024
2 parents 4b958d1 + fed72d8 commit 20a07c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ function co2_inventory_for_step(states, timesteps, injected, produced, step_no,
krg = relperm.krg
regions = relperm.regions

residual_trapped, mobile, dissolution_trapped, mass_inside = sum_co2_inventory(total_masses, krg, regions, X, Y, S, rho, cells, is_hyst, immiscible, liquid, vapor, co2_c_index)
residual_trapped, mobile, dissolution_trapped, mass_inside = sum_co2_inventory(total_masses, krg, regions, X, Y, S, rho, cells, is_hyst, immiscible, liquid, vapor, co2_c_index, step_no)

total_co2_mass = sum(view(total_masses, co2_c_index, :))
return Dict(
Expand All @@ -1948,7 +1948,7 @@ function co2_inventory_for_step(states, timesteps, injected, produced, step_no,
)
end

function sum_co2_inventory(total_masses, krg, regions, X, Y, S, rho, cells, is_hyst, immiscible, liquid, vapor, co2_c_index)
function sum_co2_inventory(total_masses, krg, regions, X, Y, S, rho, cells, is_hyst, immiscible, liquid, vapor, co2_c_index, step_no)
mass_inside = 0.0
mass_outside = 0.0
residual_trapped = 0.0
Expand Down

0 comments on commit 20a07c6

Please sign in to comment.