Skip to content

Commit

Permalink
Merge pull request SINTEF-Geometry#361 from sbriseid/shared_build_fix
Browse files Browse the repository at this point in the history
Shared build fix
  • Loading branch information
sbriseid authored Sep 18, 2024
2 parents 8886815 + 72fd820 commit 634fb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lrsplines2D/src/LRApproxApp.C
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void LRApproxApp::pointCloud2Spline(vector<double>& points,
}
}

int compare_u_par(const void* el1, const void* el2)
static int compare_u_par(const void* el1, const void* el2)
{
if (((double*)el1)[0] < ((double*)el2)[0])
return -1;
Expand All @@ -375,7 +375,7 @@ int compare_u_par(const void* el1, const void* el2)
return 0;
}

int compare_v_par(const void* el1, const void* el2)
static int compare_v_par(const void* el1, const void* el2)
{
if (((double*)el1)[1] < ((double*)el2)[1])
return -1;
Expand Down
8 changes: 4 additions & 4 deletions lrsplines2D/src/TrimUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ using std::pair;

//#define DEBUG

int compare_u_par_trim(const void* el1, const void* el2)
static int compare_u_par(const void* el1, const void* el2)
{
if (((double*)el1)[0] < ((double*)el2)[0])
return -1;
Expand All @@ -61,7 +61,7 @@ int compare_u_par_trim(const void* el1, const void* el2)
return 0;
}

int compare_v_par_trim(const void* el1, const void* el2)
static int compare_v_par(const void* el1, const void* el2)
{
if (((double*)el1)[1] < ((double*)el2)[1])
return -1;
Expand Down Expand Up @@ -431,7 +431,7 @@ void TrimUtils::distributePointCloud(int ix1, int ix2,
// Sort points in v-direction
int nmb_pts = (ix2 - ix1)/del;
double *points = points_+ix1;
qsort(points, nmb_pts, del*sizeof(double), compare_v_par_trim);
qsort(points, nmb_pts, del*sizeof(double), compare_v_par);

#ifdef DEBUG
std::ofstream of("division_lines.g2");
Expand Down Expand Up @@ -474,7 +474,7 @@ void TrimUtils::distributePointCloud(int ix1, int ix2,
}

// Sort according to the u-parameter
qsort(points+pp0, (pp1-pp0)/del, del*sizeof(double), compare_u_par_trim);
qsort(points+pp0, (pp1-pp0)/del, del*sizeof(double), compare_u_par);

for (kj=0, pp2=pp0, upar=domain[0]+u_del; kj<nmb_u;
++kj, upar+=u_del, pp2=pp3, ++kr)
Expand Down

0 comments on commit 634fb82

Please sign in to comment.