amroc/hds/src/amrsds.c File Reference

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

Detailed Description

Routines to store hierarchical adaptive mesh refinement data in an HDF-compatible format.

Date:
Feb-1996
Author:
John Shalf

Define Documentation

#define DEFAULT_ANNOTATION_SZ   512

Referenced by AMRseek(), and AMRseekTime().


Function Documentation

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 
)
int AMRseekTime ( char *  filename,
float64  realtime,
char *  matchtype 
)
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 
)
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 
)

Variable Documentation

int AmrDebug = 1

Referenced by AMRseek(), AMRseekTime(), and AMRwriteData().

Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3