Skip to content

Commit

Permalink
Update varswitch.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Feb 21, 2023
1 parent 92983d8 commit 7d57793
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/blackoil/variables/varswitch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ end
phases = X.phases_present
if phases == MostlyWater
sg = X.val
s[2, i] = sg
s[3, i] = 1 - sw - sg
s[2, i] = 1 - sw - sg
s[3, i] = sg
else
if phases == OilOnly
sg = zero(T)
Expand All @@ -261,7 +261,7 @@ end
phases = X.phases_present
if phases == OilOnly
r = X.val
elseif phases == GasOnly || phases == MostlyWater
elseif phases == GasOnly
r = zero(T)
else
p = @inbounds Pressure[i]
Expand All @@ -278,7 +278,7 @@ end
phases = X.phases_present
if X.phases_present == GasOnly
r = X.val
elseif phases == OilOnly || phases == MostlyWater
elseif phases == OilOnly
r = zero(T)
else
p = @inbounds Pressure[i]
Expand Down

0 comments on commit 7d57793

Please sign in to comment.