Skip to content

OC writes unintended period blocks and records #228

@mjreno

Description

@mjreno

Version: Commit d50342f
Recreate:

  • update OC constructor
oc = Oc(
    parent=gwf,
    budget_file=f"{gwf_name}.bud",
    head_file=f"{gwf_name}.hds",
    save_head=["", "all"],
    save_budget=[None, "all"],
)
  • change time constructor:
time = ModelTime(perlen=[1.0, 1000.0], nstp=[1, 10], tsmult=[1.0, 1.5])
#time = ModelTime(perlen=[1.0], nstp=[1], tsmult=[1.0])

Result:

BEGIN OPTIONS
 BUDGET FILEOUT mymodel.bud
 HEAD FILEOUT mymodel.hds
END OPTIONS

BEGIN PERIOD 1
 save head
 save budget None
END PERIOD 1

BEGIN PERIOD 2
 save head all
 save budget all
END PERIOD 2

Close if this is not the intended syntax for OC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    IORelated to loading/writing input/output filesbugSomething isn't workingrequirementCore requirement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions