Mentions légales du service

Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -190,6 +190,21 @@ public: ...@@ -190,6 +190,21 @@ public:
return this->array[inPosition]; 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 /** This class is a basic iterator
* <code> * <code>
* typename FVector<int>::ConstBasicIterator iter(myVector);<br> * typename FVector<int>::ConstBasicIterator iter(myVector);<br>
......
This diff is collapsed.
...@@ -212,34 +212,6 @@ void print(OctreeClass* const valideTree){ ...@@ -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 { struct ParticlesGroup {
int number; int number;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment