Skip to content

Commit ca07698

Browse files
authored
check for string data type when calculating initial attribute (#1559)
1 parent 287953c commit ca07698

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

3rdParty

testsuite/reference-fmus/3.0/Feedthrough.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
instantiated_model.setValue(CRef('default', 'Feedthrough', 'Enumeration_input'), 2)
3434

3535
## need to implement fmi3causality table in fmi4c library if inital attribute is not present
36-
## instantiated_model.setValue(CRef('default', 'Feedthrough', 'String_parameter'), "Set me!")
36+
instantiated_model.setValue(CRef('default', 'Feedthrough', 'String_parameter'), "Set me test!")
3737

3838
instantiated_model.initialize()
3939
instantiated_model.simulate()
@@ -84,8 +84,7 @@
8484
instantiated_model.setValue(CRef('default', 'Feedthrough', 'Boolean_input'), True)
8585
instantiated_model.setValue(CRef('default', 'Feedthrough', 'Enumeration_input'), 2)
8686

87-
## need to implement fmi3causality table in fmi4c library if inital attribute is not present
88-
## instantiated_model.setValue(CRef('default', 'Feedthrough', 'String_parameter'), "Set me!")
87+
instantiated_model.setValue(CRef('default', 'Feedthrough', 'String_parameter'), "Set me test!")
8988

9089
instantiated_model.initialize()
9190
instantiated_model.simulate()
@@ -126,7 +125,7 @@
126125
## info: Feedthrough.UInt64_input: 11
127126
## info: Feedthrough.Boolean_input: True
128127
## info: Feedthrough.Enumeration_input: 2
129-
## info: Feedthrough.String_parameter: Set me!
128+
## info: Feedthrough.String_parameter: Set me test!
130129
## warning: Unknown FMI3 base type for var : Binary_input
131130
## warning: Unknown FMI3 base type for var : Binary_output
132131
## Loading FMI version 3...
@@ -145,7 +144,7 @@
145144
## info: Feedthrough.UInt64_input: 11
146145
## info: Feedthrough.Boolean_input: True
147146
## info: Feedthrough.Enumeration_input: 2
148-
## info: Feedthrough.String_parameter: Set me!
147+
## info: Feedthrough.String_parameter: Set me test!
149148
## info: Final Statistics for 'model.root':
150149
## NumSteps = 10001 NumRhsEvals = 10002 NumLinSolvSetups = 501
151150
## NumNonlinSolvIters = 10001 NumNonlinSolvConvFails = 0 NumErrTestFails = 0

0 commit comments

Comments
 (0)