Skip to content

Commit da5cdb6

Browse files
authored
Merge pull request #4076 from CliMA/jefftyoder-docs-terminology
Update installation instructions with terminology section
2 parents a1ff510 + 8adde4b commit da5cdb6

File tree

3 files changed

+56
-32
lines changed

3 files changed

+56
-32
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ makedocs(;
2424
),
2525
pages = [
2626
"Home" => "index.md",
27-
"Installation instructions" => "installation_instructions.md",
27+
"Getting Started" => "getting_started.md",
2828
"Contributor Guide" => "contributor_guide.md",
2929
"Equations" => "equations.md",
3030
"Microphysics" => "microphysics.md",

docs/src/getting_started.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## Installing Julia
2+
3+
ClimaAtmos is provided as a Julia package, so it requires having Julia installed. Information about Julia packages is available on the [Julia website](https://julialang.org).
4+
5+
First, download and install Julia by following the instructions at [https://julialang.org/downloads/](https://julialang.org/downloads/). Then, you can launch a Julia REPL by running `$ julia --project`
6+
7+
## Installing ClimaAtmos.jl
8+
9+
ClimaAtmos.jl is a [registered Julia package](https://julialang.org/packages/). To install
10+
11+
```julia
12+
julia> using Pkg
13+
14+
julia> Pkg.add("ClimaAtmos")
15+
```
16+
17+
Alternatively, you can clone the `ClimaAtmos`
18+
[repository](https://github.com/CliMA/ClimaAtmos.jl) with:
19+
20+
```
21+
$ git clone https://github.com/CliMA/ClimaAtmos.jl.git
22+
```
23+
This is useful if you want to keep up with bleeding-edge changes between major releases.
24+
25+
Now change into the `ClimaAtmos.jl` directory with
26+
27+
```
28+
$ cd ClimaAtmos.jl
29+
```
30+
31+
To use ClimaAtmos, you need to instantiate all dependencies with:
32+
33+
```
34+
$ julia --project
35+
julia> ]
36+
(ClimaAtmos) pkg> instantiate
37+
```
38+
39+
## Some common terminology in ClimaAtmos
40+
The following terms are frequently used within the source code and between collaborators. Feel free to open a GitHub issue if you come across any other key terms that we've missed here.
41+
- `Yₜ`: The tendency state vector, where `Yₜ.sfc` components are modified.
42+
- `Y`: The current state vector.
43+
- `p`: Cache containing parameters, precomputed fields (radiation fluxes, surface
44+
conditions, precipitation fluxes), atmospheric model configurations, and
45+
slab model properties.
46+
- `t`: Current simulation time.
47+
48+
The state `Y` is not assigned by default. If you want to explore the state variable, you can follow the steps below. Note that all but the last step below are executed by the [driver](https://github.com/CliMA/ClimaAtmos.jl/blob/main/.buildkite/ci_driver.jl).
49+
50+
```Julia
51+
import ClimaAtmos as CA
52+
config = CA.AtmosConfig([your_path_to_config_file])
53+
simulation = CA.get_simulation(config)
54+
Y = simulation.integrator.u
55+
```

docs/src/installation_instructions.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)