On 12/09/2010 02:41 PM, Roy Stogner wrote: > > > On Thu, 9 Dec 2010, Michael Povolotskyi wrote: > >> Dear libmesh developers, >> I'd like to use libmesh for solving the Poisson equation on a large >> grid. >> I'd like to have a parallel 3D mesh. >> I'd like to create the mesh myself rather than reading it from a file. >> >> In my program I have distributed information about nodes and elements >> that I want to have in my mesh. >> My question: how can I create the mesh? >> >> I imagine that I have to >> a) reserve memory for nodes and elements >> b) add points and elements >> c) prepare the mesh for use >> >> I have done it already in for a serial case and it worked. >> But can I do the same operations in parallel? > > ParallelMesh (as opposed to the default SerialMesh) is designed to > handle the mesh storage, degree of freedom numbering, adaptive > refinement, and repartitioning for this. It's currently got a serious > bug with adaptive coarsening, though, and that means that it doesn't > get enough usage or testing and it might have more subtle bugs > elsewhere. > > If your coarse mesh will fit on one CPU, then the same mesh generation > code can work in both serial and parallel; the prepare_for_use will > just discard non-semilocal coarse elements after they've been created, > and the fine elements created by refinement will only be created on > the processors that need them. > --- > Roy Thank you, Roy. My problem is that the coarse mesh cannot fit the on one CPU. Therefore I'd like to create it in parallel in a distributed way. Is this possible? Thank you, Michael.
------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
