Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread Jens Lohne Eftang
Ok, makes sense. Thanks On 08/16/2013 11:31 AM, Jed Brown wrote: > John Peterson writes: >> I think --with-clanguage=cxx causes the complex type in PETSc to be >> std::complex, while without it, the complex type is something else >> C-based (not sure exactly what that's called). > C99 complex. S

Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread John Peterson
On Fri, Aug 16, 2013 at 8:51 AM, Jens Lohne Eftang wrote: > Yes, so this is embarrassing: > > Prior to my first post I configured libmesh _and_ petsc for complex but > did not use --with-clanguage=cxx. When recompiling I forgot > --enable-complex for libmesh, so you are right. > > So the conclusio

Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread Jens Lohne Eftang
Yes, so this is embarrassing: Prior to my first post I configured libmesh _and_ petsc for complex but did not use --with-clanguage=cxx. When recompiling I forgot --enable-complex for libmesh, so you are right. So the conclusion was that --with-clanguage=cxx for petsc did the trick. Why do I ne

Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread Roy Stogner
The error here actually seems to suggest that PETSc is being compiled in complex mode: >> 'PetscScalar* {aka std::complex*}' but libMesh is not: >> src/numerics/dense_matrix_blas_lapack.C:174: a line number wrapped in #if (LIBMESH_HAVE_PETSC && LIBMESH_USE_REAL_NUMBERS) --- Roy -

Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread Jens Lohne Eftang
Well I've used --with-scalar-type=complex in the configuration, which I thought was all I needed ... On 08/16/2013 09:59 AM, Paul T. Bauman wrote: > Are you sure you've compiled PETSc in complex mode? > > > On Fri, Aug 16, 2013 at 8:54 AM, Jens Lohne Eftang > wrote: >

Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread Paul T. Bauman
Are you sure you've compiled PETSc in complex mode? On Fri, Aug 16, 2013 at 8:54 AM, Jens Lohne Eftang wrote: > I'm using gcc 4.7 > > I tried --with-clanguage=cxx for PETSc, but that did not resolve > everything. > > Now I get another error message during libmesh compilation: > > > CXX src/

Re: [Libmesh-users] compilation for complex numbers

2013-08-16 Thread Jens Lohne Eftang
I'm using gcc 4.7 I tried --with-clanguage=cxx for PETSc, but that did not resolve everything. Now I get another error message during libmesh compilation: CXX src/numerics/libmesh_dbg_la-dense_matrix_blas_lapack.lo src/numerics/dense_matrix_blas_lapack.C: In instantiation of 'void libMes

Re: [Libmesh-users] compilation for complex numbers

2013-08-15 Thread David Knezevic
I use " --with-clanguage=cxx" in the PETSc configuration. Can you try adding that? David On 08/16/2013 03:24 AM, Jens Lohne Eftang wrote: > I want to configure and compile libmesh for complex number support. > > However I get the following error when making libmesh: > > In file included from ./

Re: [Libmesh-users] compilation for complex numbers

2013-08-15 Thread Roy Stogner
On Thu, 15 Aug 2013, Jens Lohne Eftang wrote: > 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:

Re: [Libmesh-users] compilation for complex numbers

2013-08-15 Thread Jens Lohne Eftang
Oh, and this was using the git head On 08/15/2013 09:24 PM, Jens Lohne Eftang wrote: > 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, >

[Libmesh-users] compilation for complex numbers

2013-08-15 Thread Jens Lohne Eftang
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