Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remnants of helper functions that are no longer used or implemented #132

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading