Skip to content

Commit

Permalink
Merge pull request #334 from FormingWorlds/hn/dev
Browse files Browse the repository at this point in the history
AGNI no-solve configuration and minor changes
  • Loading branch information
nichollsh authored Feb 11, 2025
2 parents d2ade18 + 24315ff commit ed649c4
Show file tree
Hide file tree
Showing 32 changed files with 660 additions and 789 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"python.analysis.exclude": [
"**/__pycache__", "petsc", ".git", "SPIDER", "output"
],
"python.analysis.diagnosticMode": "openFilesOnly",
"julia.environmentPath": "${workspaceFolder}/AGNI",
"fortran.fortls.disabled": true
}
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ conda activate proteus
pip install -e .[develop]
```

### Code style

Variables should be written in lowercase with underscores: `example_variable`.
Functions should be written in lowercase with underscores: `example_function()`.
Constants should be written in block capitals: `CONSTANT_VALUE`.
Lines of code should avoid being longer than 92 characters.
Functions should include a docstring where possible, describing their purpose and params.
Indentation deeper than 3 levels should be avoided.

### Linting

Linting is a term for static code analysis to flag programming errors,
Expand Down
4 changes: 4 additions & 0 deletions input/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ author = "Harrison Nicholls, Tim Lichtenberg"
# Set enabled=true/false in each section to enable/disable that termination criterion
[params.stop]

# Require criteria to be satisfied twice before model will exit?
strict = false

# required number of iterations
[params.stop.iters]
enabled = true
Expand Down Expand Up @@ -146,6 +149,7 @@ author = "Harrison Nicholls, Tim Lichtenberg"
num_levels = 250 # Number of atmospheric grid levels
chemistry = "none" # "none" | "eq"
surf_material = "greybody" # surface material file for scattering
solve_energy = true # solve for energy-conserving atmosphere profile
solution_atol = 1e-3 # solver absolute tolerance
solution_rtol = 2e-2 # solver relative tolerance
overlap_method = "ee" # gas overlap method
Expand Down
6 changes: 5 additions & 1 deletion input/demos/aragog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ author = "Harrison Nicholls, Tim Lichtenberg"
# Set enabled=true/false in each section to enable/disable that termination criterion
[params.stop]

# Require criteria to be satisfied twice before model will exit?
strict = false

# required number of iterations
[params.stop.iters]
enabled = true
Expand Down Expand Up @@ -146,6 +149,7 @@ author = "Harrison Nicholls, Tim Lichtenberg"
num_levels = 40 # Number of atmospheric grid levels
chemistry = "none" # "none" | "eq"
surf_material = "greybody" # surface material file for scattering
solve_energy = false # solve for energy-conserving atmosphere profile
solution_atol = 1e-3 # solver absolute tolerance
solution_rtol = 2e-2 # solver relative tolerance
overlap_method = "ee" # gas overlap method
Expand Down Expand Up @@ -182,7 +186,7 @@ author = "Harrison Nicholls, Tim Lichtenberg"
grain_size = 0.1 # crystal settling grain size [m]
F_initial = 1e6 # Initial heat flux guess [W m-2]
radiogenic_heat = false # enable radiogenic heat production
tidal_heat = true # enable tidal heat production
tidal_heat = false # enable tidal heat production
rheo_phi_loc = 0.4 # Centre of rheological transition
rheo_phi_wid = 0.15 # Width of rheological transition
bulk_modulus = 260e9 # Bulk modulus [Pa]
Expand Down
4 changes: 4 additions & 0 deletions input/demos/dummy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ author = "Harrison Nicholls, Tim Lichtenberg"
# Set enabled=true/false in each section to enable/disable that termination criterion
[params.stop]

# Require criteria to be satisfied twice before model will exit?
strict = false

# required number of iterations
[params.stop.iters]
enabled = true
Expand Down Expand Up @@ -146,6 +149,7 @@ author = "Harrison Nicholls, Tim Lichtenberg"
num_levels = 40 # Number of atmospheric grid levels
chemistry = "none" # "none" | "eq"
surf_material = "greybody" # surface material file for scattering
solve_energy = false # solve for energy-conserving atmosphere profile
solution_atol = 1e-3 # solver absolute tolerance
solution_rtol = 2e-2 # solver relative tolerance
overlap_method = "ee" # gas overlap method
Expand Down
4 changes: 4 additions & 0 deletions input/demos/escape.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ author = "Harrison Nicholls, Tim Lichtenberg"
# Set enabled=true/false in each section to enable/disable that termination criterion
[params.stop]

# Require criteria to be satisfied twice before model will exit?
strict = false

# required number of iterations
[params.stop.iters]
enabled = true
Expand Down Expand Up @@ -146,6 +149,7 @@ author = "Harrison Nicholls, Tim Lichtenberg"
num_levels = 250 # Number of atmospheric grid levels
chemistry = "none" # "none" | "eq"
surf_material = "greybody" # surface material file for scattering
solve_energy = false # solve for energy-conserving atmosphere profile
solution_atol = 1e-3 # solver absolute tolerance
solution_rtol = 2e-2 # solver relative tolerance
overlap_method = "ee" # gas overlap method
Expand Down
268 changes: 0 additions & 268 deletions input/demos/spider.toml

This file was deleted.

4 changes: 4 additions & 0 deletions input/planets/hd63433d.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ author = "Harrison Nicholls, Tim Lichtenberg"
# Set enabled=true/false in each section to enable/disable that termination criterion
[params.stop]

# Require criteria to be satisfied twice before model will exit?
strict = false

# required number of iterations
[params.stop.iters]
enabled = true
Expand Down Expand Up @@ -146,6 +149,7 @@ author = "Harrison Nicholls, Tim Lichtenberg"
num_levels = 60 # Number of atmospheric grid levels
chemistry = "none" # "none" | "eq"
surf_material = "greybody" # surface material file for scattering
solve_energy = true # solve for energy-conserving atmosphere profile
solution_atol = 1e-2 # solver absolute tolerance
solution_rtol = 5e-2 # solver relative tolerance
overlap_method = "ee" # gas overlap method
Expand Down
Loading

0 comments on commit ed649c4

Please sign in to comment.