On Tue, 22 Mar 2011, Sebastian Steiger wrote:
> Hello Roy > > I am currently trying to do some testing of new routines with the PETSc > developers. My application uses PETSc+SLEPc+libmesh, and for that matter > I need to switch to petsc-dev/slepc-dev/libmesh-dev. I managed to > compile PETSc/SLEPc, but now I have a problem with the libmesh file > > src/numerics/petsc_matrix.C > > I'm posting the error below: > > Compiling C++ (in optimized mode) src/numerics/petsc_matrix.C... > src/numerics/petsc_matrix.C: In member function 'virtual void > libMesh::PetscMatrix<T>::_get_submatrix(libMesh::SparseMatrix<T>&, const > std::vector<unsigned int, std::allocator<unsigned int> >&, const > std::vector<unsigned int, std::allocator<unsigned int> >&, bool) const': > src/numerics/petsc_matrix.C:489: error: there are no arguments to > 'ISCreateLibMesh' that depend on a template parameter, so a declaration > of 'ISCreateLibMesh' must be available > src/numerics/petsc_matrix.C:489: note: (if you use '-fpermissive', G++ > will accept your code, but allowing the use of an undeclared name is > deprecated) > src/numerics/petsc_matrix.C:495: error: there are no arguments to > 'ISCreateLibMesh' that depend on a template parameter, so a declaration > of 'ISCreateLibMesh' must be available > /ccs/home/steiger/src/app-nemo/NEMO/libs/petsc-barry/include/petscmat.h: > In member function 'void > libMesh::PetscMatrix<T>::zero_rows(std::vector<int, std::allocator<int> >> &, T) [with T = double]': > src/numerics/petsc_matrix.C:588: instantiated from here > /ccs/home/steiger/src/app-nemo/NEMO/libs/petsc-barry/include/petscmat.h:557: > error: too few arguments to function 'PetscErrorCode > MatZeroRows(_p_Mat*, PetscInt, const PetscInt*, PetscScalar, _p_Vec*, > _p_Vec*)' > src/numerics/petsc_matrix.C:202: error: at this point in file > /ccs/home/steiger/src/app-nemo/NEMO/libs/petsc-barry/include/petscmat.h:557: > error: too few arguments to function 'PetscErrorCode > MatZeroRows(_p_Mat*, PetscInt, const PetscInt*, PetscScalar, _p_Vec*, > _p_Vec*)' > src/numerics/petsc_matrix.C:204: error: at this point in file > src/numerics/petsc_matrix.C: In member function 'void > libMesh::PetscMatrix<T>::_get_submatrix(libMesh::SparseMatrix<T>&, const > std::vector<unsigned int, std::allocator<unsigned int> >&, const > std::vector<unsigned int, std::allocator<unsigned int> >&, bool) const > [with T = double]': > src/numerics/petsc_matrix.C:588: instantiated from here > src/numerics/petsc_matrix.C:485: error: 'ISCreateLibMesh' was not > declared in this scope > make[1]: *** [src/numerics/petsc_matrix.x86_64-unknown-linux-gnu.opt.o] > Error 1 > > Would you mind taking a look at this? > > Best > Sebastian > ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
