morpho
morpho copied to clipboard
The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
When using `system()` to pass shell commands, it is not currently possible to assign the printed output to a `morpho` variable. E.g. ```var now = system("date +'%m/%d/%Y'")```
The `Hydrogel` functional allows a number `grade` as an optional argument, but the construction fails with a `HydrglArgs` error. **To Reproduce** Run the following code in the `test/functionals/hydrogel` directory: ```...
for (i in 0..3) if (i==2){ print "found the if" } else {print "found the else"} print "at the end" This should throw a syntax error
import meshtools import plot import optimize var vertexlist = [[0.5,0.5,0.5], [0.5,1.5,0.5], [1.5,1.5,0.5], [1.5,0.5,0.5], [0.5,0.5,1.5],[0.5,1.5,1.5], [1.5,1.5,1.5], [1.5,0.5,1.5]] var facelist = [[0,3,2,1], [0,4,5,1], [0,3,7,4], [2,3,7,6], [4,5,6,7], [1,2,6,5]] var m = PolyhedronMesh(vertexlist, facelist)...
There is a bug in the parsing of exclusive ranges that is showcased by this example: ``` print List(1.0 ... 1.2 : 0.15) // prints [ 1 ], but should...
running povray in quiet mode doesn't silence it, instead it run it in a new process Working on adding minimal example
Compiling the following gives a consistency error ``` import meshtools import constants fn mobius(r = 1, ratio = 0.5) { var L = 2*r*ratio // Separation var m = AreaMesh(fn(u,v)...
**Describe the bug** A typo in the constructor for `FloryHuggins` results in a segfault **To Reproduce** ``` var m = Mesh("tetrahedron.mesh") // Can be found under test/functionals/floryhuggins var mref =...
**Describe the bug** Error 'IndxBnds': Index out of bounds. in AreaMesh at line 82 from global at line 9 **To Reproduce** Steps to reproduce the behavior: 1. Go to '../morpho/examples/cholesteric/cholesteric.morpho'...
From Amine Missaoui: "I wanted to calculate the director field for a simple case of an **achiral** 5CB. So I set the pitch to a large value (about 200 because...