Opened 11 years ago

Last modified 11 years ago

#2368 closed defect

Record, inheritance and real vectors — at Version 1

Reported by: c.schulze@… Owned by: probably noone
Priority: blocker Milestone: 1.9.0
Component: Code Generation Version: 1.9.0Beta
Keywords: Cc:

Description (last modified by Martin Sjölund)

model emptyVector4
  record R
    constant Boolean fixedMixingRatio;
    constant Integer nc_propertyCalculation(min=1);
    final constant Integer nc=if fixedMixingRatio then 1 else nc_propertyCalculation;
    constant Real[nc_propertyCalculation] mixingRatio_propertyCalculation;
    constant Real[nc] defaultMixingRatio = if fixedMixingRatio then {1} else mixingRatio_propertyCalculation;
    constant Real xi_default[nc-1] = defaultMixingRatio[1:end-1]/sum(defaultMixingRatio); 
  end R;
  record R2=R(nc_propertyCalculation=1,fixedMixingRatio=false,mixingRatio_propertyCalculation={1});
  R2 r2;
end emptyVector4;

The type of xi_default cannot be determined. Unusable source code is generated. (r15030)

Change History (1)

comment:1 by Martin Sjölund, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.