Error intepreting input value as an integer using Matlab

  • Mark Goldsworthy
  • Topic Author
More
19 Mar 2020 02:39 #8055 by Mark Goldsworthy
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: 
calllib('ssc', 'ssc_data_set_number', data, 'ncoll', single(2) )

However, when the swh module is called, the following error is received:
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.

  • Paul Gilman
More
12 May 2020 15:50 #8187 by Paul Gilman
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: Paul Gilman
Powered by Kunena Forum