Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.16.2 - merge #105

Merged
merged 8 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/Documentation.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

[![Dev Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://ThummeTo.github.io/FMI.jl/dev)
[![Run Tests](https://github.com/ThummeTo/FMIImport.jl/actions/workflows/Test.yml/badge.svg)](https://github.com/ThummeTo/FMIImport.jl/actions/workflows/Test.yml)
[![Build Docs](https://github.com/ThummeTo/FMIImport.jl/actions/workflows/Documentation.yml/badge.svg)](https://github.com/ThummeTo/FMIImport.jl/actions/workflows/Documentation.yml)
[![Run PkgEval](https://github.com/ThummeTo/FMIImport.jl/actions/workflows/Eval.yml/badge.svg)](https://github.com/ThummeTo/FMIImport.jl/actions/workflows/Eval.yml)
[![Coverage](https://codecov.io/gh/ThummeTo/FMIImport.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ThummeTo/FMIImport.jl)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
Expand Down
2 changes: 0 additions & 2 deletions docs/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions docs/Project.toml

This file was deleted.

26 changes: 0 additions & 26 deletions docs/make.jl

This file was deleted.

4 changes: 0 additions & 4 deletions docs/src/contents.md

This file was deleted.

250 changes: 0 additions & 250 deletions docs/src/fmi2_library.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/src/fmi3_library.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/src/overview.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/src/related.md

This file was deleted.

3 changes: 2 additions & 1 deletion src/FMI2/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ function fmi2ModelVariablesForValueReference(md::fmi2ModelDescription, vr::fmi2V
end

"""
ToDo.
fmi2DataTypeForValueReference(md::fmi2ModelDescription, vr::fmi2ValueReference)
Returns the fmi2DataType (`fmi2Real`, `fmi2Integer`, `fmi2Boolean`, `fmi2String`) for a given Valuereference `vr` of a given FMU-ModelDescription `md`
"""
function fmi2DataTypeForValueReference(md::fmi2ModelDescription, vr::fmi2ValueReference)
mv = fmi2ModelVariablesForValueReference(md, vr)[1]
Expand Down
8 changes: 6 additions & 2 deletions src/FMI2/ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ end
function dlsym_opt(libHandle, symbol)
addr = dlsym(libHandle, symbol; throw_error=false)
if addr == nothing
logWarn(fmu, "This FMU does not support function '$symbol'.")
logWarning(fmu, "This FMU does not support function '$symbol'.")
addr = Ptr{Cvoid}(C_NULL)
end
addr
Expand Down Expand Up @@ -257,6 +257,10 @@ function fmi2Load(pathToFMU::String; unpackPath::Union{String, Nothing}=nothing,
return fmu
end

"""
loadBinary(fmu::FMU2)
load pointers to `fmu`\`s c functions from shared library handle (provided by `fmu.libHandle`)
"""
function loadBinary(fmu::FMU2)
lastDirectory = pwd()
cd(dirname(fmu.binaryPath))
Expand Down Expand Up @@ -518,7 +522,7 @@ function fmi2Instantiate!(fmu::FMU2;
end

if !isnothing(component)
logWarn(fmu, "fmi2Instantiate!(...): This component was already registered. This may be because you created the FMU by yourself with FMIExport.jl.")
logWarning(fmu, "fmi2Instantiate!(...): This component was already registered. This may be because you created the FMU by yourself with FMIExport.jl.")
else
component = FMU2Component(compAddr, fmu)

Expand Down
Loading
Loading