This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

rectangle mesh error "point is not defined"

0 votes

I'm having a problem with the rectangle mesh.

the code is:

mesh = RectangleMesh(point(x0,y0), point(x1,y1), int((x1-x0)*n), int((y1-y0)*n), 'crossed')

the error I'm getting is:

NameError: global name 'point' is not defined

the full code is found here:
http://www.karlin.mff.cuni.cz/~blechta/fenics-tutorial/elasticity/doc.html

I changed the syntax of the arguments of the rectangle mesh, other than that what I'm trying to run is identical.

Any help would be appreciated.

asked May 30, 2017 by woolyabyss FEniCS Novice (420 points)

1 Answer

+1 vote
 
Best answer

Hi,
Changing it to Point should fix this.
Note that all code in python is case sensitive.

answered May 31, 2017 by meron FEniCS User (2,340 points)
edited Jun 1, 2017 by meron
...