Skip to content

Commit

Permalink
Update well mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Dec 3, 2024
1 parent c84368f commit 3e3a7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gradients/objectives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function well_mismatch(qoi, wells, model_f, states_f, model_c, state_c, dt, step
continue
end
end
qoi_f = compute_well_qoi(well_f, state_f, well, pos, rhoS, ctrl)
qoi_c = compute_well_qoi(well_c, state_c, well, pos, rhoS, ctrl)
qoi_f = compute_well_qoi(well_f, state_f[well], state_f[:Facility], well, pos, rhoS, ctrl)
qoi_c = compute_well_qoi(well_c, state_c[well], state_c[:Facility], well, pos, rhoS, ctrl)

Δ = qoi_f - qoi_c
obj += (weights[i]*Δ)^2
Expand Down

0 comments on commit 3e3a7e0

Please sign in to comment.