Opened 13 years ago

Closed 12 years ago

#1758 closed defect (fixed)

Wrong Type Information in ComponentReference

Reported by: Jens Frenkel Owned by: Adrian Pop
Priority: high Milestone:
Component: Frontend Version: trunk
Keywords: Type, ComponentReference Cc:

Description

For the Model testsuite/3rdParty/SiemensPower/SiemensPower.Components.Pipes.Tests.TubeWithoutWall.mos
The Type of the ComponentReference

tube2.fluid[1].state

is wrong for tube2.fluid it shoud be ARRAY of Record but it is Record as printed with ComponentReference.debugPrintComponentRefTypeStr shows

Expant var tube2 [DAE.T_COMPLEX():model] .fluid[1] [DAE.T_COMPLEX(phase:T_INT,h:T_REAL,d:T_REAL,T:T_REAL,p:T_REAL):record] .state [DAE.T_COMPLEX(phase:T_INT,h:T_REAL,d:T_REAL,T:T_REAL,p:T_REAL):record]

Change History (3)

comment:1 by Jens Frenkel, 13 years ago

Also the type of

boxBody2.frameTranslation.frame_b.r_0[1]

is Real and not T_ARRAY(T_REAL)

skip boxBody2 [T_UNKNOWN] .frameTranslation [T_UNKNOWN] .frame_b [T_UNKNOWN] .r_0[ICONST 1
} [T_REAL]

Example: MBS DoublePendulum

comment:2 by Mahder Alemseged Gebremedhin, 12 years ago

I think this is just a misunderstanding of the type info on the debugPrintComponentRefTypeStr part. It is not a front-end issue. Same issues existed in the Code-generator. It compiles and simulates now anyway but fails with assertion failure on my machine. It seems to work on hudson. Not sure what is happening. Either way the record and array issue should be fixed now.

comment:3 by Mahder Alemseged Gebremedhin, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.