I am using Ubuntu 12.04, I recently updated via PPA to dolfin 1.2.0
My code does not work when I try to use "Expression"
In [1]: from dolfin import *
In [2]: mesh = UnitCubeMesh(10,10,10)
In [3]: V=FunctionSpace(mesh,"CG",2)
In [4]: E=Expression('x[0]>12?1:2')
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile with command 'cmake -DDEBUG=TRUE . ', see '/home/cchintaluri/.instant/error/dolfin_compile_code_d921ff1f9a69752d5ac5a72c2e599b20/compile.log'
.
.
In [5]: dolfin.__version__
Out[5]: '1.2.0'
In [6]: dolfin.has_cgal()
Out[6]: True
The complile.log reads thus:
CMake Error at CMakeLists.txt:11 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4")
-- Configuring incomplete, errors occurred!
Thanks in advance!