Commit 26dbd6bb authored by frey_m's avatar frey_m
Browse files

SAAMG: remove unused function getNumXY

parent 69262ba0
...@@ -257,11 +257,6 @@ inline bool ArbitraryDomain::isInside(int idx, int idy, int idz) { ...@@ -257,11 +257,6 @@ inline bool ArbitraryDomain::isInside(int idx, int idy, int idz) {
return IsInsideMap[toCoordIdx(idx, idy, idz)]; return IsInsideMap[toCoordIdx(idx, idy, idz)];
} }
int ArbitraryDomain::getNumXY(int z) {
return numXY[z];
}
void ArbitraryDomain::constantInterpolation(int idx, int idy, int idz, void ArbitraryDomain::constantInterpolation(int idx, int idy, int idz,
StencilValue_t& value, double& /*scaleFactor*/) StencilValue_t& value, double& /*scaleFactor*/)
{ {
......
...@@ -53,8 +53,6 @@ public: ...@@ -53,8 +53,6 @@ public:
/// queries if a given (x,y,z) coordinate lies inside the domain /// queries if a given (x,y,z) coordinate lies inside the domain
bool isInside(int idx, int idy, int idz); bool isInside(int idx, int idy, int idz);
/// returns number of nodes in xy plane
int getNumXY(int z);
// calculates intersection with rotated and shifted geometry // calculates intersection with rotated and shifted geometry
void compute(Vector_t hr, NDIndex<3> localId); void compute(Vector_t hr, NDIndex<3> localId);
......
...@@ -90,10 +90,6 @@ public: ...@@ -90,10 +90,6 @@ public:
std::string interpl); std::string interpl);
~BoxCornerDomain(); ~BoxCornerDomain();
/// we do not need this
int getNumXY(int /*z*/) { return -1;}
/// as a function of z, determine the hight (B) of the geometry /// as a function of z, determine the hight (B) of the geometry
inline double getB(double z) { inline double getB(double z) {
if((z < min_m(2)) || (z > max_m(2))) if((z < min_m(2)) || (z > max_m(2)))
......
...@@ -58,9 +58,6 @@ public: ...@@ -58,9 +58,6 @@ public:
return (isInsideEllipse && z > 0 && z < nr_m[2] - 1); return (isInsideEllipse && z > 0 && z < nr_m[2] - 1);
} }
int getNumXY(int /*z*/) { return nxy_m; }
/// calculates intersection /// calculates intersection
void compute(Vector_t hr, NDIndex<3> localId); void compute(Vector_t hr, NDIndex<3> localId);
......
...@@ -66,11 +66,6 @@ public: ...@@ -66,11 +66,6 @@ public:
* \param hr updated mesh spacings * \param hr updated mesh spacings
*/ */
virtual void compute(Vector_t hr, NDIndex<3> localId) = 0; virtual void compute(Vector_t hr, NDIndex<3> localId) = 0;
/** method to get the number of gridpoints in a given z plane
* \param z coordinate of the z plane
* \return int number of grid nodes in the given z plane
*/
virtual int getNumXY(int z) = 0;
/// method to calculate the stencil at a boundary points /// method to calculate the stencil at a boundary points
/// \param x index of the current element in the matrix /// \param x index of the current element in the matrix
......
...@@ -41,10 +41,6 @@ void RectangularDomain::compute(Vector_t hr, NDIndex<3> /*localId*/){ ...@@ -41,10 +41,6 @@ void RectangularDomain::compute(Vector_t hr, NDIndex<3> /*localId*/){
nxy_m = nr_m[0] * nr_m[1]; nxy_m = nr_m[0] * nr_m[1];
} }
int RectangularDomain::getNumXY(int /*z*/) {
return nxy_m;
}
void RectangularDomain::constantInterpolation(int x, int y, int z, StencilValue_t& value, void RectangularDomain::constantInterpolation(int x, int y, int z, StencilValue_t& value,
double &scaleFactor) double &scaleFactor)
{ {
......
...@@ -46,9 +46,6 @@ public: ...@@ -46,9 +46,6 @@ public:
/// calculates intersection with the beam pipe /// calculates intersection with the beam pipe
void compute(Vector_t hr, NDIndex<3> /*localId*/); void compute(Vector_t hr, NDIndex<3> /*localId*/);
/// returns number of nodes in xy plane (here independent of z coordinate)
int getNumXY(int z);
/// returns index of neighbours at (x,y,z) /// returns index of neighbours at (x,y,z)
using IrregularDomain::getNeighbours; using IrregularDomain::getNeighbours;
/// queries if a given (x,y,z) coordinate lies inside the domain /// queries if a given (x,y,z) coordinate lies inside the domain
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment