Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdaines committed Jun 20, 2024
1 parent d0b91bd commit 9981df3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/ExampleCOPSEreloaded.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ See [Lenton2018](@cite) Fig. 11

Modify parameters and rerun model:
```julia
default_3C_output = run.output # keep default 3C output
PB.setvalue!(PB.get_reaction(run.model, "global", "temp_global").pars.k_c, 8.656) # change climate sensitivity
run.output = PALEOmodel.OutputWriters.OutputMemory() # new empty output so we don't overwrite earlier ouput
PALEOmodel.ODE.integrate(run, initial_state, modeldata, (-1000e6, 0), solvekwargs=(reltol=1e-4,)); # rerun
default_3C_output = paleorun.output # keep default 3C output
PB.setvalue!(PB.get_reaction(model, "global", "temp_global").pars.k_c, 8.656) # change climate sensitivity
paleorun = PALEOmodel.Run(model=model, output = PALEOmodel.OutputWriters.OutputMemory())
PALEOmodel.ODE.integrate(paleorun, initial_state, modeldata, (-1000e6, 0), solvekwargs=(reltol=1e-4,)); # rerun
```

Compare pCO2:
```julia
using Plots; plotlyjs(size=(750, 500)) # load Julia Plots.jl and choose PlotlyJS backend
pCO2atm_3C = PALEOmodel.get_array(default_3C_output, "atm.pCO2atm") # get FieldArray for plotting
plot(1e6*pCO2atm_3C, label="3C default", ylabel="pCO2 (1e-6 atm)") # plot x1e6
pCO2atm_6C = PALEOmodel.get_array(run.output, "atm.pCO2atm") # get FieldArray
pCO2atm_6C = PALEOmodel.get_array(paleorun.output, "atm.pCO2atm") # get FieldArray
plot!(1e6*pCO2atm_6C, label="6C", ylabel="pCO2 (1e-6 atm)") # plot x1e6
plot!(xlim=(-600e6, 0), ylim=(0, 4000)) # rescale axes
```
Expand Down

2 comments on commit 9981df3

@sjdaines
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/109458

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.10 -m "<description of version>" 9981df37bf10bbc310bcce8d46e72744e9e524f7
git push origin v0.4.10

Please sign in to comment.