<div dir="ltr">Sorry forgot to attach the complete error message:<div><br></div><div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[0]PETSC ERROR: Invalid argument!</div><div>[0]PETSC ERROR: Wrong type of object: Parameter # 1!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013 </div><div>[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div>[0]PETSC ERROR: See docs/index.html for manual pages.</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: /home/hsahasra/NEMO5/prototype/examples/Macroscopic/FEM/nemo on a linux named <a href="http://carter-fe02.rcac.purdue.edu" target="_blank">carter-fe02.rcac.purdue.edu</a> by hsahasra Mon Oct 20 15:30:43 2014</div><div>[0]PETSC ERROR: Libraries linked from /home/hsahasra/NEMO5/libs/petsc/build-real/linux/lib</div><div>[0]PETSC ERROR: Configure run at Mon Oct 20 11:41:06 2014</div><div>[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/<a href="http://4.1.0.030/bin64/mpiicc" target="_blank">4.1.0.030/bin64/mpiicc</a> --with-fc=/apps/rhel6/intel/impi/<a href="http://4.1.0.030/bin64/mpiifort" target="_blank">4.1.0.030/bin64/mpiifort</a> --with-cxx=/apps/rhel6/intel/impi/<a href="http://4.1.0.030/bin64/mpiicpc" target="_blank">4.1.0.030/bin64/mpiicpc</a> 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</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: MatGetType() line 100 in /home/hsahasra/NEMO5/libs/petsc/build-real/src/mat/interface/matreg.c</div></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 20, 2014 at 4:07 PM, Harshad Sahasrabudhe <span dir="ltr"><<a href="mailto:hsahasra@purdue.edu" target="_blank">hsahasra@purdue.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I get the following error when I call MatGetType even though I'm calling the function with a Mat object.</div><div><br></div><div><div>[0]PETSC ERROR: Invalid argument!</div><div>[0]PETSC ERROR: Wrong type of object: Parameter # 1!</div></div><div><br></div><div>What could be going wrong?</div><div><br></div><div>Thanks,</div><div>Harshad</div></div>
</blockquote></div><br></div></div>