<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Matt,<div class=""><br class=""></div><div class="">You coded it. This is trying to mesh the boundary…. <br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 20, 2019, at 3:36 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">On Mon, May 20, 2019 at 8:34 AM Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" class="">stefano.zampini@gmail.com</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class="">Matt,<div class=""><br class=""></div><div class="">The code is actually for 2d.</div></div></blockquote><div class=""><br class=""></div><div class="">"<span style="font-family:Helvetica;font-size:12px" class="">No grid generator of dimension 1 registered"</span></div><div class=""><span style="font-family:Helvetica;font-size:12px" class=""><br class=""></span></div><div class=""><span style="font-family:Helvetica;font-size:12px" class=""> Matt</span></div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On May 20, 2019, at 12:54 PM, Matthew Knepley via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank" class="">petsc-users@mcs.anl.gov</a>> wrote:</div><br class="gmail-m_4090083111701318562Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class=""><div dir="ltr" class="">On Sun, May 19, 2019 at 9:22 AM 陳鳴諭 via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank" class="">petsc-users@mcs.anl.gov</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">I have problem with generating simplicies mesh.</div><div class="">I do as the description in DMPlexCreateBoxmesh says, but still meet error.</div></div></div></blockquote><div class=""><br class=""></div><div class="">Stefano is right that you will need a mesh generator for a simplex mesh. However, you are asking for</div><div class="">a 1D mesh for which there are no generators. Since in 1D simplces and tensor cells are the same, </div><div class="">just change it to tensor and it will work.</div><div class=""><br class=""></div><div class=""> Thanks,</div><div class=""><br class=""></div><div class=""> Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class=""><div class="">The following is the error message:</div><div class=""><div class="">[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</div><div class="">[0]PETSC ERROR: Argument out of range</div><div class="">[0]PETSC ERROR: No grid generator of dimension 1 registered</div><div class="">[0]PETSC ERROR: See<span class="gmail-m_4090083111701318562Apple-converted-space"> </span><a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><span class="gmail-m_4090083111701318562Apple-converted-space"> </span>for trouble shooting.</div><div class="">[0]PETSC ERROR: Petsc Development GIT revision: v3.11.1-723-g96d64d1 GIT Date: 2019-05-15 13:23:17 +0000</div><div class="">[0]PETSC ERROR: ./membrane on a arch-linux2-c-debug named simon-System-Product-Name by simon Sun May 19 20:54:54 2019</div><div class="">[0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack</div><div class="">[0]PETSC ERROR: #1 DMPlexGenerate() line 181 in /home/simon/petsc/src/dm/impls/plex/plexgenerate.c</div><div class="">[0]PETSC ERROR: #2 DMPlexCreateBoxMesh_Simplex_Internal() line 536 in /home/simon/petsc/src/dm/impls/plex/plexcreate.c</div><div class="">[0]PETSC ERROR: #3 DMPlexCreateBoxMesh() line 1071 in /home/simon/petsc/src/dm/impls/plex/plexcreate.c</div><div class="">[0]PETSC ERROR: #4 main() line 54 in /home/simon/Downloads/membrane.c</div><div class="">[0]PETSC ERROR: PETSc Option Table entries:</div><div class="">[0]PETSC ERROR: -dm_view</div><div class="">[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank" class="">petsc-maint@mcs.anl.gov</a>----------</div><div class="">application called MPI_Abort(MPI_COMM_WORLD, 63) - process 0</div><div class="">[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=63</div><div class="">:</div><div class="">system msg for write_line failure : Bad file descriptor</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I need some help about this, please.</div><div class=""><br class=""></div><div class="">Simon</div></div></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>--<span class="gmail-m_4090083111701318562Apple-converted-space"> </span><br class=""><div dir="ltr" class="gmail-m_4090083111701318562gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>