Closed sjanzou closed 1 week ago
I'm still seeing the error after cleaning and rebuilding. This is for the default PVWatts / Commercial case switching to 5-yr MACRS after setting straight line depreciation years to zero:
@cpaulgilman , could you please clean (and delete SAM-private\build_windows folder if testing from the SAM-private build) and make sure the ssc.dll used is the latest
I am not able to replicate the error unless "Straight line" depreciation is selected - tested Federal and State switching between all Depreciation mode selections runs without error.
Worked for me when testing. Where else should SKIP_CONSTRAINT_CHECK be applied (question for a different issue/PR)?
I can't replicate the Windows test failure on my build.
SKIP_CONSTRAINT_CHECK should be used anywhere for an optional ssc variable that is required only if some other variable is set to a specific value. The example of SAM issue https://github.com/NREL/SAM/issues/1733 is a perfect example in which the optional "years" value for straight line depreciation is required only if the depreciation selection is 2. Then the "years" input for the user should be checked to be positive (the CONSTRAINT field in the vartable).
To test:
See https://github.com/NREL/SAM/issues/1733 for simulation error in current release.