Commit 0b61b0b7 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

remove not use method for advanced usage of particle container

parent cb93d832
......@@ -6,8 +6,8 @@
#include "FGroupAttachedLeaf.hpp"
template<int NRHS = 1, int NLHS = 1>
class FP2PGroupParticleContainer : public FGroupAttachedLeaf<NRHS, 4*NLHS, FReal> {
template<int NRHS = 1, int NLHS = 1, int NVALS = 1>
class FP2PGroupParticleContainer : public FGroupAttachedLeaf<NVALS*NRHS, NVALS*4*NLHS, FReal> {
typedef FGroupAttachedLeaf<NVALS*NRHS, NVALS*4*NLHS, FReal> Parent;
public:
......@@ -18,7 +18,6 @@ public:
}
FReal* getPhysicalValues(const int idxVals = 0, const int idxRhs = 0){
return Parent::getAttribute((0+idxRhs)*NVALS+idxVals);
}
......@@ -27,18 +26,6 @@ public:
return Parent::getAttribute((0+idxRhs)*NVALS+idxVals);
}
FReal* getPhysicalValuesArray(const int idxVals = 0, const int idxRhs = 0){
return Parent::getRawData() + ((0+idxRhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
const FReal* getPhysicalValuesArray(const int idxVals = 0, const int idxRhs = 0) const {
return Parent::getRawData() + ((0+idxRhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
int getLeadingDimension(){
return Parent::getLeadingRawData();
}
FReal* getPotentials(const int idxVals = 0, const int idxLhs = 0){
return Parent::getAttribute((NRHS+idxLhs)*NVALS+idxVals);
}
......@@ -47,14 +34,6 @@ public:
return Parent::getAttribute((NRHS+idxLhs)*NVALS+idxVals);
}
FReal* getPotentialsArray(const int idxVals = 0, const int idxLhs = 0){
return Parent::getRawData() + ((NRHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
const FReal* getPotentialsArray(const int idxVals = 0, const int idxLhs = 0) const {
return Parent::getRawData() + ((NRHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
FReal* getForcesX(const int idxVals = 0, const int idxLhs = 0){
return Parent::getAttribute((NRHS+NLHS+idxLhs)*NVALS+idxVals);
}
......@@ -63,14 +42,6 @@ public:
return Parent::getAttribute((NRHS+NLHS+idxLhs)*NVALS+idxVals);
}
FReal* getForcesXArray(const int idxVals = 0, const int idxLhs = 0){
return Parent::getRawData() + ((NRHS+NLHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
const FReal* getForcesXArray(const int idxVals = 0, const int idxLhs = 0) const {
return Parent::getRawData() + ((NRHS+NLHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
FReal* getForcesY(const int idxVals = 0, const int idxLhs = 0){
return Parent::getAttribute((NRHS+2*NLHS+idxLhs)*NVALS+idxVals);
}
......@@ -79,14 +50,6 @@ public:
return Parent::getAttribute((NRHS+2*NLHS+idxLhs)*NVALS+idxVals);
}
FReal* getForcesYArray(const int idxVals = 0, const int idxLhs = 0){
return Parent::getRawData() + ((NRHS+2*NLHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
const FReal* getForcesYArray(const int idxVals = 0, const int idxLhs = 0) const {
return Parent::getRawData() + ((NRHS+2*NLHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
FReal* getForcesZ(const int idxVals = 0, const int idxLhs = 0){
return Parent::getAttribute((NRHS+3*NLHS+idxLhs)*NVALS+idxVals);
}
......@@ -95,14 +58,6 @@ public:
return Parent::getAttribute((NRHS+3*NLHS+idxLhs)*NVALS+idxVals);
}
FReal* getForcesZArray(const int idxVals = 0, const int idxLhs = 0){
return Parent::getRawData() + ((NRHS+3*NLHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
const FReal* getForcesZArray(const int idxVals = 0, const int idxLhs = 0) const {
return Parent::getRawData() + ((NRHS+3*NLHS+idxLhs)*NVALS+idxVals)*Parent::getLeadingRawData();
}
void resetForcesAndPotential(){
for(int idx = 0 ; idx < 4*NLHS*NVALS ; ++idx){
Parent::resetToInitialState(idx + NRHS*NVALS);
......
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