Skip to content

Commit

Permalink
keep column bottom values pinned at basalwater compositions
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamedwards committed Mar 1, 2024
1 parent 36521c4 commit 9300abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/diffuse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ function diffuseadvectcolumn!(sc::SedimentColumn, k::Constants)
end

# set bottom values to penultimate values
sc.O.p[k.nz] = sc.O.p[k.penultimate_node]
sc.Cl.p[k.nz] = sc.Cl.p[k.penultimate_node]
sc.rho.p[k.nz] = sc.rho.p[k.penultimate_node]
#sc.O.p[k.nz] = sc.O.p[k.penultimate_node]
#sc.Cl.p[k.nz] = sc.Cl.p[k.penultimate_node]
#sc.rho.p[k.nz] = sc.rho.p[k.penultimate_node]

# And time steps forward, replacing o with p.
sc.O.o .= sc.O.p
Expand Down

0 comments on commit 9300abf

Please sign in to comment.