SPModel: libSPModel/src/_Interpolator.h File Reference
VPAC - Computational Software Development
Main | SPModel | StGermain FrameWork |
Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

_Interpolator.h File Reference

Role: Stores and manages the catchment mesh, including the node interconnectivity, and provider/receiver relationships between catchments. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GridPoint_t
struct  _Interpolator

Defines

#define __Interpolator

Typedefs

typedef float( Interpolator_InterpolateFunction )(int meshLocalIndex, void *args)
typedef void( Interpolator_InterpolateFromGridToMeshFunction )(struct _Interpolator *interpolator, float **gridDeflectionArray, float *meshDeflectionArray)
typedef GridPoint_t GridPoint

Functions

_Interpolator_Interpolator_New (SizeT _sizeOfSelf, Type type, Stg_Class_DeleteFunction *_delete, Stg_Class_PrintFunction *_print, Stg_Class_CopyFunction *_copy, Stg_Component_DefaultConstructorFunction *_defaultConstructor, Stg_Component_ConstructFunction *_construct, Stg_Component_BuildFunction *_build, Stg_Component_InitialiseFunction *_initialise, Stg_Component_ExecuteFunction *_execute, Stg_Component_DestroyFunction *_destroy, Name name, Bool initFlag, Dictionary *dictionary, SurfaceMesh *mesh, SurfaceRegularMesh *regularMesh, Interpolator_InterpolateFromGridToMeshFunction *interpolateG2MFunc)
void _Interpolator_Init (_Interpolator *self)
void _Interpolator_Print (void *_interpolator, Stream *stream)
void _Interpolator_Delete (void *_interpolator)
void _Interpolator_Construct (void *_interpolator, Stg_ComponentFactory *cf)
void _Interpolator_Build (void *_interpolator, void *data)
void _Interpolator_Initialise (void *_interpolator, void *data)
void _Interpolator_Execute (void *_interpolator, void *data)
void _Interpolator_Destroy (void *_interpolator, void *data)
int interpolatorCompareFunction (void *data1, void *data2)
void interpolatorPrintFunction (void *data, void *stream)
void interpolatorDataCopyFunction (void **nodeData, void *newData, SizeT dataSize)
void interpolatorDataDeleteFunction (void *data)
void _Interpolator_RowColumn (_Interpolator *self, int gridId, int *row, int *column)
void _Interpolator_InterpolateFromMeshToGrid (_Interpolator *_interpolator, Interpolator_InterpolateFunction *interpolateFunction, void *arguments)
void _Interpolator_InterpolateFromGridToMesh (_Interpolator *interpolator, float **gridDeflectionArray, float *meshDeflectionArray)

Variables

const Type _Interpolator_Type


Detailed Description

Role: Stores and manages the catchment mesh, including the node interconnectivity, and provider/receiver relationships between catchments.

Assumptions:

Id
_Interpolator.h 159 2005-07-04 10:11:31Z RaquibulHassan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Definition in file _Interpolator.h.


Define Documentation

#define __Interpolator
 

Value:

__Stg_Component \
        Dictionary                  *dictionary; \
        SurfaceMesh                 *mesh; \
        SurfaceRegularMesh          *regularMesh; \
        LinkedList                  **nodesForGridPoint; \
        GridPoint                   **gridPointsForNode; \
        int                         ***mappingTable; \
        Interpolator_InterpolateFromGridToMeshFunction *interpolateG2MFunc;

Definition at line 47 of file _Interpolator.h.


Typedef Documentation

typedef struct GridPoint_t GridPoint
 

typedef void( Interpolator_InterpolateFromGridToMeshFunction)(struct _Interpolator *interpolator, float **gridDeflectionArray, float *meshDeflectionArray)
 

Definition at line 39 of file _Interpolator.h.

typedef float( Interpolator_InterpolateFunction)(int meshLocalIndex, void *args)
 

Definition at line 37 of file _Interpolator.h.


Function Documentation

void _Interpolator_Build void *  _interpolator,
void *  data
 

Definition at line 184 of file _Interpolator.c.

References globalMesh, GridPoint_t::i, SurfaceMesh::id, interpolatorCompareFunction(), interpolatorDataCopyFunction(), interpolatorDataDeleteFunction(), interpolatorPrintFunction(), GridPoint_t::j, MASTER_PROC, maxX, maxY, minX, minY, SurfaceMesh::numNodes, SurfaceMesh::numProcs, SurfaceRegularMesh::nx, SurfaceRegularMesh::ny, SurfaceMesh::processor, SurfaceMesh::rank, SurfaceMesh::x, and SurfaceMesh::y.

Referenced by _LinearInterpolator_Build(), and _SplineInterpolator_Build().

void _Interpolator_Construct void *  _interpolator,
Stg_ComponentFactory *  cf
 

Definition at line 179 of file _Interpolator.c.

void _Interpolator_Delete void *  _interpolator  ) 
 

Definition at line 153 of file _Interpolator.c.

Referenced by _LinearInterpolator_Delete(), and _SplineInterpolator_Delete().

void _Interpolator_Destroy void *  _interpolator,
void *  data
 

Definition at line 333 of file _Interpolator.c.

void _Interpolator_Execute void *  _interpolator,
void *  data
 

Definition at line 328 of file _Interpolator.c.

void _Interpolator_Init _Interpolator self  ) 
 

Definition at line 97 of file _Interpolator.c.

Referenced by _Interpolator_New(), _LinearInterpolator_Init(), and _SplineInterpolator_Init().

void _Interpolator_Initialise void *  _interpolator,
void *  data
 

Definition at line 323 of file _Interpolator.c.

void _Interpolator_InterpolateFromGridToMesh _Interpolator interpolator,
float **  gridDeflectionArray,
float *  meshDeflectionArray
 

Definition at line 441 of file _Interpolator.c.

References _Interpolator::interpolateG2MFunc.

Referenced by SPModelIsostaticFlexure_Solve().

void _Interpolator_InterpolateFromMeshToGrid _Interpolator _interpolator,
Interpolator_InterpolateFunction interpolateFunction,
void *  arguments
 

Definition at line 382 of file _Interpolator.c.

References SurfaceRegularMesh::dataArray, interpolateFunction(), SurfaceMesh::mapGlobalToLocal, _Interpolator::mesh, SurfaceMesh::myLoad, _Interpolator::nodesForGridPoint, SurfaceRegularMesh::nx, SurfaceRegularMesh::ny, _Interpolator::regularMesh, and SurfaceMesh::surface.

Referenced by main(), and SPModelIsostaticFlexure_Solve().

_Interpolator* _Interpolator_New SizeT  _sizeOfSelf,
Type  type,
Stg_Class_DeleteFunction *  _delete,
Stg_Class_PrintFunction *  _print,
Stg_Class_CopyFunction *  _copy,
Stg_Component_DefaultConstructorFunction *  _defaultConstructor,
Stg_Component_ConstructFunction *  _construct,
Stg_Component_BuildFunction *  _build,
Stg_Component_InitialiseFunction *  _initialise,
Stg_Component_ExecuteFunction *  _execute,
Stg_Component_DestroyFunction *  _destroy,
Name  name,
Bool  initFlag,
Dictionary *  dictionary,
SurfaceMesh mesh,
SurfaceRegularMesh regularMesh,
Interpolator_InterpolateFromGridToMeshFunction interpolateG2MFunc
 

Definition at line 52 of file _Interpolator.c.

References _Interpolator_Init().

Referenced by _LinearInterpolator_New(), and _SplineInterpolator_New().

void _Interpolator_Print void *  _interpolator,
Stream *  stream
 

Definition at line 102 of file _Interpolator.c.

References MASTER_PROC.

Referenced by _LinearInterpolator_Print(), and _SplineInterpolator_Print().

void _Interpolator_RowColumn _Interpolator self,
int  gridId,
int *  row,
int *  column
 

int interpolatorCompareFunction void *  data1,
void *  data2
 

Definition at line 338 of file _Interpolator.c.

Referenced by _Interpolator_Build().

void interpolatorDataCopyFunction void **  nodeData,
void *  newData,
SizeT  dataSize
 

Definition at line 367 of file _Interpolator.c.

Referenced by _Interpolator_Build().

void interpolatorDataDeleteFunction void *  data  ) 
 

Definition at line 375 of file _Interpolator.c.

Referenced by _Interpolator_Build().

void interpolatorPrintFunction void *  data,
void *  stream
 

Definition at line 360 of file _Interpolator.c.

Referenced by _Interpolator_Build().


Variable Documentation

const Type _Interpolator_Type
 

Definition at line 50 of file _Interpolator.c.