Opened 7 years ago

Closed 6 years ago

#4860 closed defect (fixed)

Table models in the ScalableTestSuite fail with NF because of lack of function evaluation

Reported by: Francesco Casella Owned by: Per Östlund
Priority: normal Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

The Table models of the ScalableTestSuite, see, e.g., ScalableTestSuite.Elementary.ParameterArrays.Verification.Table fail with a segfault.

Flattening the models with the NF reveals declarations such as

parameter Real tab[1,1] = 
  ScalableTestSuite.Elementary.ParameterArrays.Models.f_tab(10, 5)[1, 1];

instead of

parameter Real tab[1,1] = 6.0;

produced by the old FE. I gues the problem here is the lack of function evaluation in the NF.

Change History (3)

comment:1 by Per Östlund, 7 years ago

This still hasn't been fixed, but the models now simulate correctly anyway. I'll keep this ticket open for now though, since we should generally try to avoid subscripting function calls.

comment:2 by Francesco Casella, 7 years ago

Priority: highnormal

comment:3 by Per Östlund, 6 years ago

Resolution: fixed
Status: newclosed

This has been fixed for a while now, function calls with constant arguments are now evaluated like in the old frontend.

Note: See TracTickets for help on using tickets.