Commit 596f8b80 authored by berenger-bramas's avatar berenger-bramas

Add private visibility to FMM methods.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@238 2616d619-271b-44dc-8df4-d4a8f33a7222
parent cf022782
......@@ -66,6 +66,7 @@ public:
directPass();
}
private:
/////////////////////////////////////////////////////////////////////////////
// P2M
/////////////////////////////////////////////////////////////////////////////
......
......@@ -111,6 +111,7 @@ public:
}
private:
/////////////////////////////////////////////////////////////////////////////
// P2M
/////////////////////////////////////////////////////////////////////////////
......
......@@ -192,34 +192,7 @@ public:
}
/////////////////////////////////////////////////////////////////////////////
// Utils functions
/////////////////////////////////////////////////////////////////////////////
int getLeft(const int inSize) const {
const float step = (float(inSize) / nbProcess);
return int(FMath::Ceil(step * idProcess));
}
int getRight(const int inSize) const {
const float step = (float(inSize) / nbProcess);
const int res = int(FMath::Ceil(step * (idProcess+1)));
if(res > inSize) return inSize;
else return res;
}
int getOtherRight(const int inSize,const int other) const {
const float step = (float(inSize) / nbProcess);
const int res = int(FMath::Ceil(step * (other+1)));
if(res > inSize) return inSize;
else return res;
}
int getProc(const int position, const int inSize) const {
const float step = (float(inSize) / nbProcess);
return int(position/step);
}
private:
/////////////////////////////////////////////////////////////////////////////
// P2M
......
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