<div dir="ltr"><div class="gmail_extra">On Tue, Jan 15, 2013 at 4:43 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":93k">> It works for me.<br>
<br>
   Cause you are running an install with Elemental, without elemental install it goes bad.<br></div></blockquote><div><br></div><div style>Isn't that why the elemental tests are in TESTEXAMPLES_ELEMENTAL? The other runs fine for me without elemental, e.g.,</div>
<div style><br></div><div style><div>$ make PETSC_ARCH=mpich-clang ex104 runex104</div><div>/home/jed/usr/mpich-clang/bin/mpicc -o ex104.o -c -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -fno-inline -O0   -I/home/jed/petsc/include -I/home/jed/petsc/mpich-clang/include -I/usr/include -I/usr/cbind/include -I/usr/forbind/include -I/home/jed/usr/mpich-clang/include    -D__INSDIR__=src/mat/examples/tests/ ex104.c</div>
<div>/home/jed/usr/mpich-clang/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -fno-inline -O0  -o ex104 ex104.o -Wl,-rpath,/home/jed/petsc/mpich-clang/lib -L/home/jed/petsc/mpich-clang/lib  -lpetsc -Wl,-rpath,/home/jed/petsc/mpich-clang/lib -lsundials_cvode -lsundials_nvecserial -lsundials_nvecparallel -llapack -lblas -ltriangle -lX11 -lpthread -lchaco -Wl,-rpath,/usr/lib -L/usr/lib -lexoIIv2for -lexoIIv2c -lnetcdf -lm -Wl,-rpath,/home/jed/usr/mpich-clang/lib -L/home/jed/usr/mpich-clang/lib -Wl,-rpath,/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2 -lmpichcxx -lstdc++ -ldl -lpmpich -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -ldl </div>
<div>/bin/rm -f ex104.o</div><div>$</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div id=":93k">
<br>
  /* Test MatTransposeMatMult() */<br>
  ierr = PetscObjectTypeCompare((PetscObject)A,MATELEMENTAL,&iselemental);CHKERRQ(ierr);<br>
  if (!iselemental){<br>
    ierr = MatTransposeMatMult(A,A,MAT_INITIAL_MATRIX,fill,&D);CHKERRQ(ierr); /* D = A^T*A */<br>
    ierr = MatEqual(C,D,&equal);CHKERRQ(ierr);</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div id=":93k">
    if (!equal) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_WRONGSTATE,"C != D");<br>
    ierr = MatDestroy(&D);CHKERRQ(ierr);</div></blockquote></div><br><br></div></div>