<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 16, 2018 at 1:45 PM, Danyang Su <span dir="ltr"><<a href="mailto:danyang.su@gmail.com" target="_blank">danyang.su@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt,<br>
<br>
I try to get the global vertex index and cell index from local mesh and run into problem. What I need is local to global index (the original index used in DMPlexCreateFromCellList is best, as user know exactly where the node/cell is) for vertices and cells, which will be used to assign material properties and some parameters to the specified cell/vertex.</blockquote><div><br></div><div>I would recommend doing this before you distribute the mesh. Just set these properties using a DMLabel and it will be automatically distributed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I can use coordinates to select vertex/cell which has already included, but still want to keep this feature. This is pretty straightforward when using structured grid. For the unstructured grid, I just got compiling error saying "You need a ISO C conforming compiler to use the glibc headers"<br></blockquote><div><br></div><div>For any compilation problem, you have to send the configure.log and make.log. However, it appears that you are not using the same compiler that you configured with.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Would you please let me know if I need to change the configuration of PETSc or is there any alternative ways to avoid using DMPlexGetVertexNumbering and DMPlexGetCellNumbering but get local to global index?<br>
<br>
The error information during compilation is shown below, followed by PETSc configuration.<br>
<br>
 -o ../../solver/solver_ddmethod.o ../../solver/solver_ddmethod.F<wbr>90<br>
<br>
In file included from /usr/include/features.h:375:0,<br>
                 from /usr/include/stdio.h:28,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscsys.h:161,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscis.h:8,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscvec.h:10,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscmat.h:7,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petsc/private/dmple<wbr>ximpl.h:5,<br>
                 from ../../solver/solver_ddmethod.F<wbr>90:4122:<br>
/usr/include/x86_64-linux-gnu/<wbr>sys/cdefs.h:30:3: error: #error "You need a ISO C conforming compiler to us\<br>
e the glibc headers"<br>
 # error "You need a ISO C conforming compiler to use the glibc headers"<br>
   ^<br>
In file included from /usr/include/features.h:399:0,<br>
                 from /usr/include/stdio.h:28,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscsys.h:161,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscis.h:8,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscvec.h:10,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petscmat.h:7,<br>
                 from /home/dsu/Soft/PETSc/petsc-3.7<wbr>.5/include/petsc/private/dmple<wbr>ximpl.h:5,<br>
                 from ../../solver/solver_ddmethod.F<wbr>90:4122:<br>
/usr/include/x86_64-linux-gnu/<wbr>gnu/stubs.h:7:0: fatal error: gnu/stubs-32.h: No such file or directory<br>
 # include <gnu/stubs-32.h><br>
 ^<br>
compilation terminated.<br>
make: [../../solver/solver_ddmethod.<wbr>o] Error 1 (ignored)<br>
<br>
<br>
PETSc configuration<br>
--with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mumps --download-scalapack --download-parmetis --download-metis --download-ptscotch --download-fblaslapack --download-mpich --download-hypre --download-superlu_dist --download-hdf5=yes --with-debugging=0 COPTFLAGS="-O3 -march=native -mtune=native" CXXOPTFLAGS="-O3 -march=native -mtune=native" FOPTFLAGS="-O3 -march=native -mtune=native"<br>
<br>
Thanks and regards,<br>
<br>
Danyang<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>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</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>