Skip to content

setup_reservoir_state with a list of equilibrium regions #6

Description

@havahol

setup_reservoir_state with a list of equilibrium regions fails, unless the list is wrapped in jl.Vector(eql_regs_list).

This fails

See wrapper for implemented work-around.

Error message without workaround:

>>> state0_two_reg = jd.setup_reservoir_state(model_3ph, [eql_A, eql_B])

Julia: MethodError: no method matching setup_reservoir_state(::Jutul.MultiModel{nothing, Jutul.JutulStorage{Nothing}, Vector{Jutul.CrossTermPair}, Nothing, Jutul.ParallelCSRContext, Dict{Symbol, Int64}}, ::PyList{Any})
The function `setup_reservoir_state` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  setup_reservoir_state(::Any, !Matched::AbstractDict; kwarg...)
   @ JutulDarcy ~/.julia/packages/JutulDarcy/jGLQZ/src/state0.jl:219
  setup_reservoir_state(::Jutul.MultiModel, !Matched::Union{Missing, JutulDarcy.EquilibriumRegion, Vector}; kwarg...)
   @ JutulDarcy ~/.julia/packages/JutulDarcy/jGLQZ/src/state0.jl:180
  setup_reservoir_state(::Jutul.MultiModel; ...)
   @ JutulDarcy ~/.julia/packages/JutulDarcy/jGLQZ/src/state0.jl:180

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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