Skip to content

Commit

Permalink
Remove unnecessary printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleDavisSA authored Jun 19, 2019
1 parent 03f223a commit 10938d8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions adapter/CCXHelpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ void getSurfaceElementsAndFaces( ITG setID, ITG * ialset, ITG * istartset, ITG *
{
elements[k] = ialset[i] / 10;
faces[k] = ialset[i] % 10;
//printf("faces[k] = %d \n", faces[k]);
k++;
}
//printf( "The elements in the getSurfaceElementsAndFaces are = %d\n", elements);
}

void getNodeCoordinates( ITG * nodes, ITG numNodes, double * co, double * v, int mt, double * coordinates )
Expand All @@ -85,7 +83,6 @@ void getNodeCoordinates( ITG * nodes, ITG numNodes, double * co, double * v, int
coordinates[i * 3 + 0] = co[nodeIdx * 3 + 0] + v[nodeIdx * mt + 1];
coordinates[i * 3 + 1] = co[nodeIdx * 3 + 1] + v[nodeIdx * mt + 2];
coordinates[i * 3 + 2] = co[nodeIdx * 3 + 2] + v[nodeIdx * mt + 3];

}
}

Expand Down Expand Up @@ -222,7 +219,6 @@ void getTetraFaceCenters( ITG * elements, ITG * faces, ITG numElements, ITG * ko

void getTetraFaceNodes( ITG * elements, ITG * faces, ITG * nodes, ITG numElements, ITG numNodes, ITG * kon, ITG * ipkon, int * tetraFaceNodes )
{
//printf("Entering getTetraFaceNodes \n");
// Assume all tetra elements -- maybe implement checking later...

// Node numbering for faces of tetrahedral elements (in the documentation the number is + 1)
Expand All @@ -238,23 +234,18 @@ void getTetraFaceNodes( ITG * elements, ITG * faces, ITG * nodes, ITG numElement
ITG faceIdx = faces[i] - 1;
ITG elementIdx = elements[i] - 1;

//printf("Element number is = %d \n", elementIdx);

for( j = 0 ; j < 3 ; j++ )
{

ITG nodeNum = faceNodes[faceIdx][j];
ITG nodeID = kon[ipkon[elementIdx] + nodeNum];

//printf("nodeID number is = %d \n", nodeID);

for( k = 0 ; k < numNodes ; k++ )
{

if( nodes[k] == nodeID )
{
tetraFaceNodes[i*3 + j] = k;
// printf("tetraFaceNodes = %d \n", tetraFaceNodes[i*3 + j]);
}
}

Expand Down Expand Up @@ -475,8 +466,6 @@ void setNodeForces( ITG * nodes, double * forces, ITG numNodes, int * xforcIndic
xforc[xforcIndices[3 * i + 1]] = forces[3 * i + 1];
// z-component
xforc[xforcIndices[3 * i + 2]] = forces[3 * i + 2];

printf("Forces on the surface are %f, %f and %f \n", xforc[xforcIndices[3 * i]],xforc[xforcIndices[3 * i + 1]],xforc[xforcIndices[3 * i + 2]]);
}
}

Expand Down

0 comments on commit 10938d8

Please sign in to comment.