Routines to store hierarchical adaptive mesh refinement data in an HDF-compatible format. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hdf.h>
#include "amrsds.h"
#include "sds.h"
Defines | |
#define | DEFAULT_ANNOTATION_SZ 512 |
Functions | |
int | AMRgetLocation (char *filename, int32 *level, int32 *gridID, int32 *step) |
int | AMRwriteAttribs (char *filename, int32 proc, int32 level, int32 gridID, int32 step, float64 realTime, int32 rank, int32 *origin, int32 *resolution) |
int | AMRwriteData (char *filename, char *dataname, int32 proc, int32 level, int32 gridID, int32 step, float64 realTime, int32 rank, int32 *dims, int32 *origin, int32 *resolution, void *data) |
int | AMRreadAttribs (char *filename, char *dataname, int32 *proc, int32 *level, int32 *gridID, int32 *step, float64 *realTime, int32 *rank, int32 *dims, int32 *origin, int32 *resolution) |
int | AMRgetNumAttribs (char *filename) |
int | AMRreadData (char *filename, int32 rank, int32 *dims, void *data) |
int | AMRseekTime (char *filename, float64 realtime, char *matchtype) |
int | AMRseek (char *filename, int32 level, int32 gridID, int32 step) |
int | AMRgetRegion (char *filename, int32 level, int32 step, int32 rank, int32 *lb, int32 *ub, int32 *dims, void *data) |
int | RegionOverlap (int *rank, int32 *sourceDims, int32 *sourceOrigin, int32 *sourceResolution, int32 *destDims, int32 *destOrigin, int32 *destResolution) |
void | AMRsetInterpolator (AMRinterpolator interp) |
void | PatchReplace (int32 *rank, int32 *sourceDims, int32 *sourceOrigin, int32 *sourceResolution, void *sourcedata, int32 *destdims, int32 *destOrigin, int32 *destResolution, void *destdata) |
Variables | |
int | AmrDebug = 1 |
Routines to store hierarchical adaptive mesh refinement data in an HDF-compatible format.
#define DEFAULT_ANNOTATION_SZ 512 |
Referenced by AMRseek(), and AMRseekTime().
int AMRgetLocation | ( | char * | filename, | |
int32 * | level, | |||
int32 * | gridID, | |||
int32 * | step | |||
) |
References SDSreadAttrib().
Referenced by AMRseek().
int AMRgetNumAttribs | ( | char * | filename | ) |
References SDSgetNumAttribs().
int AMRgetRegion | ( | char * | filename, | |
int32 | level, | |||
int32 | step, | |||
int32 | rank, | |||
int32 * | lb, | |||
int32 * | ub, | |||
int32 * | dims, | |||
void * | data | |||
) |
int AMRreadAttribs | ( | char * | filename, | |
char * | dataname, | |||
int32 * | proc, | |||
int32 * | level, | |||
int32 * | gridID, | |||
int32 * | step, | |||
float64 * | realTime, | |||
int32 * | rank, | |||
int32 * | dims, | |||
int32 * | origin, | |||
int32 * | resolution | |||
) |
References SDSgetDims(), and SDSreadAttrib().
int AMRreadData | ( | char * | filename, | |
int32 | rank, | |||
int32 * | dims, | |||
void * | data | |||
) |
References SDSreadData().
int AMRseek | ( | char * | filename, | |
int32 | level, | |||
int32 | gridID, | |||
int32 | step | |||
) |
References AMR_ANYVAL, AmrDebug, AMRgetLocation(), DEFAULT_ANNOTATION_SZ, SDSgetDataName(), SDSgetIndex(), SDSgetNumDatasets(), SDSisCoord(), and SDSseek().
int AMRseekTime | ( | char * | filename, | |
float64 | realtime, | |||
char * | matchtype | |||
) |
References AmrDebug, DEFAULT_ANNOTATION_SZ, SDSgetIndex(), SDSgetNumDatasets(), SDSisCoord(), SDSreadAttrib(), and SDSseek().
void AMRsetInterpolator | ( | AMRinterpolator | interp | ) |
int AMRwriteAttribs | ( | char * | filename, | |
int32 | proc, | |||
int32 | level, | |||
int32 | gridID, | |||
int32 | step, | |||
float64 | realTime, | |||
int32 | rank, | |||
int32 * | origin, | |||
int32 * | resolution | |||
) |
References SDSwriteAttrib().
Referenced by AMRwriteData().
int AMRwriteData | ( | char * | filename, | |
char * | dataname, | |||
int32 | proc, | |||
int32 | level, | |||
int32 | gridID, | |||
int32 | step, | |||
float64 | realTime, | |||
int32 | rank, | |||
int32 * | dims, | |||
int32 * | origin, | |||
int32 * | resolution, | |||
void * | data | |||
) |
References AmrDebug, AMRwriteAttribs(), and SDSwriteData().
void PatchReplace | ( | int32 * | rank, | |
int32 * | sourceDims, | |||
int32 * | sourceOrigin, | |||
int32 * | sourceResolution, | |||
void * | sourcedata, | |||
int32 * | destdims, | |||
int32 * | destOrigin, | |||
int32 * | destResolution, | |||
void * | destdata | |||
) |
int RegionOverlap | ( | int * | rank, | |
int32 * | sourceDims, | |||
int32 * | sourceOrigin, | |||
int32 * | sourceResolution, | |||
int32 * | destDims, | |||
int32 * | destOrigin, | |||
int32 * | destResolution | |||
) |
int AmrDebug = 1 |
Referenced by AMRseek(), AMRseekTime(), and AMRwriteData().