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

PRT FMI mishandles array-based RCH/EVT input #2042

Closed
wpbonelli opened this issue Oct 21, 2024 · 4 comments
Closed

PRT FMI mishandles array-based RCH/EVT input #2042

wpbonelli opened this issue Oct 21, 2024 · 4 comments
Labels
Milestone

Comments

@wpbonelli
Copy link
Contributor

The PRT flow model interface does not properly handle array-based recharge/evapotranspiration package input if the model grid has an inactive region. The package's nodelist may contain zeroes in this case (corresponding to inactive cells), while PRT FMI currently assumes nodelist elements are all nonzero, causing a crash.

Reported by @mnfienen. Related to #2041.

@langevin-usgs
Copy link
Contributor

Is this just for PRT-FMI and not GWT/GWE?

@wpbonelli
Copy link
Contributor Author

I can only speak to PRT at the moment, but happy to check the other models when I'm back from leave. @jdhughes-usgs or @emorway-usgs may have more insight

@langevin-usgs
Copy link
Contributor

I can only speak to PRT at the moment, but happy to check the other models when I'm back from leave. @jdhughes-usgs or @emorway-usgs may have more insight

I'll look into it. Enjoy your leave!

@emorway-usgs
Copy link
Contributor

I've tried a couple approaches to reproduce the problem. First I'll mention that the large "regional" model that @mnfienen shared with @wpbonelli was shared with me. Running it, I confirmed that it errored out. Second, I commented out the PRT model and confirmed that the GWF model would run to completion (~1.5 minutes for me w/o PRT active). Third, I generated a minimal set of GWT input to test whether its FMI package also would terminate with the same error (attached). It did not - although GWT didn't converge (but that's secondary, more importantly the FMI package didn't bomb). Since the GWT FMI package didn't bomb, it may be possible to trace the bug by contrasting which index in PRT fails but yet doesn't cause problems with GWT.

rcha-troubleshoot.zip

wpbonelli added a commit that referenced this issue Nov 3, 2024
Temporary fix for #2042, pending a more complete solution for #2041 where ideally we can standardize treatment of array- and list-based input and avoid the special handling.
@wpbonelli wpbonelli added this to the 6.6.0 milestone Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants