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

SurfaceMeshIrregularDecomp.c File Reference

Role: Loads the mesh from various input files, as specified in the xml input file. More...

#include <mpi.h>
#include <StGermain/StGermain.h>
#include <Cascade/cascade.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <limits.h>
#include "types.h"
#include "SurfaceMeshDecomp.h"
#include "SurfaceMeshIrregularDecomp.h"
#include "SurfaceMesh.h"
#include "Catchment.h"
#include "Misc.h"
#include "CommHandler.h"

Include dependency graph for SurfaceMeshIrregularDecomp.c:

Go to the source code of this file.

Functions

SurfaceMeshIrregularDecompSurfaceMeshIrregularDecomp_DefaultNew (Name name)
SurfaceMeshIrregularDecompSurfaceMeshIrregularDecomp_New (Name name, CatchmentList *cList, SurfaceMesh *mesh, Dictionary *dictionary)
SurfaceMeshIrregularDecomp_SurfaceMeshIrregularDecomp_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, CatchmentList *_catchmentList, SurfaceMesh *_mesh, SurfaceMeshDecomp_SyncMeshFunction *_syncMesh, SurfaceMeshDecomp_ComputeHaloNodesFunction *_computeHaloNodes, SurfaceMeshDecomp_AllocateNodesFunction *_allocateNodes)
void _SurfaceMeshIrregularDecomp_Init (SurfaceMeshIrregularDecomp *self)
void _SurfaceMeshIrregularDecomp_Print (void *surfaceMeshIrregularDecomp, Stream *stream)
void _SurfaceMeshIrregularDecomp_Delete (void *surfaceMeshIrregularDecomp)
void _SurfaceMeshIrregularDecomp_Construct (void *surfaceMeshIrregularDecomp, Stg_ComponentFactory *cf)
void _SurfaceMeshIrregularDecomp_Build (void *surfaceMeshIrregularDecomp, void *data)
void _SurfaceMeshIrregularDecomp_Initialise (void *surfaceMeshIrregularDecomp, void *data)
void _SurfaceMeshIrregularDecomp_Execute (void *surfaceMeshIrregularDecomp, void *data)
void _SurfaceMeshIrregularDecomp_Destroy (void *surfaceMeshIrregularDecomp, void *data)
void SurfaceMeshIrregularDecomp_SyncMesh (SurfaceMeshIrregularDecomp *surfaceMeshIrregularDecomp, SurfaceMesh *mesh)
 public functions
void SurfaceMeshIrregularDecomp_ComputeHaloNodes (SurfaceMeshIrregularDecomp *surfaceMeshIrregularDecomp)
void AssignProcessor (SurfaceMeshIrregularDecomp *surfaceMeshIrregularDecomp, int nodeId, int processor)
void SurfaceMeshIrregularDecomp_AllocateNodes (_SurfaceMeshDecomp *surfaceMeshDecomp)

Variables

const Type SurfaceMeshIrregularDecomp_Type = "SurfaceMeshIrregularDecomp"


Detailed Description

Role: Loads the mesh from various input files, as specified in the xml input file.

Assumptions:

Id
SurfaceMeshIrregularDecomp.c 159 2005-07-17 10:11:31Z RaquibulHassan

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

Definition in file SurfaceMeshIrregularDecomp.c.


Function Documentation

void _SurfaceMeshIrregularDecomp_Build void *  surfaceMeshIrregularDecomp,
void *  data
 

Definition at line 219 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_Build().

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Construct void *  surfaceMeshIrregularDecomp,
Stg_ComponentFactory *  cf
 

Definition at line 214 of file SurfaceMeshIrregularDecomp.c.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Delete void *  surfaceMeshIrregularDecomp  ) 
 

Definition at line 190 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_Delete(), and MASTER_PROC.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Destroy void *  surfaceMeshIrregularDecomp,
void *  data
 

Definition at line 243 of file SurfaceMeshIrregularDecomp.c.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Execute void *  surfaceMeshIrregularDecomp,
void *  data
 

Definition at line 234 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_Execute().

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Init SurfaceMeshIrregularDecomp self  ) 
 

Definition at line 151 of file SurfaceMeshIrregularDecomp.c.

References catchmentCompareFunction(), catchmentPrintFunction(), and MASTER_PROC.

Referenced by _SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Initialise void *  surfaceMeshIrregularDecomp,
void *  data
 

Definition at line 229 of file SurfaceMeshIrregularDecomp.c.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

SurfaceMeshIrregularDecomp* _SurfaceMeshIrregularDecomp_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,
CatchmentList _catchmentList,
SurfaceMesh _mesh,
SurfaceMeshDecomp_SyncMeshFunction _syncMesh,
SurfaceMeshDecomp_ComputeHaloNodesFunction _computeHaloNodes,
SurfaceMeshDecomp_AllocateNodesFunction _allocateNodes
 

Definition at line 98 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_New(), and _SurfaceMeshIrregularDecomp_Init().

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void _SurfaceMeshIrregularDecomp_Print void *  surfaceMeshIrregularDecomp,
Stream *  stream
 

Definition at line 177 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_Print().

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void AssignProcessor SurfaceMeshIrregularDecomp surfaceMeshIrregularDecomp,
int  nodeId,
int  processor
 

Definition at line 269 of file SurfaceMeshIrregularDecomp.c.

References SurfaceMesh::nodeProviders, and SurfaceMesh::processor.

Referenced by SurfaceMeshIrregularDecomp_AllocateNodes().

void SurfaceMeshIrregularDecomp_AllocateNodes _SurfaceMeshDecomp surfaceMeshDecomp  ) 
 

Definition at line 289 of file SurfaceMeshIrregularDecomp.c.

References AssignProcessor(), SurfaceMeshIrregularDecomp::catchmentList, CatchmentList::catchments, SurfaceMesh::h, Catchment::localMinimum, maxH, maxX, maxY, minH, minX, minY, Catchment::netSize, SurfaceMesh::numNodes, CatchmentList::numProcs, SurfaceMesh::numProcs, SurfaceMesh::processor, SurfaceMeshIrregularDecomp::processorCatchments, SurfaceMesh::x, and SurfaceMesh::y.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

void SurfaceMeshIrregularDecomp_ComputeHaloNodes SurfaceMeshIrregularDecomp surfaceMeshIrregularDecomp  ) 
 

Definition at line 260 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_ComputeHaloNodes().

SurfaceMeshIrregularDecomp* SurfaceMeshIrregularDecomp_DefaultNew Name  name  ) 
 

Definition at line 50 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_ComputeHaloNodes(), _SurfaceMeshDecomp_SyncMesh(), _SurfaceMeshIrregularDecomp_Build(), _SurfaceMeshIrregularDecomp_Construct(), _SurfaceMeshIrregularDecomp_Delete(), _SurfaceMeshIrregularDecomp_Destroy(), _SurfaceMeshIrregularDecomp_Execute(), _SurfaceMeshIrregularDecomp_Initialise(), _SurfaceMeshIrregularDecomp_New(), _SurfaceMeshIrregularDecomp_Print(), SurfaceMeshIrregularDecomp_AllocateNodes(), SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_Type.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().

SurfaceMeshIrregularDecomp* SurfaceMeshIrregularDecomp_New Name  name,
CatchmentList cList,
SurfaceMesh mesh,
Dictionary *  dictionary
 

Definition at line 73 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_ComputeHaloNodes(), _SurfaceMeshDecomp_SyncMesh(), _SurfaceMeshIrregularDecomp_Build(), _SurfaceMeshIrregularDecomp_Construct(), _SurfaceMeshIrregularDecomp_Delete(), _SurfaceMeshIrregularDecomp_Destroy(), _SurfaceMeshIrregularDecomp_Execute(), _SurfaceMeshIrregularDecomp_Initialise(), _SurfaceMeshIrregularDecomp_New(), _SurfaceMeshIrregularDecomp_Print(), SurfaceMeshIrregularDecomp_AllocateNodes(), SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_Type.

Referenced by _SPModel_Context_Init(), and _SPModel_Context_RedistributeNodes().

void SurfaceMeshIrregularDecomp_SyncMesh SurfaceMeshIrregularDecomp surfaceMeshIrregularDecomp,
SurfaceMesh mesh
 

public functions

Definition at line 250 of file SurfaceMeshIrregularDecomp.c.

References _SurfaceMeshDecomp_SyncMesh().


Variable Documentation

const Type SurfaceMeshIrregularDecomp_Type = "SurfaceMeshIrregularDecomp"
 

Definition at line 48 of file SurfaceMeshIrregularDecomp.c.

Referenced by SurfaceMeshIrregularDecomp_DefaultNew(), and SurfaceMeshIrregularDecomp_New().