Skip to content

Commit

Permalink
Remove remnants of helper functions that are no longer used or implem…
Browse files Browse the repository at this point in the history
…ented (#132)
  • Loading branch information
IshaanDesai authored Nov 18, 2024
1 parent 8eb1d43 commit 5355a9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 58 deletions.
14 changes: 0 additions & 14 deletions adapter/CCXHelpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,6 @@ void getNodeVelocities(ITG *nodes, ITG numNodes, int dim, double *ve, ITG mt, do
}
}

/*
int getNodesPerFace(char * lakon, int elementIdx) {
int nodesPerFace;
if(strcmp1(&lakon[elementIdx * 8], "C3D4") == 0) {
nodesPerFace = 3;
} else if(strcmp1(&lakon[elementIdx * 8], "C3D10") == 0) {
nodesPerFace = 6;
}
return nodesPerFace;
}
*/

void getTetraFaceCenters(ITG *elements, ITG *faces, ITG numElements, ITG *kon, ITG *ipkon, double *co, double *faceCenters)
{

Expand Down
44 changes: 0 additions & 44 deletions adapter/CCXHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,50 +366,6 @@ bool isQuasi2D3D(const int quasi2D3D);
*/
void setDoubleArrayZero(double *values, const int length, const int dim);

/**
* @brief Maps vector data from 2D mesh nodes to 3D mesh nodes
* @param values2D is the array of vector values on 2D mesh nodes
* @param mapping2D3D is a mapping between indices of 2D mesh and 3D mesh
* @param numNodes3D the number of nodes on 3D mesh
* @param values3D is the array of vector values on 3D mesh nodes
*/
void mapData2Dto3DVector(const double *values2D, const int *mapping2D3D, const int numNodes3D, double *values3D);

/**
* @brief Maps vector data from 3D mesh nodes to 2D mesh nodes
* @param values3D is the array of vector values on 3D mesh nodes
* @param mapping2D3D is a mapping between indices of 2D mesh and 3D mesh
* @param numNodes3D the number of nodes on 3D mesh
* @param values2D is the array of vector values on 2D mesh nodes
*/
void mapData3Dto2DVector(const double *values3D, const int *mapping2D3D, const int numNodes3D, double *values2D);

/**
* @brief Maps data from 2D mesh nodes to 3D mesh nodes
* @param values2D is the array of values on 2D mesh nodes
* @param mapping2D3D is a mapping between indices of 2D mesh and 3D mesh
* @param numNodes3D the number of nodes on 3D mesh
* @param values3D is the array of values on 3D mesh nodes
*/
void mapData2Dto3DScalar(const double *values2D, const int *mapping2D3D, const int numNodes3D, double *values3D);

/**
* @brief Maps vector data from 3D mesh nodes to 2D mesh nodes
* @param values3D is the array of values on 3D mesh nodes
* @param mapping2D3D is a mapping between indices of 2D mesh and 3D mesh
* @param numNodes3D the number of nodes on 3D mesh
* @param values2D is the array of values on 2D mesh nodes
*/
void mapData3Dto2DScalar(const double *values3D, const int *mapping2D3D, const int numNodes3D, double *values2D);

/**
* @brief Prints contents of a multi-dimension array
* @param values is the array carrying double values
* @param length is the number of elements in array
* @param dim is the dimension of the array data
*/
void printVectorData(const double *values, const int nv, const int dim);

/* Error messages */

/**
Expand Down

0 comments on commit 5355a9b

Please sign in to comment.