00001
00096
00097 #ifndef AMR_HDF5_h
00098 #define AMR_HDF5_h
00099
00100 #include "AMRData.h"
00101
00102
00103
00104 #if defined (__cplusplus)
00105 extern "C"
00106 {
00107 #endif
00108
00112
00126 void AMR_OpenHDF5(char *filename, int MPI_Communicator, int m, int *hdf5) ;
00127
00132 void AMR_CloseHDF5( int hdf5 ) ;
00133
00134
00179 void AMR_WriteData(int hdf5, int numLevels, int *levelData, int ncomp,
00180 char **compNames, int *refineFactor, double *spacing,
00181 double time, double dt, CONST int *domain_lo, CONST int *domain_hi) ;
00182
00189 void AMR_WriteStringAttribute(int hdf5, char* name, char* value);
00226 void AMR_ReadMetaData(int hdf5, int *numLevels, int *ncomp,
00227 int *ndim, double *spacingCoarse,
00228 int *domain_lo_valid, int * domain_hi_valid,
00229 double *time, double* dtCoarse) ;
00230
00231
00242 void AMR_ReadCompName(int hdf5, char **names) ;
00243
00255 void AMR_ReadNumBoxes(int hdf5, int level, int *ntotalBoxes) ;
00256
00265 void AMR_ReadBoxes(int hdf5, int level,
00266 int *loValid, int* hiValid,
00267 int* loRange, int* hiRange) ;
00268
00282 void AMR_ReadRefFactors(int hdf5, int *refs) ;
00283
00284
00302 void AMR_ReadLevel(int hdf5, int level, int levelDatahandle, int compBegin, int ncomp) ;
00303
00314 void AMR_ReadPatch(int hdf5, int level, int patch, int comp,
00315 void *d_ptr) ;
00316
00317
00318
00319
00320
00321
00322 void AMR_ReadStringAttribute(int hdf5, char* name, char** value);
00323
00329
00330
00331
00348 void amropenhdf5_(char *filename, long int length,
00349 int* MPI_Communicator, int* m, int *hdf5) ;
00350
00351 void amrclosehdf5_( int* hdf5 ) ;
00352
00361 void amrwritedata_(int* hdf5, int* numLevels, int *levelData, int* ncomp,
00362 int *refineFactor, double *spacing,
00363 double* time, double* dt, int *domain_lo, int *domain_hi) ;
00364
00368 void amrwritecompname_(int* hdf5, int* compIndex, char* compname, long int length);
00369
00370 void amrreadmetadata_(int* hdf5, int *numLevels, int *ncomp,
00371 int *ndim, double *spacingCoarse,
00372 int *domain_lo_valid, int * domain_hi_valid,
00373 double *time, double* dtCoarse) ;
00374
00375
00380 void amrreadcompname_(int* hdf5, int* compIndex, char *names, long int length) ;
00381
00382 void amrreadnumboxes_(int* hdf5, int* level, int *ntotalBoxes) ;
00383
00384 void amrreadboxes_(int* hdf5, int* level,
00385 int *loValid, int* hiValid,
00386 int* loRange, int* hiRange) ;
00387
00388
00389 void amrreadreffactors_(int* hdf5, int *refs) ;
00390
00391 void amrreadlevel_(int* hdf5, int* level, int* levelDatahandle, int* compBegin, int* ncomp) ;
00392
00393
00394 void amrreadpatch_(int* hdf5, int* level, int* patch, int* comp,
00395 void *d_ptr) ;
00399 #if defined(__cplusplus)
00400 }
00401 #endif
00402
00403 #endif
00404
00405
00406