← Back to team overview

dolfin team mailing list archive

Re: boost - enable experimental

 



Johan Hoffman wrote:
Garth,

I find the following in my /usr/include/boost/numeric/ublas/vector_of_vector.hpp

#ifndef BOOST_UBLAS_ENABLE_EXPERIMENTAL
#error class generalized_vector_of_vector is experiment and currently does
not work
#endif

Maybe this explains why I'm having problems compiling the current dolfin
version. It appears that boost is set on 'experimental', judging from the
output from the compilation (below).


In earlier versions of uBlas vector_of_vector was experimental. In the latest version it is no longer experimental. Take a look in

   /usr/include/boost/version.hpp

to see which version of Boost you're using. In my file, I see

   #define BOOST_LIB_VERSION "1_33_1"

You can set BOOST_UBLAS_ENABLE_EXPERIMENTAL at compile time, but I wouldn't recommend it.

Garth


Is this set explicitly by us in dolfin somewhere, or do you know how else
I can change it?

/Johan


In file included from ../../../src/kernel/la/dolfin/ublas.h:12,
                 from ../../../src/kernel/la/dolfin/uBlasMatrix.h:18,
                 from ../../../src/kernel/la/dolfin/uBlasDenseMatrix.h:10,
                 from ../../../src/kernel/la/dolfin/DenseMatrix.h:12,
                 from ./dolfin/FEM.h:18,
                 from FEM.cpp:10:
/usr/include/boost/numeric/ublas/vector_of_vector.hpp:17:2: #error class
generalized_vector_of_vector is experiment and currently does not work
In file included from ../../../src/kernel/la/dolfin/ublas.h:12,
                 from ../../../src/kernel/la/dolfin/uBlasMatrix.h:18,
                 from ../../../src/kernel/la/dolfin/uBlasDenseMatrix.h:10,
                 from ../../../src/kernel/la/dolfin/DenseMatrix.h:12,
                 from ./dolfin/FEM.h:18,
                 from FEM.cpp:10:
/usr/include/boost/numeric/ublas/vector_of_vector.hpp:1203: error:
declaration of `class T'
/usr/include/boost/numeric/ublas/vector_of_vector.hpp:32: error:  shadows
template parm `class T'
/usr/include/boost/numeric/ublas/vector_of_vector.hpp:1203: error:
declaration of `class F'
...



_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev



Follow ups

References