Open ctessum opened 1 year ago
@xtalax ?
For some reason, PDESystems in the MOL test set have always been specified with param defaults supplied at this stage. I suppose this is because they were written before you could do this with @parameters
. It is inconsistent with the rest of the ecosystem, but it has been this way for a while. I will add a path that uses default values from the definition of the variable like you suggest.
Thanks!
Hello,
The code below is a version of the Brusselator example, modified only by changing alpha from a numeric value to a @parameter:
This code gives the error:
ERROR: type Num has no field first
.I can kind of fix this by specifying the default value of the parameter:
The code now runs, but it gives a warning:
Warning: : no method matching get_unit for arguments (Pair{Num, Float64},).
I guess this warning occurs because the parameter is now a pair rather than a single variable. This also goes against the PDESystem documentation, which specifies a separate argument for parameter defaults.It seems like this might be a bug. Let me know if you have any thoughts!