Skip to content

Commit 1fd5795

Browse files
committed
Fix transportoperator docstring
1 parent 6526eab commit 1fd5795

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AIBECS"
22
uuid = "ace601d6-714c-11e9-04e5-89b7fad23838"
33
authors = ["Benoit Pasquier <[email protected]>"]
4-
version = "0.10.10"
4+
version = "0.10.11"
55

66
[deps]
77
Bijectors = "76274a88-744f-5084-9051-94815aaf08c4"

src/SinkingParticles.jl

+17-5
Original file line numberDiff line numberDiff line change
@@ -155,27 +155,39 @@ export DIVO, PFDO, FATO
155155
#end # module
156156

157157
"""
158-
transportoperator(grd; kwargs)
158+
transportoperator(grd, w)
159159
160-
Returns the transportoperator corresponding to the arguments.
160+
Returns the transportoperator for the given settling velocity `w`.
161+
162+
The settling velocity can be provided as either a scalar
163+
(e.g., `w = 100.0` in units of meters per second)
164+
or as a function of depth
165+
(e.g., `w(z) = 2z + 1`).
161166
162167
# Examples
163168
164169
Create the particle flux divergence with settling velocity of 100m/s
165170
166171
```julia-repl
167-
julia> T = transportoperator(grd; w = 100.0)
172+
julia> T = transportoperator(grd, 100.0)
168173
```
169174
170175
Or with settling velocity function w(z) = 2z + 1
171176
172177
```julia-repl
173-
julia> T = transportoperator(grd; w = z -> 2z + 1)
178+
julia> T = transportoperator(grd, z -> 2z + 1)
174179
```
175180
176181
By default, the seafloor flux is set to zero, so that all the particles
177182
that reach it are remineralized there. You can let particles go through
178-
by setting `fsedremin=0.0`.
183+
by setting `fsedremin=0.0`, via, e.g.,
184+
185+
```julia-repl
186+
julia> T = transportoperator(grd, z -> 2z + 1; fsedremin=0.0)
187+
```
188+
189+
For finer control and advanced use, see the particle-flux divergence
190+
operator function, `PFDO`.
179191
"""
180192
transportoperator(grd, w_top; DIVop=DIVO(grd), Iabove=buildIabove(grd)) = PFDO(w_top, DIVop, Iabove)
181193
function transportoperator(grd, w::Function;

0 commit comments

Comments
 (0)