Hi there,
I am beginning to work through the examples in the FEniCS book and it looks like the first example (d1_p2D.py) contains deprecated source code. Since I don't want to spend a lot of time finding and fixing errors in the examples, does anyone know if there is a set of examples that are consistent with version 1.2? If not, then which version of FEniCS do the examples work with natively?
I'll post the error below for reference.
Thanks
poisson$ python d1_p2D.py
Reading DOLFIN parameters from file "dolfin_parameters.xml".
*** -------------------------------------------------------------------------
*** Warning: UnitSquare has been deprecated in DOLFIN version 1.1.0.
*** The class UnitSquare has been replaced by UnitSquareMesh.
*** -------------------------------------------------------------------------
Traceback (most recent call last):
File "d1_p2D.py", line 15, in
V = FunctionSpace(mesh, 'Lagrange', 1)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 390, in init
FunctionSpaceBase.init(self, mesh, element, constrained_domain)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 84, in init
ufc_element, ufc_dofmap = jit(self._ufl_element)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
return local_jit(*args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 102, in jit
raise OSError, "Could not find swig installation. Pass an existing "\
OSError: Could not find swig installation. Pass an existing swig binary or install SWIG version 2.0 or higher.
poisson$