From: Jahrul A. <al...@mu...> - 2017-12-12 03:39:39
|
First, I wrote the mesh as [CheckpointIO(mymesh).write("test.cp");] Next, I re-compiled the code (only to change 'read' to 'write'), and read the mesh as [CheckpointIO(mymesh).read("test.cp");] mymesh.print_info() shows n_nodes=33153, n_local_nodes = 4225, n_partitions=8, n_processors=8 before it was written. However, I get n_nodes = 4225 and n_local_nodes = 4225, n_partitions=1, n_processors=8 afterwards. Am I missing something? On Mon, Dec 11, 2017 at 8:35 AM, Roy Stogner <roy...@ic...> wrote: > > On Sat, 9 Dec 2017, Jahrul Alam wrote: > > Nemesis IO reads the mesh in parallel (not the solution); however, >> the reader destroys the multi-level structure of the mesh. Is there >> a work around to handle this problem? >> > > I'm afraid not; not even ExodusII ("serial Nemesis") lets us store AMR > structure. IIRC when we tried the result was awful on visualization > programs, which would try to display the inactive elements too and > naturally show garbage. https://en.wikipedia.org/wiki/Z-fighting > > For archival of AMR meshes our only good solution right now is > serialized Xdr, I believe. If that's a performance problem, you could > output CheckpointIO during your simulation runs, then postprocess > convert to Xdr later. At some point we'll also make CheckpointIO a > first-class format with forwards compatibility, but that's a pain to > maintain while the format is still in flux so it won't happen soon. > > --- > Roy > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Libmesh-users mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libmesh-users > -- ===================================== Jahrul Alam, PhD Assistant Professor, Dept of Mathematics and Statistics Memorial University, St John's, NL, Canada http://www.math.mun.ca/~alamj/ eMail: al...@mu... Office: HH-3035, Tel: 709-737 8071 ===================================== |