Opened 5 years ago

Closed 5 years ago

#5625 closed defect (invalid)

Basic lookup error by the NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: blocker Milestone: 1.14.0
Component: New Instantiation Version:
Keywords: Cc: giovanni.mangola@…

Description

@perost, please run the attached test.mos file provided on the Total.mo file I'm sending you by email.

The NF complains that

"[Total.mo:167:116-167:130:writable] Error: 
Variable N_des not found in scope FlexiCaL.FeedWater.FWPHs_Accurate.Sized_FWPHs.FWPH_11.
Error: Error occurred while flattening model FlexiCaL.FeedWater.Tests.Tests_FWPHs_Accurate.Test_FWPH_11

This is weird, since the Test_FWPH_11 model contains an instance fWPH_11_1 of model FWPH_11, which extends FWPH_Base, which contains the declaration

  parameter Integer N_des=6 "Number of nodes for thermal variables in the Desuperheating Section";

Attachments (1)

test.mos (166 bytes ) - added by Francesco Casella 5 years ago.

Download all attachments as: .zip

Change History (3)

by Francesco Casella, 5 years ago

Attachment: test.mos added

comment:1 by Per Östlund, 5 years ago

Are you sure you're using the NF? I get that error when using the OF, but the model flattens and simulates just fine using the NF.

comment:2 by Francesco Casella, 5 years ago

Cc: giovanni.mangola@… added
Resolution: invalid
Status: newclosed

I'm sorry, in the original test I put the setCommandLineOptions() call after simulate, and in the test posted here I actually forgot that.

I confirm I can simulate the model with -d=newInst, thanks!

Note: See TracTickets for help on using tickets.