Skip to content

Commit

Permalink
fix equilibrate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamedwards committed Mar 12, 2024
1 parent 0b7a0ce commit be5db08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/diffuse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function boundaryconditions(Cl::Float64, d18O::Float64, x, sea2freeze, freeze2me
if x < sea2freeze # low δ18O -> warm -> seawater
Cl, d18O = Clsw, d18Osw

elseif x >= freeze2melt # high δ18O -> cold -> warm-based
elseif x > freeze2melt # high δ18O -> cold -> warm-based
ϕdz = 0.4dz
melt = meltrate * dt

Cl *= ϕdz / (ϕdz + melt)
d18O = (d18O * ϕdz - 40 * melt) / (ϕdz+melt)
d18O = (d18O * ϕdz - 40melt) / (ϕdz+melt)

else # mid δ18O -> mid temps -> cold-based
ϕdz = 0.4dz # scaled for porosity
Expand Down Expand Up @@ -146,7 +146,6 @@ equilibratecolumn!(sc, seawater, basalwater, z, flr)
Calculate an equilibrium linear profile for all SedimentColumn vectors in `sc` between a seafloor `seawater` and `basalwater` composition, given node depths `z` and diffusion-dominated column depth `flr`.
"""

function equilibratecolumn!(sc::SedimentColumn, seawater::Water,basalwater::Water, z::StepRangeLen, flr::Float64)

mO = (basalwater.O - seawater.O) / flr
Expand Down

0 comments on commit be5db08

Please sign in to comment.