help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building fem-fenics on Ubuntu


From: Marco Vassallo
Subject: Re: Building fem-fenics on Ubuntu
Date: Wed, 26 Feb 2014 09:01:11 +0000




On Wed, Feb 26, 2014 at 8:51 AM, Daniel Kraft <address@hidden> wrote:
Hi!

On 2014-02-25 16:46, Daniel Kraft wrote:
> fem-fenics 0.0.1 already supports FeniCS 1.3.0, and thus you should be
> able to install it right now
>
> be sure that you are installing the last release and that you are linking
> correctly to dolfin 1.3.0.

I'm not sure about the version, but I'm using the current version from
the hg repository at http://hg.code.sf.net/p/octave/fem-fenics.  Is this
ok or should I download a particular release archive from somewhere?

With

  export CPPFLAGS="-I/usr/include/eigen3 $(mpicxx -showme:compile)"

it configures fine and builds some files, but fails later on with the
attached error message.  The first few errors are these:

mkoctfile -I/usr/include/eigen3 -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/include/openmpi -pthread -c plot_mesh.cc  -o
plot_mesh.o -I.
In file included from plot_mesh.cc:20:0:
Plot_2d.h:68:24: error: conflicting return type specified for ‘virtual
unsigned int plot_2d_finite_element_0::topological_dimension() const’
In file included from /usr/include/dolfin/ale/MeshDisplacement.h:25:0,
                 from /usr/include/dolfin/mesh/Mesh.h:40,
                 from /usr/include/dolfin/mesh/dolfin_mesh.h:11,
                 from /usr/include/dolfin.h:11,
                 from function.h:23,
                 from plot_mesh.cc:18:
/usr/include/ufc.h:127:25: error:   overriding ‘virtual std::size_t
ufc::finite_element::topological_dimension() const’
In file included from plot_mesh.cc:20:0:
Plot_2d.h:74:24: error: conflicting return type specified for ‘virtual
unsigned int plot_2d_finite_element_0::geometric_dimension() const’
In file included from /usr/include/dolfin/ale/MeshDisplacement.h:25:0,
                 from /usr/include/dolfin/mesh/Mesh.h:40,
                 from /usr/include/dolfin/mesh/dolfin_mesh.h:11,
                 from /usr/include/dolfin.h:11,
                 from function.h:23,
                 from plot_mesh.cc:18:

I've installed libdolfin1.3-dev from the FEniCS Ubuntu repository,
presumably that's the correct library -- or not?  Is this an error
related to the interface changes in libdolfin, or is it a completely
different problem with my system?


The problem should be that you are using an older version of ffc, the compiler for the
variational form. If you use dolfin 1.3.0 you should also use ffc 1.3.0 and not ffc 1.2.0
However you can install FeniCs 1.3.0 (which includes dolfin 1.3.0 and ffc 1.3.0)
directly from their repository.

Please check what version of ffc you are using.

Marco
Yours,
Daniel

--
http://www.domob.eu/
OpenPGP: 901C 5216 0537 1D2A F071  5A0E 4D94 6EED 04F7 CF52
Namecoin: id/domob -> https://nameid.org/?name=domob
--
Done:  Arc-Bar-Cav-Hea-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Mon-Pri

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]