Skip to content

Commit

Permalink
added new attribute type for FMU2Component (#26)
Browse files Browse the repository at this point in the history
* added new attribute `type` for FMU2Component

* default value
  • Loading branch information
ThummeTo authored Oct 14, 2022
1 parent 9ca3672 commit 08948f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FMICore"
uuid = "8af89139-c281-408e-bce2-3005eb87462f"
authors = ["TT <[email protected]>", "LM <[email protected]>", "JK <[email protected]>"]
version = "0.12.0"
version = "0.12.1"

[compat]
julia = "1.6"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(@v1.6) pkg> add FMICore
```

(3)\. If you want to check that everything works correctly, you can run the tests bundled with [*FMICore.jl*](https://github.com/ThummeTo/FMICore.jl):
3\. If you want to check that everything works correctly, you can run the tests bundled with [*FMICore.jl*](https://github.com/ThummeTo/FMICore.jl):
```julia-repl
(@v1.6) pkg> test FMICore
```
Expand All @@ -43,4 +43,4 @@ Tobias Thummerer, Lars Mikelsons and Josef Kircher. 2021. **NeuralFMU: towards s
## Related publications?
Tobias Thummerer, Johannes Stoljar and Lars Mikelsons. 2022. **NeuralFMU: presenting a workflow for integrating hybrid NeuralODEs into real-world applications.** Electronics 11, 19, 3202. [DOI: 10.3390/electronics11193202](https://doi.org/10.3390/electronics11193202)

Tobias Thummerer, Johannes Tintenherr, Lars Mikelsons. 2021 **Hybrid modeling of the human cardiovascular system using NeuralFMUs** Journal of Physics: Conference Series 2090, 1, 012155. [DOI: 10.1088/1742-6596/2090/1/012155](https://doi.org/10.1088/1742-6596/2090/1/012155)
Tobias Thummerer, Johannes Tintenherr, Lars Mikelsons. 2021. **Hybrid modeling of the human cardiovascular system using NeuralFMUs** Journal of Physics: Conference Series 2090, 1, 012155. [DOI: 10.1088/1742-6596/2090/1/012155](https://doi.org/10.1088/1742-6596/2090/1/012155)
2 changes: 2 additions & 0 deletions src/FMI2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ mutable struct FMU2Component{F}
state::fmi2ComponentState
componentEnvironment::FMU2ComponentEnvironment
problem # ODEProblem, but this is no dependency of FMICore.jl
type::Union{fmi2Type, Nothing}

loggingOn::Bool
callbackFunctions::fmi2CallbackFunctions
Expand Down Expand Up @@ -103,6 +104,7 @@ mutable struct FMU2Component{F}
inst.t_offset = 0.0
inst.eventInfo = fmi2EventInfo()
inst.problem = nothing
inst.type = nothing

inst.loggingOn = false
inst.instanceName = ""
Expand Down

2 comments on commit 08948f5

@ThummeTo
Copy link
Owner 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 created: JuliaRegistries/General/70217

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.12.1 -m "<description of version>" 08948f59162001815a897a63b08d5fd1d06fcf93
git push origin v0.12.1

Please sign in to comment.