Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit ea7ce140 authored by frey_m's avatar frey_m
Browse files

ArbitraryDomain: remove unused functions crossProduct and dotProduct

parent 2f2823ca
No related branches found
No related tags found
1 merge request!396Resolve "Code duplication in Domains"
......@@ -460,12 +460,6 @@ void ArbitraryDomain::linearInterpolation(int idx, int idy, int idz,
value.center += (dz_f + dz_b) * (dx_w + dx_e) * (dy_n + dy_s) / m2;
}
inline void ArbitraryDomain::crossProduct(double A[], double B[], double C[]) {
C[0] = A[1] * B[2] - A[2] * B[1];
C[1] = A[2] * B[0] - A[0] * B[2];
C[2] = A[0] * B[1] - A[1] * B[0];
}
// vi: set et ts=4 sw=4 sts=4:
// Local Variables:
// mode:c
......
......@@ -94,12 +94,6 @@ private:
// Conversion from a 3D index to (x,y,z)
inline void getCoord(int idxyz, int &x, int &y, int &z);
inline void crossProduct(double A[], double B[], double C[]);
inline double dotProduct(double v1[], double v2[]) {
return (v1[0] * v2[0] + v1[1] * v2[1] + v1[2] * v2[2]);
}
// Different interpolation methods for boundary points
void constantInterpolation(int idx, int idy, int idz, StencilValue_t& value,
double &scaleFactor) override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment