Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Use of numArrayElement in SimVar

Use of numArrayElement in SimVar

I'm using the numArrayElement field of SimVar to allocate arrays when arrayCref is defined for the SimVar. This works in almost every case, but there are some instances where numArrayElement is empty even though the variable type is an array and arrayCref is defined. Is this a bug? Or am I misusing the numArrayElement field?

Thanks for any information you can provide,

Jim

Re: Use of numArrayElement in SimVar

You'll have to ask the makers of the CPP Codegen module. That field is not for general use and is probably wrong. Why they didn't just put the list<DAE.Dimension> in there, instead using String, I also do not know...

Re: Use of numArrayElement in SimVar

Hi,

Just send us an email at OpenModelica <AT> ida <dot> liu <dot> se
and we can put you in contact with the developers of the CPP Codegen module.

Cheers,
Adrian Pop/

There are 0 guests and 0 other users also viewing this topic
You are here: