[petsc-dev] example broken for a while src/mat/examples/tests/ex104.c

Jed Brown jedbrown at mcs.anl.gov
Tue Jan 15 17:03:47 CST 2013


On Tue, Jan 15, 2013 at 4:43 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

> > It works for me.
>
>    Cause you are running an install with Elemental, without elemental
> install it goes bad.
>

Isn't that why the elemental tests are in TESTEXAMPLES_ELEMENTAL? The other
runs fine for me without elemental, e.g.,

$ make PETSC_ARCH=mpich-clang ex104 runex104
/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
/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
/bin/rm -f ex104.o
$


>
>   /* Test MatTransposeMatMult() */
>   ierr =
> PetscObjectTypeCompare((PetscObject)A,MATELEMENTAL,&iselemental);CHKERRQ(ierr);
>   if (!iselemental){
>     ierr =
> MatTransposeMatMult(A,A,MAT_INITIAL_MATRIX,fill,&D);CHKERRQ(ierr); /* D =
> A^T*A */
>     ierr = MatEqual(C,D,&equal);CHKERRQ(ierr);
>
    if (!equal) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_WRONGSTATE,"C != D");
>     ierr = MatDestroy(&D);CHKERRQ(ierr);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130115/a225bbc3/attachment.html>


More information about the petsc-dev mailing list