<div dir="ltr"><span style="font-size:13px;font-family:arial,sans-serif">I compile ex12 but when I run the program I get this in the terminal.</span><div style="font-size:13px;font-family:arial,sans-serif"><br></div><div style="font-size:13px;font-family:arial,sans-serif">
<div>adoni@Adoni:~/Desktop/petsc-lat/src/snes/examples/tutorials$ make ex12</div><div>/home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/bin/mpicxx -o ex12.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g  -fPIC    -I/home/adoni/Desktop/petsc-lat/include -I/home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/include    /home/adoni/Desktop/petsc-lat/src/snes/examples/tutorials/ex12.c</div>
<div>/home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/bin/mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g  -o ex12 ex12.o -Wl,-rpath,/home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/lib -L/home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/lib  -lpetsc -Wl,-rpath,/home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/lib -lflapack -lfblas -ltriangle -lX11 -lparmetis -lmetis -lpthread -lchaco -lctetgen -lm -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -lmpichf90 -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpichcxx -lstdc++ -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -ldl </div>
<div>/bin/rm -f ex12.o</div><div>adoni@Adoni:~/Desktop/petsc-lat/src/snes/examples/tutorials$ mpiexec -np 2 ./ex12</div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>
[0]PETSC ERROR: Invalid argument!</div><div>[0]PETSC ERROR: The section cell closure size 0 != dual space dimension 1!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[0]PETSC ERROR: Petsc Development GIT revision: unknown  GIT Date: unknown</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: ./ex12 on a arch-linux2-c-debug named Adoni by adoni Mon Nov 11 12:21:49 2013</div>
<div>[0]PETSC ERROR: Libraries linked from /home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/lib</div><div>[0]PETSC ERROR: Configure run at Fri Nov  8 20:03:26 2013</div><div>[0]PETSC ERROR: Configure options --with-clanguage=c++ --with-shared-libraries=1 --download-f-blas-lapack --download-mpich --download-boost --download-triangle --download-ctetgen --download-chaco --download-metis --download-parmetis</div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: DMPlexProjectFunctionLocal() line 207 in src/dm/impls/plex/plexfem.c</div><div>[0]PETSC ERROR: DMPlexProjectFunction() line 258 in src/dm/impls/plex/plexfem.c</div>
<div>[0]PETSC ERROR: main() line 686 in /home/adoni/Desktop/petsc-lat/src/snes/examples/tutorials/ex12.c</div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[0]PETSC ERROR: Invalid argument!</div>
<div>[0]PETSC ERROR: The section cell closure size 0 != dual space dimension 1!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Petsc Development GIT revision: unknown  GIT Date: unknown</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: ./ex12 on a arch-linux2-c-debug named Adoni by adoni Mon Nov 11 12:21:49 2013</div><div>[0]PETSC ERROR: Libraries linked from /home/adoni/Desktop/petsc-lat/arch-linux2-c-debug/lib</div>
<div>[0]PETSC ERROR: Configure run at Fri Nov  8 20:03:26 2013</div><div>[0]PETSC ERROR: Configure options --with-clanguage=c++ --with-shared-libraries=1 --download-f-blas-lapack --download-mpich --download-boost --download-triangle --download-ctetgen --download-chaco --download-metis --download-parmetis</div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: DMPlexProjectFunctionLocal() line 207 in src/dm/impls/plex/plexfem.c</div><div>[0]PETSC ERROR: DMPlexProjectFunction() line 258 in src/dm/impls/plex/plexfem.c</div>
<div>[0]PETSC ERROR: main() line 686 in /home/adoni/Desktop/petsc-lat/src/snes/examples/tutorials/ex12.c</div><div>application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0</div><div>[unset]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0</div>
<div>application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0</div><div>[unset]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 62) - process 0</div></div><div style="font-size:13px;font-family:arial,sans-serif">
<br></div><div style="font-size:13px;font-family:arial,sans-serif">This occurs for all process counts.</div><div style="font-size:13px;font-family:arial,sans-serif"><br></div><div style="font-size:13px;font-family:arial,sans-serif">
Thanks.</div><div style="font-size:13px;font-family:arial,sans-serif"><br></div><div style="font-size:13px;font-family:arial,sans-serif">Adoni</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 November 2013 12:19, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</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"><div class="im">On Mon, Nov 11, 2013 at 6:10 AM, Anthony Vergottis <span dir="ltr"><<a href="mailto:a.vergottis@ucl.ac.uk" target="_blank">a.vergottis@ucl.ac.uk</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear All,<div><br></div><div>I am trying to find a good example within PETSc that examples with some detail the use of DM objects within a parallel and FEM framework. I have looked at most of the example and have not found anything like this. Is there any other material available on the subject from any other source or maybe I missed something within the PETSc full download file?</div>

</div></blockquote><div><br></div></div><div>Did you look at SNES ex12? Is it not understandable?</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>Thanks in advance.</div><div><br></div><div>Regards,</div><div>Adonis</div></div>
</blockquote></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>

-- Norbert Wiener
</font></span></div></div>
</blockquote></div><br></div>