I want to configure and compile libmesh for complex number support.

However I get the following error when making libmesh:

In file included from ./include/libmesh/tensor_tools.h:25:0,
                  from src/numerics/numeric_vector.C:33:
./include/libmesh/compare_types.h:65:37: error: template argument 1 is 
invalid
./include/libmesh/compare_types.h:87:40: error: template argument 2 is 
invalid
./include/libmesh/compare_types.h:92:39: error: wrong number of template 
arguments (1, should be 2)
./include/libmesh/compare_types.h:77:8: error: provided for 
'template<class S, class T> struct libMesh::CompareTypes'
./include/libmesh/compare_types.h:116:1: error: wrong number of template 
arguments (1, should be 2)
./include/libmesh/compare_types.h:77:8: error: provided for 
'template<class S, class T> struct libMesh::CompareTypes'
./include/libmesh/compare_types.h:116:1: error: template argument 2 is 
invalid
./include/libmesh/compare_types.h:116:1: error: template argument 2 is 
invalid
./include/libmesh/compare_types.h:116:1: error: wrong number of template 
arguments (1, should be 2)
./include/libmesh/compare_types.h:77:8: error: provided for 
'template<class S, class T> struct libMesh::CompareTypes'
./include/libmesh/compare_types.h:116:1: error: wrong number of template 
arguments (1, should be 2)

.... lots of similar errors ...

src/numerics/numeric_vector.C: In instantiation of 'libMesh::Real 
libMesh::NumericVector<T>::subset_l2_norm(const 
std::__debug::set<unsigned int>&) const [with T = std::complex<double>; 
libMesh::Real = double]':
src/numerics/numeric_vector.C:390:16:   required from here
src/numerics/numeric_vector.C:348:5: error: no match for 'operator+=' in 
'norm += libMesh::TensorTools::norm_sq<std::complex<double> >((& 
v)->libMesh::NumericVector<T>::operator()<std::complex<double> 
 >(((unsigned int)it.__gnu_debug::_Safe_iterator<_Iterator, 
_Sequence>::operator*<std::_Rb_tree_const_iterator<unsigned int>, 
std::__debug::set<unsigned int> >())))'
make[1]: *** [src/numerics/libmesh_dbg_la-numeric_vector.lo] Error 1


I have configured petsc 3.4.2 with

--download-f-blas-lapack=1 
--with-mpi-dir=/home/eftang/dev_software/mpich-install/ 
--with-debugging=0 --with-shared-libraries=1 --download-mumps=1 
--download-umfpack=1 --with-scalar-type=complex --download-scalapack 
--download-ptscotch

and libmesh with

./configure --enable-complex --enable-shared --enable-slepc 
--enable-everything 
--with-eigen-include=/home/eftang/dev_software/eigen-3.1.2 
--prefix=/home/eftang/dev_software/libmesh_install


Any ideas?

Best,
Jens

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to