Hi,
The following is the code for solving elasticity (linear) problem on a simple square mesh. I took this from an old launchpad question.
https://github.com/ChaitanyaGoyal/2D_Linear_elasticity_Square_Plate/blob/master/Fenics_Drichilet_Load%20on%20top%20edge.py
It shows the following error when run:
page@Jarvis:~$ python 2D_Elasticity_node.py
Traceback (most recent call last):
File "2D_Elasticity_node.py", line 38, in
obstacle.mark(domains, 1)
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/mesh.py", line 4623, in mark
self._mark(*args)
TypeError: SWIG director type mismatch expected 'bool' as the output argument of 'inside'
I can't see anything wrong with that statement as I have confirmed the domain coding from the following fenics documentation:
http://fenicsproject.org/documentation/dolfin/1.2.0/python/demo/pde/subdomains-poisson/python/documentation.html
Pls. help. Thanks