Skip to content

Commit 933a983

Browse files
Define the independent variable in the motor test (#483)
* Define the motor test independent variable Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> * Import independent variable macro from its owner Depend directly on ModelingToolkitBase public API instead of receiving the macro through ModelingToolkit re-export. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> --------- Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
1 parent b6acf8b commit 933a983

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/motor.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
using ModelingToolkit, Test
2+
using ModelingToolkitBase: @independent_variables
23
using SciCompDSL
34
using SciMLBase
45
using ModelingToolkitStandardLibrary.Thermal
56
using ModelingToolkitStandardLibrary.Blocks
67

8+
@independent_variables t
9+
710
# https://doc.modelica.org/Modelica%204.0.0/Resources/helpWSM/Modelica/Modelica.Thermal.HeatTransfer.Examples.Motor.html
811

912
@testset "Thermal Motor Demo" begin

0 commit comments

Comments
 (0)