What version of libmesh are you using?  Try grabbing the latest from github, 
0.9.3 is really old.

> On Sep 11, 2014, at 4:38 AM, Eduardo Hernandez <eduardo.hernan...@csic.es> 
> wrote:
> 
> 
> Hello, 
> 
> I am struggling with the installation of libmesh on a mac running mavericks 
> with clang/clang++. I successfully installed PETSc 3.5.2 and SLEPc 3.5.1. I 
> also installed open-mpi and vtk 5.10.1 (these last two via homebrew, and mpi 
> as a pre-requisite to PETSc and SLEPc). My configure options for libmesh are 
> as follows:
> 
> configure --prefix=/usr/local 
> --with-vtk-include=/usr/local/opt/vtk5/include/vtk-5.10 
> --with-vtk-lib=/usr/local/opt/lib/vtk-5.10/ --with-cc=mpicc --with-cxx=mpic++ 
> --enable-slepc --enable-petsc --enable-vtk --libdir=/usr/local 
> --includedir=/usr/local
> 
> When I type make I get the following compilation errors:
> 
>  CXX      src/numerics/libmesh_dbg_la-petsc_preconditioner.lo
> src/numerics/petsc_preconditioner.C:86:14: error: no matching function for 
> call to 'PCSetOperators'
>  int ierr = PCSetOperators(_pc,_mat,_mat,SAME_NONZERO_PATTERN);
>             ^~~~~~~~~~~~~~
> src/numerics/petsc_preconditioner.C:301:16: note: in instantiation of member 
> function
>      'libMesh::PetscPreconditioner<double>::init' requested here
> template class PetscPreconditioner<Number>;
>               ^
> /usr/local/include/petscpc.h:148:29: note: candidate function not viable: 
> requires 3 arguments, but 4 were provided
> PETSC_EXTERN PetscErrorCode PCSetOperators(PC,Mat,Mat);
>                            ^
> 1 error generated.
> make[1]: *** [src/numerics/libmesh_dbg_la-petsc_preconditioner.lo] Error 1
> make: *** [all-recursive] Error 1
> 
> I am at a loss as to how to solve this, and any help would be much 
> appreciated. 
> 
> A secondary problem is that I cannot get the configure stage to recognise 
> that vtk is available; in spite of the fact that I instruct the configure 
> command that it should enable vtk, and that I give it its proper include and 
> library directory locations, for some reason, configure comes back with the 
> following output:
> 
>  mpi.............................. : yes
>  nanoflann........................ : yes
>  nemesis.......................... : yes
>     version....................... : v5.22
>  netcdf........................... : yes
>     version....................... : 4
>  openmp........................... : no
>  parmetis......................... : yes
>  petsc............................ : yes
>     version....................... : 3.5.2
>  pthreads......................... : yes
>  sfcurves......................... : yes
>  slepc............................ : yes
>  tbb.............................. : no
>  c++ threads...................... : no
>  c++ rtti ........................ : yes
>  tecio............................ : no
>  tecplot...(vendor binaries)...... : no
>  tetgen........................... : yes
>  triangle......................... : yes
>  trilinos......................... : no
>  vtk.............................. : no
> 
> where you can see that vtk is finally not enabled. I saw in the mail list 
> that there was a problem with getting libmesh talking to version 6 of vtk, 
> and that is why I installed version 5. This is a secondary issue, but again, 
> any help would be much appreciated. 
> 
> Thanks in advance,
> 
> Eduardo
> 
> 
> Eduardo R. Hernández
> Instituto de Ciencia de Materiales de Madrid (ICMM)
> Consejo Superior de Investigaciones Científicas
> Campus de Cantoblanco
> 28049 Madrid
> 
> tel.: +34 91 3348994
> email: eduardo.hernan...@csic.es
> http://www.icmm.csic.es/ehernandez/Site/Home.html
> 
> 
> 
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Libmesh-users mailing list
> Libmesh-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libmesh-users

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to