[petsc-users] A question about loading data form .h5 file
王惊梦
pentaerythrotol at gmail.com
Thu Aug 8 09:46:19 CDT 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240808/9103e8fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-c-code
Size: 1766 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240808/9103e8fd/attachment.bin>
More information about the petsc-users
mailing list