On Wed, May 14, 2025 at 6:19 AM Mark Adams <mfad...@lbl.gov> wrote:
> 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. > On the machine on which you created the GMsh file there is definitely enough memory. Thus I would load it there and save it as HDF5 or NetCDF, so that you could load it in parallel elsewhere. For HDF5, I would use the latest formet -dm_plex_view_hdf5_storage_version 3.1.0 Thanks, Matt > 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. >> > -- 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://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZZx-2RTs8T5ThExGXILH1XXU3-8Ko9JD4p9a85zHm9D1bn8xxrag2HfMb0zD5jAYQJWiL6CyI62KgWl0TgHb$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZZx-2RTs8T5ThExGXILH1XXU3-8Ko9JD4p9a85zHm9D1bn8xxrag2HfMb0zD5jAYQJWiL6CyI62KgWPfWduy$ >