[petsc-users] Invalid MAT_CLASSID

Harshad Sahasrabudhe hsahasra at purdue.edu
Mon Oct 20 15:09:31 CDT 2014


Sorry forgot to attach the complete error message:

[0]PETSC ERROR: --------------------- Error Message
------------------------------------
[0]PETSC ERROR: Invalid argument!
[0]PETSC ERROR: Wrong type of object: Parameter # 1!
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR:
/home/hsahasra/NEMO5/prototype/examples/Macroscopic/FEM/nemo on a linux
named carter-fe02.rcac.purdue.edu by hsahasra Mon Oct 20 15:30:43 2014
[0]PETSC ERROR: Libraries linked from
/home/hsahasra/NEMO5/libs/petsc/build-real/linux/lib
[0]PETSC ERROR: Configure run at Mon Oct 20 11:41:06 2014
[0]PETSC ERROR: Configure options
--with-cmake=/apps/rhel5/cmake-2.8.0/bin/cmake --with-x=0 --with-hdf5
--with-hdf5-dir=/apps/rhel6/petsc-3.4.2/impi-4.1.0.030_intel-13.1.1.163/externalpackages/hdf5-1.8.10-patch1/src/
--with-scalar-type=real --with-single-library=0 --with-pic=1
--with-shared-libraries=0 --with-clanguage=C++ --with-fortran
--with-debugging=1 --with-cc=/apps/rhel6/intel/impi/4.1.0.030/bin64/mpiicc
--with-fc=/apps/rhel6/intel/impi/4.1.0.030/bin64/mpiifort
--with-cxx=/apps/rhel6/intel/impi/4.1.0.030/bin64/mpiicpc COPTFLAGS=-O3
CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 --download-parmetis=1 --download-metis=1
--download-superlu --download-superlu_dist=1 --download-mumps=1
--download-scalapack=1 --download-blacs=1
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: MatGetType() line 100 in
/home/hsahasra/NEMO5/libs/petsc/build-real/src/mat/interface/matreg.c


On Mon, Oct 20, 2014 at 4:07 PM, Harshad Sahasrabudhe <hsahasra at purdue.edu>
wrote:

> Hi,
>
> I get the following error when I call MatGetType even though I'm calling
> the function with a Mat object.
>
> [0]PETSC ERROR: Invalid argument!
> [0]PETSC ERROR: Wrong type of object: Parameter # 1!
>
> What could be going wrong?
>
> Thanks,
> Harshad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141020/3fb62fb3/attachment.html>


More information about the petsc-users mailing list