Skip to content

Commit 6bb0b2e

Browse files
committed
Merge branch 'master' into bgc/split_params_bug
2 parents 119cb27 + 8886a91 commit 6bb0b2e

File tree

11 files changed

+42
-15
lines changed

11 files changed

+42
-15
lines changed

.github/workflows/Documentation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
tags: '*'
88
pull_request:
99

10+
concurrency:
11+
# Skip intermediate builds: always, but for the master branch.
12+
# Cancel intermediate builds: always, but for the master branch.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}
15+
1016
jobs:
1117
build:
1218
runs-on: ubuntu-latest

.github/workflows/Downstream.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ on:
44
branches: [master]
55
tags: [v*]
66
pull_request:
7+
paths-ignore:
8+
- 'docs/**'
9+
10+
concurrency:
11+
# Skip intermediate builds: always, but for the master branch and tags.
12+
# Cancel intermediate builds: always, but for the master branch and tags.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*' }}
715

816
jobs:
917
test:

.github/workflows/FormatCheck.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
tags: '*'
99
pull_request:
1010

11+
concurrency:
12+
# Skip intermediate builds: always, but for the master branch and tags.
13+
# Cancel intermediate builds: always, but for the master branch and tags.
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}
16+
1117
jobs:
1218
build:
1319
runs-on: ${{ matrix.os }}

.github/workflows/Invalidations.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Invalidations
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- 'docs/**'
57

68
concurrency:
79
# Skip intermediate builds: always.
@@ -30,7 +32,7 @@ jobs:
3032
- uses: julia-actions/julia-buildpkg@v1
3133
- uses: julia-actions/julia-invalidations@v1
3234
id: invs_default
33-
35+
3436
- name: Report invalidation counts
3537
run: |
3638
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
- master
1111
paths-ignore:
1212
- 'docs/**'
13+
14+
concurrency:
15+
# Skip intermediate builds: always, but for the master branch.
16+
# Cancel intermediate builds: always, but for the master branch.
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
19+
1320
jobs:
1421
test:
1522
runs-on: ubuntu-latest

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Yingbo Ma <[email protected]>", "Chris Rackauckas <[email protected]> and contributors"]
4-
version = "8.71.0"
4+
version = "8.71.1"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Distributions = "0.25"
2525
Documenter = "1"
2626
ModelingToolkit = "8.33"
2727
ModelingToolkitDesigner = "1"
28-
NonlinearSolve = "0.3, 1"
28+
NonlinearSolve = "0.3, 1, 2"
2929
Optim = "1.7"
3030
Optimization = "3.9"
3131
OptimizationOptimJL = "0.1"

docs/pages.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pages = [
2121
"basics/Composition.md",
2222
"basics/Events.md",
2323
"basics/Linearization.md",
24+
"basics/MTKModel_Connector.md",
2425
"basics/Validation.md",
2526
"basics/DependencyGraphs.md",
2627
"basics/FAQ.md"],

docs/src/basics/MTKModel_Connector.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Defining components with `@mtkmodel`
1+
# Defining components with `@mtkmodel`
22

33
`@mtkmodel` is a convenience macro to define ModelingToolkit components. It returns `ModelingToolkit.Model`, which includes a constructor that returns an ODESystem, a `structure` dictionary with metadata and flag `isconnector` which is set to `false`.
44

5-
### What can an MTK-Model definition have?
5+
## What can an MTK-Model definition have?
66

77
`@mtkmodel` definition contains begin blocks of
88

@@ -52,7 +52,7 @@ end
5252
end
5353
```
5454

55-
#### `@parameters` and `@variables` begin block
55+
### `@parameters` and `@variables` begin block
5656

5757
- Parameters and variables are declared with respective begin blocks.
5858
- Variables must be functions of an independent variable.
@@ -67,12 +67,12 @@ julia > ModelingToolkit.getdefault(model_c.v)
6767
2.0
6868
```
6969

70-
#### `@structural_parameters` begin block
70+
### `@structural_parameters` begin block
7171

7272
- This block is for non symbolic input arguements. These are for inputs that usually are not meant to be part of components; but influence how they are defined. One can list inputs like boolean flags, functions etc... here.
7373
- Whenever default values are specified, unlike parameters/variables, they are reflected in the keyword argument list.
7474

75-
#### `@extend` block
75+
### `@extend` block
7676

7777
To extend a partial system,
7878

@@ -88,7 +88,7 @@ julia> @named model_c = ModelC(; p1 = 2.0)
8888

8989
However, as `p2` isn't listed in the model definition, its default can't be modified by users.
9090

91-
#### `@components` begin block
91+
### `@components` begin block
9292

9393
- Declare the subcomponents within `@components` begin block.
9494
- The arguments in these subcomponents are promoted as keyword arguments as `subcomponent_name__argname` with `nothing` as default value.
@@ -102,7 +102,7 @@ julia> @named model_c1 = ModelC(; model_a.k1 = 1);
102102

103103
And as `k2` isn't listed in the sub-component definition of `ModelC`, its default value can't be modified by users.
104104

105-
#### `@equations` begin block
105+
### `@equations` begin block
106106

107107
- List all the equations here
108108

@@ -130,11 +130,8 @@ end
130130
`@connector`s accepts begin blocks of `@components`, `@equations`, `@extend`, `@parameters`, `@structural_parameters`, `@variables`. These keywords mean the same as described above for `@mtkmodel`.
131131

132132
!!! note
133-
134133
For more examples of usage, checkout [ModelingToolkitStandardLibrary.jl](https://github.com/SciML/ModelingToolkitStandardLibrary.jl/)
135134

136-
* * *
137-
138135
### What's a `structure` dictionary?
139136

140137
For components defined with `@mtkmodel` or `@connector`, a dictionary with metadata is created. It lists `:components` (sub-component list), `:extend` (the extended states and base system), `:parameters`, `:variables`, ``:kwargs`` (list of keyword arguments), `:independent_variable`, `:equations`.

src/ModelingToolkit.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ using PrecompileTools, Reexport
6767
substituter, scalarize, getparent
6868

6969
import DiffEqBase: @add_kwonly
70+
import OrdinaryDiffEq
7071

7172
import Graphs: SimpleDiGraph, add_edge!, incidence_matrix
7273

0 commit comments

Comments
 (0)