Skip to content

Commit 7456c47

Browse files
Merge pull request #2518 from SciML/initialize_docs
Add a tutorial for initialization handling
2 parents 9232c1a + 754b5e8 commit 7456c47

File tree

5 files changed

+382
-2
lines changed

5 files changed

+382
-2
lines changed

.github/workflows/Documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
3030
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
31+
JULIA_DEBUG: "Documenter"
3132
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl
3233
- uses: julia-actions/julia-processcoverage@v1
3334
- uses: codecov/codecov-action@v4

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
the `parameter_dependencies` keyword argument of `ODESystem`, `SDESystem` and `JumpSystem`. The dependent
5151
parameters are updated whenever other parameters are modified, e.g. in callbacks.
5252
- Support for `IfElse.jl` has been dropped. `Base.ifelse` can be used instead.
53-
- DAE initailization and the solving for consistent initial conditions has been changed to use a customized
53+
- DAE initialization and the solving for consistent initial conditions has been changed to use a customized
5454
initialization solve. This change adds `guess` semantics which are clearly delinated from the behavior of
5555
the defaults, where `default` (and `u0`) is designed to be always satisfied and error if unsatisfiable,
5656
while `guess` is an initial guess to the initializer. In previous iterations, initialization with the

docs/pages.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pages = [
33
"tutorials/ode_modeling.md",
44
"Tutorials" => Any["tutorials/acausal_components.md",
55
"tutorials/nonlinear.md",
6+
"tutorials/initialization.md",
67
"tutorials/optimization.md",
78
"tutorials/modelingtoolkitize.md",
89
"tutorials/programmatically_generating.md",

docs/src/basics/MTKModel_Connector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ julia> @mtkbuild model_c2 = ModelC(; p1 = 2.0)
140140
- Whenever components are created with `@named` macro, these can be accessed with `.` operator as `subcomponent_name.argname`
141141
- In the above example, as `k` of `model_a` isn't listed while defining the sub-component in `ModelC`, its default value can't be modified by users. While `k_array` can be set as:
142142

143-
```@example mtkmodel-example
143+
```julia
144144
using ModelingToolkit: getdefault
145145

146146
@mtkbuild model_c3 = ModelC(; model_a.k_array = [1.0, 2.0])

0 commit comments

Comments
 (0)