raddleverse / MimiCIAM.jl

MIT License
2 stars 1 forks source link

Mimi error with non-float parameter values? #2

Closed cledna closed 6 years ago

cledna commented 6 years ago

Is there a way to pass int/bool parameter values into Mimi? I'm having to coerce things to ints in the code for non-array parameters.

davidanthoff commented 6 years ago

Yes, you can specify the type of any parameter or variable in @defcomp like this:

@defcomp foo begin
    x::Bool = Parameter()
    y::Int = Variable()
end
cledna commented 6 years ago

Great, thanks!