HFB writing is very slow when read from dump.toml

Offen
#1,979 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
data

Rechercherichtung

Start by running the attached test_hfb_rewriting.py example with imod 1.1.0 and compare HFB write times for a freshly created model and one reloaded with Modflow6Simulation.from_file(). Trace how the HFB package is loaded from dump.toml and written by simulation.write(); the issue is resolved when writing the reloaded model no longer slows progressively with larger models.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Dear developers,

I am creating a model including a hfb-package > saving that using simulation.dump() >opening that dump later via the imod.mf6.Modflow6Simulation.from_file() function > changing a package > rewriting the model to modflow files using simulation.write().

In this writing (when loaded from dump) statements, the writing is very slow on the hfb package. There is no issue when writing/dumping it directly when creating the model, only after loading from dump toml. The issue seems to get progressively worse for larger models. I tried computing the reloaded hfb before writing, but that did not seem to change it.

Attached is a small working example.

test_hfb_rewriting.py

Running on imod 1.1.0.

Teun

Vorherrschende Sprache
Python
Sterne
41
Forks
12
Ø Merge
2 T. 8 Std.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Deltares/imod-python

Alle Issues in Deltares/imod-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.