Changes between Initial Version and Version 2 of Ticket #1163
- Timestamp:
- 2017-08-16T12:06:06Z (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1163
- Property Component → *unknown*
-
Ticket #1163 – Description
initial v2 1 1 I would like to have a parameter which I can pass to a constructor for an ExternalObject. 2 2 I use the below code, but only get a NULL pointer passed to the constructor. 3 {{{package demo 3 {{{#!modelica 4 package demo 4 5 model test 5 6 … … 30 31 end test ; 31 32 32 end demo;}}} 33 end demo; 34 }}} 33 35 !!Comment from Martin Sjoelund: 34 36 35 37 36 38 The simulation generates the following result: 37 {{{$ ./test -v 39 {{{ 40 $ ./test -v 38 41 construct: (null) 39 42 read start = 0 from init file. … … 44 47 read $dummy = 0 from init file. 45 48 read der($dummy) = 0 from init file. 46 read DataFile = "sampledata.xml" from init file.}}} 49 read DataFile = "sampledata.xml" from init file. 50 }}} 47 51 48 52 The way OpenModelica does this is it first initializes the whole structure. Then calls the external object constructors. Then reads the input.