API changes

This commit is contained in:
2009-04-16 15:24:29 +00:00
parent e206c259a5
commit 8c22590be2
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -15,8 +15,8 @@
int main(int argc,char *argv[]){
int sz=5;
double *x,*y,*z;
h5part_int64_t *id;
H5PartFile *file;
h5_int64_t *id;
h5_file_t *file;
int i,t,nt,nds;
int nprocs,myproc;
MPI_Comm comm=MPI_COMM_WORLD;
@@ -73,7 +73,7 @@ int main(int argc,char *argv[]){
H5PartSetStep(file,0);
// unsigned int np = 0;
unsigned int np = (int)H5PartGetNumParticles(file);
nt=H5PartGetNumSteps(file); /* get number of steps in file */
nt=H5GetNumSteps(file); /* get number of steps in file */
nds=H5PartGetNumDatasets(file); /* get number of datasets in timestep 0 */
MPI_Barrier(comm);
@@ -166,7 +166,7 @@ int main(int argc,char *argv[]){
/********************************************/
H5PartSetStep(file,0);
nt=H5PartGetNumSteps(file); /* get number of steps in file */
nt=H5GetNumSteps(file); /* get number of steps in file */
nds=H5PartGetNumDatasets(file); /* get number of datasets in timestep 0 */
np=H5PartGetNumParticles(file);
+1 -1
View File
@@ -23,7 +23,7 @@ int ReadFile(const string fn){
file= H5PartOpenFile(fn.c_str(),H5_O_RDONLY);
nt=H5PartGetNumSteps(file);
nt=H5GetNumSteps(file);
H5PartSetStep(file,0);
nds=H5PartGetNumDatasets(file);