[petsc-users] problem with generating simplicies mesh

Matthew Knepley knepley at gmail.com
Mon May 20 05:54:10 CDT 2019


On Sun, May 19, 2019 at 9:22 AM 陳鳴諭 via petsc-users <petsc-users at mcs.anl.gov>
wrote:

> I have problem with generating simplicies mesh.
> I do as the description in DMPlexCreateBoxmesh says, but still meet error.
>

Stefano is right that you will need a mesh generator for a simplex mesh.
However, you are asking for
a 1D mesh for which there are no generators. Since in 1D simplces and
tensor cells are the same,
just change it to tensor and it will work.

  Thanks,

     Matt


> The following is the error message:
> [0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------
> [0]PETSC ERROR: Argument out of range
> [0]PETSC ERROR: No grid generator of dimension 1 registered
> [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html
> for trouble shooting.
> [0]PETSC ERROR: Petsc Development GIT revision: v3.11.1-723-g96d64d1  GIT
> Date: 2019-05-15 13:23:17 +0000
> [0]PETSC ERROR: ./membrane on a arch-linux2-c-debug named
> simon-System-Product-Name by simon Sun May 19 20:54:54 2019
> [0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++
> --with-fc=gfortran --download-mpich --download-fblaslapack
> [0]PETSC ERROR: #1 DMPlexGenerate() line 181 in
> /home/simon/petsc/src/dm/impls/plex/plexgenerate.c
> [0]PETSC ERROR: #2 DMPlexCreateBoxMesh_Simplex_Internal() line 536 in
> /home/simon/petsc/src/dm/impls/plex/plexcreate.c
> [0]PETSC ERROR: #3 DMPlexCreateBoxMesh() line 1071 in
> /home/simon/petsc/src/dm/impls/plex/plexcreate.c
> [0]PETSC ERROR: #4 main() line 54 in /home/simon/Downloads/membrane.c
> [0]PETSC ERROR: PETSc Option Table entries:
> [0]PETSC ERROR: -dm_view
> [0]PETSC ERROR: ----------------End of Error Message -------send entire
> error message to petsc-maint at mcs.anl.gov----------
> application called MPI_Abort(MPI_COMM_WORLD, 63) - process 0
> [unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=63
> :
> system msg for write_line failure : Bad file descriptor
>
>
>
> I need some help about this, please.
>
> Simon
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190520/09996b80/attachment.html>


More information about the petsc-users mailing list