Try reading the vector back in with a vector created from the DM.


> On Aug 8, 2024, at 10:46 AM, 王惊梦 <pentaerythro...@gmail.com> wrote:
> 
> This Message Is From an External Sender
> This message came from outside your organization.
> Dear Sir or Madam,
> 
> I met a problem about loading data from hdf5 file. Attached is a simple test 
> program.
> 
> A introduction of the program is as follows:
> I create a 3d DMDA object(50*50*50), and create 2 global vectors x and y by 
> DMDA, then I write the vector x into file test.h5.
> When I try to load the vector y from test.h5, the error occurs that "Global 
> size of array in file is 2500, not 125000 as expected", but the size of the 
> array should be 125000 which I've checked in python.
> 
> Thank you for your help!
> 
> Best regards
> ZHOU Yingjie
> <test.c>

Reply via email to