There are examples listed at the end of the *DMPlexCreateFromFile <https://urldefense.us/v3/__https://petsc.org/release/manualpages/DMPlex/DMPlexCreateFromFile/__;!!G_uCfscf7eWS!b8tabJOQMBPGdL853VyP1yu-DrBuHaOQDcvf368RW41TmzhfdTRagLyrwBnZBeZ6OM3g6neOJBuBS2RCNnBwe35XChWNH5S3bg$>,*and the first two are designed for parallel file load-store. Matt may have a better idea but I would test that you can run these tests (there are test arguments in a comment at the end of the source file), to get your installation working, and then clone that code.
Mark On Tue, May 13, 2025 at 10:40 AM 程奔 <ctcheng...@mail.scut.edu.cn> wrote: > Hello, > > Recently I create unstructure mesh from Gmsh and its mesh format is msh > file. However the mesh file contain around 100 million nodes, so when I > use *DMPlexCreateFromFile > <https://urldefense.us/v3/__https://petsc.org/release/manualpages/DMPlex/DMPlexCreateFromFile/__;!!G_uCfscf7eWS!b8tabJOQMBPGdL853VyP1yu-DrBuHaOQDcvf368RW41TmzhfdTRagLyrwBnZBeZ6OM3g6neOJBuBS2RCNnBwe35XChWNH5S3bg$> > * > it only perform on a single CPU process thus out of memory. > > I ask GPT and it said PETSc may parallel perform *DMPlexCreateFromFile > <https://urldefense.us/v3/__https://petsc.org/release/manualpages/DMPlex/DMPlexCreateFromFile/__;!!G_uCfscf7eWS!b8tabJOQMBPGdL853VyP1yu-DrBuHaOQDcvf368RW41TmzhfdTRagLyrwBnZBeZ6OM3g6neOJBuBS2RCNnBwe35XChWNH5S3bg$> > *when > the mesh file is HDF5/Exodus II/XDMF, so it will decrease the Memory > pressure for each CPU process. > > So I sent this email for asking help that how can I load such large-scale > mesh to create DMPLEX. > > > Looking forward to your reply! > > > sinserely, > Cheng. >