morpho
morpho copied to clipboard
The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
This PR attempts to add a CI workflow to run the test-suite with `morpho6 -w2`, thus checking for bugs with multithreading. Given the increase in parallelization in Morpho (yay!), this...
**Describe the bug** The [gradvector](https://github.com/Morpho-lang/morpho/blob/main/test/functionals/areaintegral/gradvector.morpho) test fails when run with multi-threading. **To Reproduce** 1. Go to `test/functionals/areaintegral` 2. Run `morpho6 -w4 gradvector.morpho` **Expected behavior** Output: ``` 0 [ 1 ]...
This PR adds initial support for typing and multiple dispatch to Morpho. You can define multiple implementations of the same function: ```` fn f(List x) { .. } fn f(String...
**Describe the bug** Information about the module from which the Error is originating would be vital for debugging.
**Describe the bug** `examples.py` doesn’t catch for the case when it cannot run the morpho file itself, as is happening right now since the command is `morpho5`. So no examples...
This small PR uses the new multiple dispatch functionality to simplify the visitor pattern used in the graphics module, where the graphics primitives are visited by `Show` and `POVRaytracer`. All...
The fix for this is already planned, as mentioned in #259, but I am documenting it here as an open issue for posterity. **Describe the bug** An integrand function of,...
This PR makes adjustments to the Error class to support calling throw and warning on the class without instantiation, e.g. `Error.warning("Foo")` Includes two tests of the fixed functionality. Fixes #252.
**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
Makes the Cauchy Green strain tensor: C = (F G - 1)/2 where: * F is the gram matrix in the deformed frame. * G is the INVERSE of the...