[Please keep fenics-support in Cc] On Thu, May 29, 2014 at 6:13 PM, Christopher DeMars <[email protected]> wrote: > I have been beating my head against this problem for the last 2+ days. > > I'll start with the ppa error. I will send the other errors along later > since the build fails at the very end of a long compile. > > First, my environment: > > $ lsb_release -a > LSB Version: > core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch > Distributor ID: Ubuntu > Description: Ubuntu 14.04 LTS > Release: 14.04 > Codename: trusty > > > > Next, how I installed fenics a couple of minutes ago: > > sudo ppa-purge ppa:fenics-packages/fenics-dev > sudo ppa-purge ppa:fenics-packages/fenics > sudo apt-get autoremove > sudo add-apt-repository ppa:fenics-packages/fenics > sudo apt-get update > sudo apt-get dist-upgrade > sudo apt-get install fenics > > > > Lastly, the error: > > $ ipython > Python 2.7.6 (default, Mar 22 2014, 22:59:56) > Type "copyright", "credits" or "license" for more information. > > In [1]: run Lshape > Set the environment variable CBCCFD to the location of /cbcpdesys/cbc/cfd > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in > execfile(fname, *where) > 202 else: > 203 filename = fname > --> 204 __builtin__.execfile(filename, *where) > > /home/paradox/SparkleShare/sediment/sed3d/software/cbcpdesys/cbc/cfd/problems/Lshape.py > in <module>() > 102 #solver = icns.NSFullySegregated(problem, solver_parameters) > 103 #solver = icns.NSCoupled(problem, solver_parameters) > --> 104 solver = icns.NSSegregated(problem, solver_parameters) > 105 solver.pdesubsystems['u'].prm['monitor_convergence'] = True > 106 solver.pdesubsystems['p'].prm['monitor_convergence'] = True > > /usr/local/lib/python2.7/dist-packages/cbc/cfd/icns/NSSegregated.py in > __init__(self, problem, parameters) > 11 NSSolver.__init__(self, system_composition=[['u'], ['p']], > 12 problem=problem, > ---> 13 parameters=parameters) > 14 > 15 def define(self): > > /usr/local/lib/python2.7/dist-packages/cbc/cfd/icns/NSSolver.py in > __init__(self, system_composition, problem, parameters) > 71 > 72 def __init__(self, system_composition, problem, parameters): > ---> 73 PDESystem.__init__(self, system_composition, problem, > parameters) > 74 self.correction = None # For Reynolds stress models > 75 self.resultfile = {} # Files used to store the > solution > > /usr/local/lib/python2.7/dist-packages/cbc/pdesys/PDESystem.py in > __init__(self, system_composition, problem, parameters) > 106 > 107 # Create all FunctionSpaces, Functions, Test-TrialFunctions > etc. > --> 108 self.setup() > 109 > 110 def setup(self): > > /usr/local/lib/python2.7/dist-packages/cbc/cfd/icns/NSSolver.py in > setup(self) > 76 > 77 def setup(self): > ---> 78 PDESystem.setup(self) > 79 self.problem.NS_solver = self # rename, same as > problem.pdesystems['Navier-Stokes'] > 80 # Create some short forms > > /usr/local/lib/python2.7/dist-packages/cbc/pdesys/PDESystem.py in > setup(self) > 119 > 120 self.define_function_spaces(self.mesh, self.prm['degree'], > --> 121 self.prm['space'], self.prm['family'], > symmetry) > 122 self.setup_subsystems() > 123 if self.prm['time_integration'] == 'Steady': > > /usr/local/lib/python2.7/dist-packages/cbc/pdesys/PDESystem.py in > define_function_spaces(self, mesh, degree, space, family, symmetry) > 134 """Define functionspaces for names and system_names""" > 135 V = self.V = dict((name, space[name](mesh, family[name], > degree[name], > --> 136 **symmetry[name])) for name in self.names > + ['dq']) > 137 > 138 # Add function space for compound functions for the sub > systems > > /usr/local/lib/python2.7/dist-packages/cbc/pdesys/PDESystem.py in > <genexpr>((name,)) > 134 """Define functionspaces for names and system_names""" > 135 V = self.V = dict((name, space[name](mesh, family[name], > degree[name], > --> 136 **symmetry[name])) for name in self.names > + ['dq']) > 137 > 138 # Add function space for compound functions for the sub > systems > > /usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.pyc in > __init__(self, mesh, family, degree, dim, form_degree, constrained_domain, > restriction) > 560 > 561 # Initialize base class > --> 562 FunctionSpaceBase.__init__(self, mesh, element, > constrained_domain=constrained_domain) > 563 > 564 class TensorFunctionSpace(FunctionSpaceBase): > > /usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.pyc in > __init__(self, mesh, element, constrained_domain) > 82 > 83 # JIT-compile element to get ufc_element and ufc_dofmap > ---> 84 ufc_element, ufc_dofmap = jit(self._ufl_element) > 85 > 86 # Instantiate DOLFIN FiniteElement and DofMap > > /usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.pyc in > mpi_jit(*args, **kwargs) > 58 # Just call JIT compiler when running in serial > 59 if MPI.num_processes() == 1: > ---> 60 return local_jit(*args, **kwargs) > 61 > 62 # Compile first on process 0 > > /usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.pyc in jit(form, > form_compiler_parameters, common_cell) > 120 raise RuntimeError, "Form compiler must implement the jit > function." > 121 > --> 122 return jit_compile(form, parameters=p, common_cell=common_cell) > > > TypeError: jit() got an unexpected keyword argument 'common_cell'
I see that you are running the Lshape.py from the CBC.PDESys package. Are you using the development version of CBC.PDESYS? I tried it now in a clean Ubuntu 14.04 machine and it worked fine. Here is what I did: sudo add-apt-repository -y ppa:fenics-packages/fenics sudo apt-get update sudo apt-get -y install fenics bzr branch lp:cbcpdesys cd cbcpdesys export PYTHONPATH=$PWD:$PYTHONPATH cd cbc export PYTHONPATH=$PWD:$PYTHONPATH cd cfd/problems python Lshape.py Maybe you have some files in /usr/local that are interfering with the FEniCS installation from the FEniCS PPA? Johannes _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
