Skip to content

pathing issues with models in sub directories #1289

@briochh

Description

@briochh

This is possibly related to #1115.

I understand that external files within packages are expected (by modflow6) to be pathed relative to the simulation directory. I think flopy is trying to handle this where models are in subdirectories (or potentially just different directories to the simulation directory). The strategy seems to be that flopy prepends the model relaitve path to the file entry within the package.

For the most part this seems to work . However, there are a couple of places where things seem to get confused:

  1. Observation Files are not prepended with the relative path -- this isn't to much of a biggy as if using the obs.initialize() method one can pass the full rel path explicitly to the filename arg.
  2. External files are (re)prepended with the model relative path when loading the simulation back into flopy -- for e.g. the path to delc which in the model file is model_d/delc.txt becomes model_d/model_d/delc.txt in the m.dis.delc file entry after loading the sim and model back into flopy. Not sure if there is a work around that doesn't require package by package file by file stripping of the additional rel path.

urgh paths!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions