Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
30 stars 10 forks source link

Field member variable in HookeElasticity #272

Open constantinemoseley opened 1 month ago

constantinemoseley commented 1 month ago

Description The field member variable in HookeElasticity is called "self.ref" but optimize.morpho searches for "self.field" .

Files Bug is located at: morpho/modules/functionals.morpho:62 Optimizer searches at: morpho/modules/optimize.morpho:740

softmattertheory commented 1 month ago

Thanks for this @constantinemoseley — we need to have a think about what to do here. Currently the optimizer only looks in the Field property, but perhaps it should use introspection to look across properties.