Ok, I have created a simpler example.

1) CheckpointWrite.png -- screenshot showing the output when writing the
mesh.

2) CheckpointRead.png -- screenshot showing the output when reading the mesh

You can see exactly what I wrote in my earlier email, albeit with different
numbers this time.

3) Checkpoint.cxx  - a quick code. You have to use #if  0 segment to read
lshaped.xda, refine it, and save as Checkpoint format. Then change to #if 1
to read the "cp" mesh. I am assuming, AMR mesh will work, if this works for
read/write.

Many thanks for your help.

Regards,

Jahrul



=====================================
Jahrul Alam, PhD
Associate Professor, Dept of Mathematics and Statistics
Memorial University, St John's, NL, Canada
http://www.math.mun.ca/~alamj/
eMail: al...@mun.ca
Office: HH-3054, Tel: 709-864 8071
=====================================

On Tue, Dec 12, 2017 at 11:39 AM, Roy Stogner <royst...@ices.utexas.edu>
wrote:

>
> On Tue, 12 Dec 2017, Jahrul Alam wrote:
>
> 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?
>>
>
> Either you are or I am.  Can you send me a short code that replicates
> the problem for you?
>
> Thanks,
>
> ---
> 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
> Libmesh-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>
------------------------------------------------------------------------------
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
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to