Skip to content

Commit c627f65

Browse files
authored
Merge pull request #150 from nichollsh/hn/wconv
Bugfix in convection formulation
2 parents 5b0e818 + 41f4733 commit c627f65

9 files changed

Lines changed: 24 additions & 9 deletions

File tree

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"contributors": [
1111
],
1212
"title": "AGNI: An open-source model for extreme atmospheres on rocky exoplanets",
13-
"version": "1.7.11",
13+
"version": "1.7.12",
1414
"access_right": "open",
1515
"related_identifiers": [
1616
{

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: "AGNI: An open-source model for extreme atmospheres on rocky exoplanets"
1010
doi: 10.21105/joss.07726
1111
date-released: 2025-11-03
1212

13-
version: 1.7.11
13+
version: 1.7.12
1414
url: "https://github.com/nichollsh/AGNI"
1515
type: software
1616
license: "GPL-3.0"

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AGNI"
22
uuid = "ede838c1-9ec3-4ebe-8ae8-da4091b3f21c"
33
authors = ["Harrison Nicholls <harrison.nicholls@physics.ox.ac.uk>"]
4-
version = "1.7.11"
4+
version = "1.7.12"
55

66
[deps]
77
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"keywords": "physics, radiative transfer, exoplanets, astronomy, convection, radiation, planets, atmospheres",
2020
"license": "GPL v3.0",
2121
"title": "AGNI",
22-
"version": "1.7.11"
22+
"version": "1.7.12"
2323
}

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ makedocs(
2020
"examples/index.md",
2121
"troubleshooting.md",
2222
"Development" => "manual/index.md",
23-
"Related codes" => "ecosystem.md"
23+
"Related codes" => "ecosystem.md",
24+
"Contributors" => "contributors.md"
2425
]
2526
)
2627

docs/src/contributors.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Contributors
2+
3+
I would like to thank the following people for their assistance during the ongoing development of AGNI.
4+
5+
* [Tim Lichtenberg](https://www.formingworlds.space/team/tim-lichtenberg)
6+
* [Raymond Pierrehumbert](https://users.physics.ox.ac.uk/~pierrehumbert/)
7+
* [Namrah Habib](https://www.physics.ox.ac.uk/our-people/habibn)
8+
* [Arjun Savel](https://www.arjunsavel.com/) -- JOSS paper reviewer
9+
* [Ryan Macdonald](https://distantworlds.space/) -- JOSS paper reviewer
10+
* [Boding Ouyang](https://github.com/OYBDOOO)
11+
12+
Please contact [Harrison Nicholls](https://www.h-nicholls.space/) for any queries relating to AGNI.

src/atmosphere.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module atmosphere
3333
import ..spectrum
3434

3535
# Constants
36-
const AGNI_VERSION::String = "1.7.11" # current agni version
36+
const AGNI_VERSION::String = "1.7.12" # current agni version
3737
const HYDROGRAV_STEPS::Int64 = 40 # num of sub-layers in hydrostatic integration
3838
const SOCVER_minimum::Float64 = 2407.2 # minimum required socrates version
3939

src/energy.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ module energy
449449
fill!(atmos.w_conv, 0.0)
450450

451451
# Work variables
452-
Hp::Float64 = 0.0; λ::Float64 = 0.0; w::Float64 = 0.0
452+
Hp::Float64 = 0.0; hgt::Float64 = 0.0
453453
m1::Float64 = 0.0; m2::Float64 = 0.0; mt::Float64 = 0.0
454454
grav::Float64 = 0.0; mu::Float64 = 0.0; c_p::Float64 = 0.0; rho::Float64 = 0.0
455455
∇_ad::Float64 = 0.0; ∇_pr::Float64 = 0.0; ∇_μ::Float64 = 0.0; staby::Float64 = 0.0
456-
hgt::Float64 = 0.0
456+
457457

458458
# Loop from bottom upwards (over cell-edges)
459459
for i in range(start=atmos.nlev_l-1, step=-1, stop=2)
@@ -522,7 +522,7 @@ module energy
522522
atmos.w_conv[i] = atmos.λ_conv[i] * sqrt(grav/Hp * staby)
523523

524524
# Dry convective flux
525-
atmos.flux_cdry[i] = 0.5*rho*c_p*w * atmos.tmpl[i] * (atmos.λ_conv[i]/Hp) * staby
525+
atmos.flux_cdry[i] = 0.5*rho*c_p*atmos.w_conv[i] * atmos.tmpl[i] * (atmos.λ_conv[i]/Hp) * staby
526526

527527
# Convection eddy diffusion coefficient [m2 s-1]
528528
atmos.Kzz[i] = atmos.w_conv[i] * atmos.λ_conv[i]

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ if suite > 15
681681
@info " "
682682
@info "Testing model with energy-conserving TP solver"
683683
cfg = AGNI.open_config(joinpath(TEST_DIR, "test.toml"))
684+
685+
# check return code is fine
684686
succ = AGNI.run_from_config(cfg)
685687
if succ
686688
@info "Pass"

0 commit comments

Comments
 (0)