Skip to content
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

adding to irch? #715

Closed
jtwhite79 opened this issue Nov 6, 2019 · 4 comments
Closed

adding to irch? #715

jtwhite79 opened this issue Nov 6, 2019 · 4 comments

Comments

@jtwhite79
Copy link
Contributor

irch + 1,

Does anyone know why we are adding 1 to the irch variable? It doesnt work for me on a model with nrchopt = 2 because Transient2d doesnt define the __add__ operator. I can add/hack if needed but just wanted to make sure we should be adding 1 to irch

@langevin-usgs
Copy link
Contributor

Well irch is the layer number, so it would make sense to add 1 to it. Ironically, I noticed today that we do not add 1 to the mf6 version of irch, which I am intending to fix.

@jtwhite79
Copy link
Contributor Author

ok, fair enough, but we dont subtract 1 from irch in the load. So should irch be zero-based? If, we probably shouldnt add 1 except at during write, agree?

@langevin-usgs
Copy link
Contributor

Ahh, yes. We shouldn't add 1 in __init__. That does look screwy. I wonder why we did it that way. Must be a residual from the old days. Should subtract 1 on load, and add 1 on write.

@langevin-usgs
Copy link
Contributor

Close with 7cbc489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants