PPL Logo

libs/ck-libs/ParFUM/import.C File Reference

Go to the source code of this file.

Functions

bool coord_leq (double *a, double *b, int dim)
void ParFUM_desharing (int meshid)
void ParFUM_deghosting (int meshid)
void ParFUM_recreateSharedNodes (int meshid, int dim, MPI_Comm newComm)
 Recreate the shared nodes. An alternate incorrect version can be enabled by undefining CORRECT_COORD_COMPARISON.
void ParFUM_createComm (int meshid, int dim, MPI_Comm comm)
void ParFUM_import_nodes (int meshid, int numNodes, double *nodeCoords, int dim)
void ParFUM_import_elems (int meshid, int numElems, int nodesPer, int *conn, int type)
void qsort (double *nodes, int *ids, int dim, int first, int last)
void sortNodes (double *nodes, double *sorted_nodes, int *sorted_ids, int numNodes, int dim)
void merge (double *nodes, int *ids, int dim, int first, int mid, int last)


Function Documentation

bool coord_leq ( double a,
double b,
int  dim 
)

Definition at line 462 of file import.C.

Referenced by merge(), and qsort().

void ParFUM_desharing ( int  meshid  ) 

Definition at line 5 of file import.C.

References FEM_Mesh::clearSharedNodes(), FEM_chunk::get(), and mesh.

Referenced by ParFUM_createComm().

void ParFUM_deghosting ( int  meshid  ) 

Definition at line 11 of file import.C.

References FEM_Mesh::clearGhostElems(), FEM_Mesh::clearGhostNodes(), FEM_chunk::get(), and mesh.

Referenced by ParFUM_createComm().

void ParFUM_recreateSharedNodes ( int  meshid,
int  dim,
MPI_Comm  newComm 
)

Recreate the shared nodes. An alternate incorrect version can be enabled by undefining CORRECT_COORD_COMPARISON.

The highest partition # to which I send my coordinates(wraps around)

The lowest partition # to which I send my coordinates(wraps around)

Definition at line 20 of file import.C.

References IDXL_Side::addList(), Converse::CkMyPe(), coordEqual(), FEM_Mesh_become_get(), FEM_Mesh_data(), FEM_Mesh_get_length(), free(), FEM_chunk::get(), length, list, malloc(), mesh, MPI_ANY_SOURCE, MPI_Barrier(), MPI_Comm_rank(), MPI_Comm_size(), MPI_COMM_WORLD, MPI_DOUBLE, MPI_INT, MPI_Status::MPI_LENGTH, MPI_Probe(), MPI_Recv(), MPI_Send(), MPI_Status::MPI_SOURCE, FEM_Mesh::node, IDXL_List::push_back(), FEM_Node::shared, and status().

Referenced by ParFUM_createComm().

void ParFUM_createComm ( int  meshid,
int  dim,
MPI_Comm  comm 
)

void ParFUM_import_nodes ( int  meshid,
int  numNodes,
double nodeCoords,
int  dim 
)

Definition at line 341 of file import.C.

References FEM_Mesh_become_get(), FEM_Mesh_become_set(), and FEM_Mesh_data().

void ParFUM_import_elems ( int  meshid,
int  numElems,
int  nodesPer,
int conn,
int  type 
)

Definition at line 348 of file import.C.

References FEM_Mesh_become_get(), FEM_Mesh_become_set(), and FEM_Mesh_data().

void qsort ( double nodes,
int ids,
int  dim,
int  first,
int  last 
)

void sortNodes ( double nodes,
double sorted_nodes,
int sorted_ids,
int  numNodes,
int  dim 
)

Definition at line 357 of file import.C.

References qsort().

void merge ( double nodes,
int ids,
int  dim,
int  first,
int  mid,
int  last 
)

Definition at line 403 of file import.C.

References coord_leq(), free(), and malloc().

Referenced by qsort().


Generated on Sat May 26 08:08:10 2012 for Charm++ by  doxygen 1.5.5