Skip to content

Commit

Permalink
add step_no to sum_co2_inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
turquoisedragon2926 committed Oct 8, 2024
1 parent 4b958d1 commit fed72d8
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 fed72d8

Please sign in to comment.