﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2562	Problem with code generation - array in record	Francesco Casella	Lennart Ochel	"The compilation of model ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator in the testsuite fails due to incorrectly generated C code:

ThermoPower.Examples.BraytonCycle.OpenLoopSimulator_06inz.c:3762: error: '$Pplant$PPressDrop2$Pgas$Pstate$PX$lB5$rB' undeclared (first use in this function)

plant.PressDrop2.gas.state is a record, that contains the array X[4] - apparently the code generator doesn't like this.

Note that this problem shows up in all models using gas mixtures from Modelica.Media"	defect	closed	critical	1.9.1	Code Generation	trunk	duplicate		Lennart Ochel
