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

_Interpolator.c File Reference

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

#include <mpi.h>
#include <StGermain/StGermain.h>
#include <Cascade/cascade.h>
#include "types.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "Catchment.h"
#include "SurfaceMesh.h"
#include "SurfaceRegularMesh.h"
#include "Context.h"
#include "_Interpolator.h"

Include dependency graph for _Interpolator.c:

Go to the source code of this file.

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_InterpolateFromMeshToGrid (_Interpolator *interpolator, Interpolator_InterpolateFunction *interpolateFunction, void *arguments)
void _Interpolator_InterpolateFromGridToMesh (_Interpolator *interpolator, float **gridDeflectionArray, float *meshDeflectionArray)

Variables

const Type _Interpolator_Type = "_Interpolator"


Detailed Description

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

Assumptions:

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

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

Definition in file _Interpolator.c.


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().

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 = "_Interpolator"
 

Definition at line 50 of file _Interpolator.c.