Skip to content

Conversation

@briochh
Copy link
Collaborator

@briochh briochh commented Nov 19, 2020

Recently noticed that if a timestep fails, MODFLOW-NWT writes the budget info for the failed step to mflistfile. Which is then harvested by the flopy.utils.MfListBudget().get_dataframes() methods. This could cause misalignment of model output and instruction files if no output was expected for that kstp (which might be the case is only printing budget infor at the end of stress periods).

Have added a quick work-around to the setup and apply methods to allow user to specify the times of interest. Currently not very flexible about the format of the requested times array -- onus on the user to make sure that it matches the index of the dataframes that flopy returns when parsing the budget files (array of datetimes should work most of the time I think).

N.B. this does not affect the automatic setup in PstFromFlopyModel().

@briochh briochh merged commit d250a8b into pypest:develop Nov 20, 2020
@briochh briochh deleted the hotfix_budgetobstimes branch August 2, 2021 09:33
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

Successfully merging this pull request may close these issues.

1 participant