Hi,
I am getting the following error while compiling the latest from git. I
am using Appleās clang++ 5.0 on OS X 10.9.
Has anyone else seen this?
Thanks,
Manav
CXX src/solvers/libmesh_dbg_la-petsc_dm_nonlinear_solver.lo
CXX src/solvers/libmesh_dbg_la-petsc_linear_solver.lo
src/solvers/petsc_diff_solver.C:65:25: error: no matching constructor for
initialization of 'PetscVector<Number>'
PetscVector<Number> delta_u(petsc_delta_u);
^ ~~~~~~~~~~~~~
./include/libmesh/petsc_vector.h:61:7: note: candidate constructor (the
implicit copy constructor) not viable: cannot convert argument of
incomplete type 'Vec' (aka '_p_Vec *') to 'const
libMesh::PetscVector<double>'
class PetscVector : public NumericVector<T>
^
./include/libmesh/petsc_vector.h:69:3: note: candidate constructor not
viable: cannot convert argument of incomplete type 'Vec' (aka '_p_Vec *')
to 'const Parallel::Communicator'
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:76:3: note: candidate constructor not
viable: requires at least 2 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:84:3: note: candidate constructor not
viable: requires at least 3 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:94:3: note: candidate constructor not
viable: requires at least 4 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:107:3: note: candidate constructor not
viable: requires 2 arguments, but 1 was provided
PetscVector(Vec v,
^
src/solvers/petsc_diff_solver.C:71:25: error: no matching constructor for
initialization of 'PetscVector<Number>'
PetscVector<Number> u(petsc_u);
^ ~~~~~~~
./include/libmesh/petsc_vector.h:61:7: note: candidate constructor (the
implicit copy constructor) not viable: cannot convert argument of
incomplete type 'Vec' (aka '_p_Vec *') to 'const
libMesh::PetscVector<double>'
class PetscVector : public NumericVector<T>
^
./include/libmesh/petsc_vector.h:69:3: note: candidate constructor not
viable: cannot convert argument of incomplete type 'Vec' (aka '_p_Vec *')
to 'const Parallel::Communicator'
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:76:3: note: candidate constructor not
viable: requires at least 2 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:84:3: note: candidate constructor not
viable: requires at least 3 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:94:3: note: candidate constructor not
viable: requires at least 4 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:107:3: note: candidate constructor not
viable: requires 2 arguments, but 1 was provided
PetscVector(Vec v,
^
src/solvers/petsc_diff_solver.C:77:25: error: no matching constructor for
initialization of 'PetscVector<Number>'
PetscVector<Number> res(petsc_res);
^ ~~~~~~~~~
./include/libmesh/petsc_vector.h:61:7: note: candidate constructor (the
implicit copy constructor) not viable: cannot convert argument of
incomplete type 'Vec' (aka '_p_Vec *') to 'const
libMesh::PetscVector<double>'
class PetscVector : public NumericVector<T>
^
./include/libmesh/petsc_vector.h:69:3: note: candidate constructor not
viable: cannot convert argument of incomplete type 'Vec' (aka '_p_Vec *')
to 'const Parallel::Communicator'
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:76:3: note: candidate constructor not
viable: requires at least 2 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:84:3: note: candidate constructor not
viable: requires at least 3 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:94:3: note: candidate constructor not
viable: requires at least 4 arguments, but 1 was provided
PetscVector (const Parallel::Communicator &comm,
^
./include/libmesh/petsc_vector.h:107:3: note: candidate constructor not
viable: requires 2 arguments, but 1 was provided
PetscVector(Vec v,
^
3 errors generated.
make[1]: *** [src/solvers/libmesh_dbg_la-petsc_diff_solver.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all-recursive] Error 1
Air:libmesh manav$ less .git/config
Air:libmesh manav$ cp config_options ~/libmesh/
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users