On Wed, Apr 5, 2017 at 8:23 AM, Jed Brown <[email protected]> wrote:

> John Peterson <[email protected]> writes:
>
> > On Wed, Apr 5, 2017 at 2:39 AM, Vasileios Vavourakis <[email protected]>
> > wrote:
> >
> >> dear all,
> >>
> >> after pulling the newest version of libmesh (commit
> >> dbcd57f5f718a088a19b9be38f162b997ec8f97c) and configuring the library:
> >>
> >> START ==========================
> >> ./configure --enable-everything --with-methods="opt" \
> >> --enable-petsc PETSC_DIR=/Users/vasvav/Programs/petsc
> >> PETSC_ARCH=arch-darwin-c-opt --with-metis=PETSc \
> >> --with-glpk-include=/usr/local/Cellar/glpk/4.61/include
> >> --with-glpk-lib=/usr/local/Cellar/glpk/4.61/lib \
> >> --enable-netcdf --enable-netcdf-4 --enable-exodus \
> >> --disable-shared --disable-complex --disable-1D-only --disable-2D-only
> >> --disable-openmp --disable-eigen --disable-ifem --disable-pfem
> >> --disable-slepc --disable-trilinos --disable-tecio --disable-tecplot
> >> --disable-tetgen --disable-triangle --disable-qhull --disable-tbb
> >> --disable-pthreads --disable-cppthreads --disable-openmp \
> >> --prefix=/Users/vasvav/Programs/installed/libmesh-1.2.0-opt
> >> END =============================
> >>
> >> I receive the following error:
> >>
> >> START ==========================
> >> ...
> >>   CXX      src/numerics/libmesh_opt_la-numeric_vector.lo
> >>   CXX      src/numerics/libmesh_opt_la-petsc_matrix.lo
> >> /numerics/petsc_matrix.C:811:10: error: use of undeclared identifier
> >> 'MatGetSubMatrix'
> >>   ierr = MatGetSubMatrix(_mat,
> >>          ^
> >> src/numerics/petsc_matrix.C:1131:16: note: in instantiation of member
> >> function 'libMesh::PetscMatrix<double>::_get_submatrix' requested here
> >> template class PetscMatrix<Number>;
> >>                ^
> >> 1 error generated.
> >> make[1]: *** [src/numerics/libmesh_opt_la-petsc_matrix.lo] Error 1
> >> make: *** [all-recursive] Error 1
> >> END =============================
> >>
> >> can someone please give it a look? many thanks (:
> >>
> >
> > Pretty strange error, I do not believe this code has changed in quite
> some
> > time.
> >
> > What version of PETSc are you using? Perhaps they removed or renamed this
> > function in some newer version... I will have a look at the PETSc git
> repo.
>
> This is the relevant change.
>
> https://bitbucket.org/petsc/petsc/commits/e5afe51eb893b84db4c1ba433bd470
> 71c0e5af81


Thanks for the info Jed.

Vasileios, the quickest fix for you is probably to change that line from
MatGetSubMatrix -> MatCreateSubMatrix. The argument list is unchanged I
believe.

Please let us know if you run into any other issues with using petsc-dev.

-- 
John
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to