-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unitialized basin_id #142
Comments
@christophertubbs, if long-term it doesn't make sense to allow default basin ids values (i.e., we eventually will need to enforce their explicit inclusion when calling constructors), I lean toward leaving it as-is to remind us there is something there that needs fixing. I wouldn't argue too much though if that got changed regardless. Given that, I'm fine with either adding a default argument value or an additional constructor, such that this gets initialized to |
A quick look shows that |
Also, see the
I think we should probably pass the appropriate catchment id (and rename basin_id to catchment_id to be consistent with its use across the realizations) |
Yes, this is a leftover from the initial prototype. I will submit a PR now with the change to catchment_id. I will add the 0 as default for now and put a todo for an explicit inclusion as Bobby says. |
Forcing.h gets repeated warnings on build because one of the constructors sets
basin_id(basin_id)
, but, since no basin_id is passed, the constructor just sets the basin_id as the value it already was (which wasn't anything).Would anyone be opposed to me setting that as 0 to ensure that it's at least getting the default value or just taking it out of the signature?
The text was updated successfully, but these errors were encountered: