Skip to content

Simplify the interface #6

@briochemc

Description

@briochemc

Maybe the interface should be in a single call that dispatches and does all the work

T = transportmatrix(; 
    umo_ds, # or uo_ds
    vmo_ds, # or vo_ds
    areacello_ds,
    volcello_ds,
    mlotst_ds,
    ρ, # <- maybe replace with S and T if generally available?
    κH,
    κVML,
    κVdeep
)

To dispatch on whether the fluxes or velocities are provided, I think maybe I could use a pattern like

transportmatrix(; uo=[], vo=[], umo=uo2umo(uo), vmo=vo2vmo(vo) = ...

but I'm not sure this is the Julian way?

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