Commit 35339bc6 authored by berenger-bramas's avatar berenger-bramas
Browse files

Work in Progress for MPI

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@157 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 100d7fe1
......@@ -190,6 +190,21 @@ public:
return this->array[inPosition];
}
/** To get the entire array
* @return the array allocated by the vector
*/
T* data(){
return this->array;
}
/** To get the entire array
* @return the array allocated by the vector
*/
const T* data() const{
return this->array;
}
/** This class is a basic iterator
* <code>
* typename FVector<int>::ConstBasicIterator iter(myVector);<br>
......
This diff is collapsed.
......@@ -212,34 +212,6 @@ void print(OctreeClass* const valideTree){
}
}
class MyFackParticle : public FBasicParticle {
int myIndex;
public:
MyFackParticle() : myIndex(0) {
}
void setIndex(const int inIndex){
this->myIndex = inIndex;
}
int getIndex() const{
return this->myIndex;
}
};
// My leaf store the indexes of the particles it receives
// in a vector
class MyLeaf : public FAbstractLeaf<MyFackParticle, FVector<int> > {
FVector<int> indexes;
public:
void push(const MyFackParticle& particle){
indexes.push( particle.getIndex() );
}
FVector<int>* getSrc(){
return &indexes;
}
FVector<int>* getTargets(){
return &indexes;
}
};
struct ParticlesGroup {
int number;
......
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