Indeed, very strange error.
To answer your question about PETSc version; I employed the following
commit:
 fbfa34dc2ebfea5502b6dc1528c107aa61ca96c8


On 5 April 2017 at 15:17, John Peterson <[email protected]> wrote:

>
>
> 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.
>
> --
> 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