[petsc-dev] Problem about DMPlexCreateExodusFromFile()

Matthew Knepley knepley at gmail.com
Mon Oct 11 12:02:57 CDT 2021

On Mon, Oct 11, 2021 at 9:29 AM Gong Yujie <yc17470 at connect.um.edu.mo>

> Hi,
> I'm learning PETSc DMPlex module recently. A problem occurs to my PETSc
> when I'm using  DMPlexCreateExodusFromFile() to import a mesh file. I've
> tried to generate a mesh with Pointwise and ICEM, but both mesh files can't
> be input to PETSc. The Error code is :

I am not familiar with Pointwise or ICEM. The problem here is that the
element type 'TRIANGLE' is not recognized by PETSc, and it
does not appear in the ExodusII documentation that I am using:


It is also not used by Cubit/Trellis. I am not sure why your program is
making non-standard ExodusII files.



> *[0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------*
> *[0]PETSC ERROR: Invalid argument*
> *[0]PETSC ERROR: Unrecognized element type TRIANGLE*
> *[0]PETSC ERROR: See https://petsc.org/release/faq/
> <https://petsc.org/release/faq/> for trouble shooting.*
> *[0]PETSC ERROR: Petsc Release Version 3.16.0, Sep 29, 2021*
> *[0]PETSC ERROR: ./exocircle on a arch-linux-c-debug named DESKTOP-0RMI66F
> by fstcam Mon Oct 11 10:54:35 2021*
> *[0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++
> --with-fc=gfortran --download-mpich --download-fblaslapack --download-metis
> --download-parmetis --download-exodusii --download-netcdf --download-hdf5
> --download-superlu --download-triangle --download-zlib --download-pnetcdf
> --download-make --download-cmake*
> *[0]PETSC ERROR: #1 ExodusGetCellType_Internal() at
> /home/fstcam/petsc/petsc-3.16.0/src/dm/impls/plex/plexexodusii.c:1390[0]PETSC
> ERROR: #2 DMPlexCreateExodus() at
> /home/fstcam/petsc/petsc-3.16.0/src/dm/impls/plex/plexexodusii.c:1472*
> *[0]PETSC ERROR: #3 DMPlexCreateExodusFromFile() at
> /home/fstcam/petsc/petsc-3.16.0/src/dm/impls/plex/plexexodusii.c:1352*
> Looking forward to your reply!
> Best Regards,
> Gong

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-dev/attachments/20211011/a0c8068d/attachment.html>

More information about the petsc-dev mailing list