Skip to Content.
Sympa Menu

h5part - [H5part] Question

h5part AT lists.psi.ch

Subject: H5Part development and discussion

List archive

[H5part] Question


Chronological Thread 
  • From: Andreas Adelmann <andreas.adelmann AT psi.ch>
  • To: h5part AT lists.psi.ch
  • Subject: [H5part] Question
  • Date: Thu, 24 Aug 2006 06:44:14 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/h5part/>
  • List-id: H5Part development and discussion <h5part.lists.psi.ch>

Hello, assume you have written attributes like:

H5err=h5pt_writestepattrib_r8(H5fh,"Spos",H5spos,1)
......

When I read the file h5, how can I obtain a list of all the writestepattrib names ("Spos" in the example above) ?


I know we have a function for getting the Datasets as shown below:

nds=H5PartGetNumDatasets(file); /* get number of datasets in timestep 0 */

for(int i=0;i<nds;i++){ /* and print out those names */
H5PartGetDatasetName(file,i,name,64);
msg << "Dataset " << i << " name= " << string(name) << endl;
}


I do not remember having such a function for writestepattrib. Correct ?

All the best,
Andreas

--
Dr. sc. math. Andreas (Andy) Adelmann
Staff Scientist
Paul Scherrer Institut WLGA U125 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Phone Home: xx41 62 891 91 44




Archive powered by MHonArc 2.6.19.

Top of Page