Opened 6 years ago

Last modified 6 years ago

#4811 assigned defect

array_alloc_real_array error

Reported by: brix.frederic@… Owned by: somebody
Priority: normal Milestone: NeedsInput
Component: Code Generation Version: v1.13.0-dev-nightly
Keywords: Cc: brix.frederic@…

Description (last modified by sjoelund.se)

Hello ... it's a great tool you have there !!!

Well I have a program that runs on Linux Debian on a 32bit machine but doens't on a W10 64bit .
The program is using vectors, and transpose of matrices.

Here is the error message ... in fact it repeats itself a lot in one code.

So thank you very much for checking this.
I am running this from W10 and not from a cygwin or msys2_shell.cmd window.

WENO.EXA.TestLine02_06inz.c:1740:37: error: incompatible type for argument 3 of 'array_alloc_real_array'
   array_alloc_real_array(&tmp11, 2, 0.0, data->localData[0]->realVars[414] /* line021.VV0[7] variable */);
                                     ^
In file included from C:/OpenModelica1.13.0-dev-64bit/include/omc/c/openmodelica_func.h:50:0,
                 from MODELNAME.EXA.TestLine02_model.h:5,
                 from MODELNAME.EXA.TestLine02_06inz.c:2:
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/util/real_array.h:144:13: note: expected 'real_array_t {aka struct base_array_s}' but argument is of type 'double'
 extern void array_alloc_real_array(real_array_t* dest,int n,real_array_t first,...);
             ^
WENO.EXA.TestLine02_06inz.c:1741:37: error: incompatible type for argument 3 of 'array_alloc_real_array'
   array_alloc_real_array(&tmp12, 2, 0.0, data->localData[0]->realVars[415] /* line021.VV0[8] variable */);
                                     ^
In file included from C:/OpenModelica1.13.0-dev-64bit/include/omc/c/openmodelica_func.h:50:0,
                 from MODELNAME.EXA.TestLine02_model.h:5,
                 from MODELNAME.EXA.TestLine02_06inz.c:2:
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/util/real_array.h:144:13: note: expected 'real_array_t {aka struct base_array_s}' but argument is of type 'double'
 extern void array_alloc_real_array(real_array_t* dest,int n,real_array_t first,...);

Change History (3)

comment:1 Changed 6 years ago by perost

  • Component changed from OMEdit to Code Generation
  • Owner changed from adeas31 to somebody
  • Status changed from new to assigned

This doesn't look like something that would be caused by OS differences, are you using the same version on both machines? If you are, would you be able to share your model? Without a model that we can use to recreate the issue it will be very hard to debug.

comment:2 Changed 6 years ago by sjoelund.se

  • Description modified (diff)

comment:3 Changed 6 years ago by sjoelund.se

  • Keywords expected 'real_array_t array_alloc_real_array removed
  • Milestone changed from Future to NeedsInput
Note: See TracTickets for help on using tickets.