You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something that I'll need to explore more to see what's going on. Unfortunately, we can't simply remove/replace the solve loop with do_time_step() in the extensions source code because it will remove the callback entry points from user access. Instead, it looks like we'll have to find out 1) which modflow function isn't being called and 2) create either an api call that executes the function or write some python code to mirror the function in the api extensions.
It'll go on the list of needed improvements. Thanks for identifying this issue!
The "do_time_step() shortcut hack" is more a debugging tool than a solution. I am not sure if this could be more a problem in xmipy than in modflowapi.
Approach
I ran all models from MODFLOW 6 examples: built 02/06/2025 19:17.
Code
This code was used to run all models:
Versions
modflowapi
: 0.3.0.dev0xmipy
: 1.3.1Results
Most model runs produce the same output compared with the standalone MODFLOW executable. But these models:
produce significantly different results in the balance values as listed in each
<mode-name>.lst
file. All of these models use of time series.These models also use time series:
but show no differences in results compared to the standalone runs.
Potential problem
The problems seems to be in the solution loop in
modflowapi.extensions.runner.run_simulation()
.Replacing this loop:
with:
fixes the problem and all models produce the same results as the standalone runs.
The text was updated successfully, but these errors were encountered: