Opened 5 years ago

Closed 5 years ago

#5625 closed defect (invalid)

Basic lookup error by the NF

Reported by: casella Owned by: perost
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 casella 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by casella

comment:1 Changed 5 years ago by perost

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 Changed 5 years ago by casella

  • Cc giovanni.mangola@… added
  • Resolution set to invalid
  • Status changed from new to closed

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.