Error intepreting input value as an integer using Matlab

  • MarkG
  • Topic Author
More
18 Mar 2020 20:39 #8055 by MarkG
There seems to be an issue with how values in the input data object are converted to the appropriate types for use in modules.

The value argument of the 'ssc_data_set_number' function is expected to be a single precision variable regardless of the constraint listed for that input in the module.

For example, setting the data value for the number of collectors as 2 is done as: 
Code:
calllib('ssc', 'ssc_data_set_number', data, 'ncoll', single(2) )

However, when the swh module is called, the following error is received:
Code:
fail(ncoll, integer): number could not be interpreted as an integer: 5.30499e-315

It looks as though it hasn't correctly cast the input single precision variable to an integer. 

Any ideas?

cheers

Please Log in or Create an account to join the conversation.

  • pgilman
More
12 May 2020 09:50 #8187 by pgilman
Hi Mark,

We are working to resolve this issue. Please see:

github.com/NREL/SAM/issues/280

We hope to include a fix in the next update to SAM 2020.2.29, hopefully within a week or so.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum