example from README.md does not work
I tried running all of the example in README.md
. Some things have changed since it was written:
gridfunction = grid.globalGridFunction("sin",
lambda x: [-(x[1] - 0.5)*math.sin(x[0]*12)])
The "sin"
should not be there.
print("gridfunction( ", y, " ) = ", lf.evaluate(x))
This should be lf(x)
and not try to call evaluate
.
grid.writeVTK("output", pointdata=[gridfunction])
Complains about the gridfunction
not having a name
propery. Should be related to the first issue, but I'm not sure what should be written here.