Opened 9 years ago
Closed 9 years ago
#3956 closed defect (invalid)
no member named 'method' in 'struct NONLINEAR_SYSTEM_DATA'
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Run-time | Version: | v1.10.0-dev-nightly |
Keywords: | Cc: |
Description
When building a model (still struggling with creating a simple example to attach to the ticket) with algebraic loops in it I got the following error message from clang:
ASM1Plant_02nls.c:698:26: error: no member named 'method' in 'struct NONLINEAR_SYSTEM_DATA'
nonLinearSystemData[0].method = 0;
ASM1Plant_02nls.c:710:26: error: no member named 'method' in 'struct NONLINEAR_SYSTEM_DATA'
nonLinearSystemData[1].method = 0;
33 warnings and 2 errors generated.
<builtin>: recipe for target 'ASM1Plant_02nls.o' failed
make: * [ASM1Plant_02nls.o] Error 1
make: * Waiting for unfinished jobs....
Checking the omc/c/simulation_data.h file revealed that there is a 'method' member in LINEAR_SYSTEM_DATA, there is one in in MIXED_SYSTEM_DATA both with a 'not used yet' comment, however, the NONLINEAR_SYSTEM_DATA struct misses the mentioned member.
I experienced the behavior in OMC version OpenModelica 1.10.0~dev-723-g6da1434 on Ubuntu 16.04, using clang version 3.8.0-2ubuntu3 (tags/RELEASE_380/final).
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Thank your for the quick response.
Re-tested it in OMC version OpenModelica 1.10.0~dev-755-g3bdc1f5 (simple apt-get update/upgrade from the xenial nightly build repo):
Actually the 'method' member is still missing from NONLINEAR_SYSTEM_DATA in the mentioned header, however, the code generated in the ASM1Plant_02nls.c file does not contain a reference to the 'method' member anymore so the error described in the ticket is not met anymore - issue seems to be resolved.
Since this is my first ticket here I am not familiar with the ticket management process - is it the reporter (me) who shall put the ticket somehow to resolved/closed state or the best is not to touch and leave it to you?
Thanks once more.
comment:3 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks for using OpenModelica and reporting feedback.
As far as I know, the field method should be available in the version you reported. It was removed in 76b1b286ae330ac670b1a1195b2fa596627d88c6/OMCompiler. Can you please test it again with the latest version?