<div dir="ltr">I just found out that I missed that note in VecLoad manual page, and I am trying it now.<div>Thanks.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> 於 2018年12月4日 週二 下午2:00寫道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hmm, this is a guess. HDF5 files read in objects based on their names. Are you sure that the vector you saved and the vector you later try to read in have the same name? You can set the name of the loaded vector with PetscObjectSetName((PetscObject)nv,"name") after you create it to match the name you used to save the vector.<br>
<br>
Barry<br>
<br>
<br>
> On Dec 4, 2018, at 1:42 PM, Josh L via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
> <br>
> Hi,<br>
> <br>
> I have a vec.h5 that generated serially by<br>
> gv is a sequential vec<br>
> VecSetblockSize(gv,3)<br>
> PetscViewerHDF5Open(vec,h5,write)<br>
> VecView(gv)<br>
> <br>
> and I want to read in with different number of processor by <br>
> DMGetGlobalVector(dm,nv)<br>
> PetscViewerHDF5Open(write)<br>
> VecLoad(nv)<br>
> <br>
> nv has bs=3, and I have set bs for gv as 3.<br>
> <br>
> I get the following error. any hint to solve it ? thanks<br>
> <br>
> Error in HDF5 call H5Gcreate2() Status -1<br>
> #000: H5G.c line 314 in H5Gcreate2(): unable to create group<br>
> major: Symbol table<br>
> minor: Unable to initialize object<br>
> #001: H5Gint.c line 194 in H5G__create_named(): unable to create and link to group<br>
> major: Symbol table<br>
> minor: Unable to initialize object<br>
> #002: H5L.c line 1638 in H5L_link_object(): unable to create new link to object<br>
> major: Links<br>
> minor: Unable to initialize object<br>
> #003: H5L.c line 1882 in H5L_create_real(): can't insert link<br>
> major: Symbol table<br>
> minor: Unable to insert object<br>
> #004: H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed<br>
> major: Symbol table<br>
> minor: Object not found<br>
> #005: H5Gtraverse.c line 641 in H5G_traverse_real(): traversal operator failed<br>
> major: Symbol table<br>
> minor: Callback failed<br>
> #006: H5L.c line 1685 in H5L_link_cb(): unable to create object<br>
> major: Object header<br>
> minor: Unable to initialize object<br>
> #007: H5O.c line 3016 in H5O_obj_create(): unable to open object<br>
> major: Object header<br>
> minor: Can't open object<br>
> #008: H5Goh.c line 268 in H5O_group_create(): unable to create group<br>
> major: Symbol table<br>
> minor: Unable to initialize object<br>
> #009: H5Gint.c line 245 in H5G__create(): unable to create group object header<br>
> major: Symbol table<br>
> minor: Unable to initialize object<br>
> #010: H5Gobj.c line 163 in H5G__obj_create(): unable to create group<br>
> major: Symbol table<br>
> minor: Unable to create file<br>
> #011: H5Gobj.c line 206 in H5G__obj_create_real(): no write intent on file<br>
> major: Object cache<br>
> minor: Bad value<br>
> <br>
> <br>
> <br>
<br>
</blockquote></div>