Go to the source code of this file.
ParFUM-TOPS provides a Tops-like API for ParFUM.
Definition in file ParFUM_TOPS.h.
int tops_lib_FP_Type_Size | ( | ) |
Return the size of the FP Type the PTops library was compiled with, in bytes.
Create and access a Tops model.
Only call from Init Currently only one model can be created. To extend, each model must just reference a different FEM_Mesh object
TopModel* topModel_Create_Driver | ( | int | elem_attr_sz, | |
int | node_attr_sz, | |||
int | model_attr_sz, | |||
void * | mAtt | |||
) |
Create and access a Tops model.
Only call from Driver
void topModel_Destroy | ( | TopModel * | m | ) |
Cleanup a model.
Currently does nothing
void topModel_SuggestInitialSize | ( | TopModel * | m, | |
unsigned | numNodes, | |||
unsigned | numElements | |||
) |
TopElement topModel_InsertElem | ( | TopModel * | , | |
TopElemType | , | |||
TopNode * | ||||
) |
Insert an element.
void topElement_SetId | ( | TopModel * | , | |
TopElement | , | |||
TopID | id | |||
) |
int topElement_GetId | ( | TopModel * | m, | |
TopElement | e | |||
) |
Get id of an element.
void topElement_SetAttrib | ( | TopModel * | , | |
TopElement | , | |||
void * | ||||
) |
void* topElement_GetAttrib | ( | TopModel * | , | |
TopElement | ||||
) |
Get element attribute.
TopNode topElement_GetNode | ( | TopModel * | , | |
TopElement | , | |||
int | idx | |||
) |
Get node via id.
TopElement topModel_GetElemAtId | ( | TopModel * | , | |
TopID | ||||
) | [inline] |
Get element via id.
Definition at line 195 of file ParFUM_TOPS.h.
References elem, TopModel::elemIDHash, CkHashtableT< KEY, OBJ >::get(), TopModel::mesh, BasicTable2d< T >::size(), TOP_ELEMENT_TET4, and TopElement::type.
int topElement_GetNNodes | ( | TopModel * | model, | |
TopElement | elem | |||
) |
bool topElement_IsCohesive | ( | TopModel * | m, | |
TopElement | e | |||
) |
TopNodeItr* topModel_CreateNodeItr | ( | TopModel * | ) |
Create Iterator for nodes.
void topNodeItr_Destroy | ( | TopNodeItr * | ) |
Destroy Iterator.
void topNodeItr_Begin | ( | TopNodeItr * | ) |
Initialize Iterator.
bool topNodeItr_IsValid | ( | TopNodeItr * | ) |
Determine if Iterator is valid or if it has iterated past last Node.
void topNodeItr_Next | ( | TopNodeItr * | ) |
Increment iterator.
TopNode topNodeItr_GetCurr | ( | TopNodeItr * | ) |
Get TopNode associated with the iterator.
TopElemItr* topModel_CreateElemItr | ( | TopModel * | ) |
Create Iterator for elements.
void topElemItr_Destroy | ( | TopElemItr * | ) |
Destroy Iterator.
void topElemItr_Begin | ( | TopElemItr * | ) |
Initialize Iterator.
bool topElemItr_IsValid | ( | TopElemItr * | ) |
Determine if Iterator is valid or if it has iterated past last Element.
void topElemItr_Next | ( | TopElemItr * | ) |
Increment iterator.
TopElement topElemItr_GetCurr | ( | TopElemItr * | ) |
Get TopElement associated with the iterator.
void topModel_TestIterators | ( | TopModel * | m | ) |
Perform sanity check on iterators.
This checks to make sure that the count of the itereated elements and nodes matches that returned by ParFUM's countValid()
void top_retrieve_elem_data | ( | TopModel * | m | ) |
void top_retrieve_node_data | ( | TopModel * | m | ) |
void top_put_node_data | ( | TopModel * | m | ) |
TopNodeElemItr* topModel_CreateNodeElemItr | ( | TopModel * | m, | |
TopNode | n | |||
) |
bool topNodeElemItr_IsValid | ( | TopNodeElemItr * | neitr | ) |
void topNodeElemItr_Next | ( | TopNodeElemItr * | neitr | ) |
TopElement topNodeElemItr_GetCurr | ( | TopNodeElemItr * | neitr | ) |
void topNodeElemItr_Destroy | ( | TopNodeElemItr * | neitr | ) |
TopElement topFacet_GetElem | ( | TopModel * | m, | |
TopFacet | f, | |||
int | i | |||
) |
bool topElement_IsValid | ( | TopModel * | m, | |
TopElement | e | |||
) |
TopFacetItr* topModel_CreateFacetItr | ( | TopModel * | m | ) |
void topFacetItr_Begin | ( | TopFacetItr * | itr | ) |
bool topFacetItr_IsValid | ( | TopFacetItr * | itr | ) |
void topFacetItr_Next | ( | TopFacetItr * | itr | ) |
TopFacet topFacetItr_GetCurr | ( | TopFacetItr * | itr | ) |
void topFacetItr_Destroy | ( | TopFacetItr * | itr | ) |