ClimaLand.jl icon indicating copy to clipboard operation
ClimaLand.jl copied to clipboard

Generalize `initialize_vars` more

Open jb-mackay opened this issue 2 years ago • 1 comments

Generic initialize - we may be able to unify this with initialize_vars but that would require changing the output type of that (currently a FieldVector). We would probably return a pair of keys, zero_instances where keys are the variable names and the zero_instances are the initialized fields. Then we can package that into a NamedTuple or FieldVector.

Originally posted by @jb-mackay in https://github.com/CliMA/ClimaLSM.jl/pull/51#discussion_r867272597

jb-mackay avatar May 09 '22 19:05 jb-mackay