Implementation IO Interface to NCSA AMR HDF Files. More...
#include "DAGHIO_hdf_ncsa.h"
#include "DAGHParams.h"
#include "DAGHIOParams.h"
#include "PackedGridDataBucket.h"
#include "sds.h"
#include "amrsds.h"
#include "DAGH.h"
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <unistd.h>
#include <vector>
#include <sys/types.h>
#include <sys/stat.h>
Defines | |
#define | MAXPROCS 1024 |
Typedefs | |
typedef GridData< float32, 3 > | data_block_type |
typedef std::pair < data_block_type *, int32 > | storage_type |
typedef std::vector< storage_type > | block_list_type |
Functions | |
void | ensure_dir (char *filename) |
void | DAGHIO_HDF_NCSA_Write (GridHierarchy &gh, struct gdhdr *hdr, void *data) |
void | DAGHIO_HDF_NCSA_Read (GridHierarchy &gh, struct gdhdr *hdr, void *data) |
void | DAGHIO_HDF_NCSA_Flush (GridHierarchy &gh) |
void | DAGHIO_HDF_NCSA_Close (GridHierarchy &gh) |
Variables | |
char * | lastfilename_write = static_cast<char*>(0) |
char * | lastfilename_read = static_cast<char*>(0) |
block_list_type | read_list |
float64 | RealTime_read |
Implementation IO Interface to NCSA AMR HDF Files.
#define MAXPROCS 1024 |
Referenced by DAGHIO_HDF_NCSA_Read().
typedef std::vector<storage_type> block_list_type |
typedef GridData<float32,3> data_block_type |
typedef std::pair<data_block_type*,int32> storage_type |
void DAGHIO_HDF_NCSA_Close | ( | GridHierarchy & | gh | ) |
References DAGHIO_HDF_NCSA_Flush(), and SDScloseAll().
Referenced by DAGHIOInit().
void DAGHIO_HDF_NCSA_Flush | ( | GridHierarchy & | gh | ) |
References lastfilename_read, lastfilename_write, read_list, SDSclose(), and SDSflush().
Referenced by DAGHIO_HDF_NCSA_Close(), and DAGHIOInit().
void DAGHIO_HDF_NCSA_Read | ( | GridHierarchy & | gh, | |
struct gdhdr * | hdr, | |||
void * | data | |||
) |
References AMRreadAttribs(), AMRreadData(), gdhdr::bbox, DAGH_Double, BBox::empty(), gdhdr::gfdatatype, gdhdr::gfname, lastfilename_read, gdhdr::level, comm_service::log(), BBox::lower(), lower(), MAXPROCS, gdhdr::physical_time, BBox::rank, read_list, RealTime_read, SDSclose(), BBox::size(), BBox::stepsize(), stepsize(), gdhdr::time, BBox::upper(), and upper().
Referenced by DAGHIOInit().
void DAGHIO_HDF_NCSA_Write | ( | GridHierarchy & | gh, | |
struct gdhdr * | hdr, | |||
void * | data | |||
) |
References AMRwriteData(), gdhdr::bbox, DAGH_Double, BBox::empty(), ensure_dir(), BBox::extents(), gdhdr::gfdatatype, gdhdr::gfname, gdhdr::index, comm_service::io_enabled(), lastfilename_write, gdhdr::level, comm_service::log(), BBox::lower(), MY_PROC, gdhdr::owner, gdhdr::physical_time, comm_service::proc_num(), BBox::rank, SDSclose(), SDSflush(), SDSsetNT(), BBox::size(), BBox::stepsize(), gdhdr::time, and gdhdr::time_value.
Referenced by DAGHIOInit().
void ensure_dir | ( | char * | filename | ) |
Referenced by DAGHIO_HDF_NCSA_Write().
char* lastfilename_read = static_cast<char*>(0) |
Referenced by DAGHIO_HDF_NCSA_Flush(), and DAGHIO_HDF_NCSA_Read().
char* lastfilename_write = static_cast<char*>(0) |
Referenced by DAGHIO_HDF_NCSA_Flush(), and DAGHIO_HDF_NCSA_Write().
Referenced by DAGHIO_HDF_NCSA_Flush(), and DAGHIO_HDF_NCSA_Read().
float64 RealTime_read |
Referenced by DAGHIO_HDF_NCSA_Read().