Skip to content

Commit 4381b7a

Browse files
committed
fix default temperature gradient
1 parent 973362e commit 4381b7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlanktonIndividuals"
22
uuid = "dfeb4ede-c75e-11e9-050d-41ab7a730e9e"
33
authors = ["zhenwu0728 <zhenwu@mit.edu>", "gaelforget <gforget@mit.edu>"]
4-
version = "0.6.4"
4+
version = "0.6.5"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/Parameters/param_default.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function default_temperature(grid, ΔT, iterations)
3131
end
3232
# vertical temperature gradient
3333
for j in grid.Nz-1:-1:1
34-
CUDA.@allowscalar temp_day[:,:,j,:] .= temp_day[:,:,j+1,:] .+ 0.04 * grid.zC[j]
34+
CUDA.@allowscalar temp_day[:,:,j,:] .= temp_day[:,:,j+1,:] .+ 4.0e-4 * grid.zC[j]
3535
end
3636
temp_domain = repeat(temp_day, outer = (1,1,1,total_days))
3737
return temp_domain

0 commit comments

Comments
 (0)