Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit e4486641 authored by COULAUD Olivier's avatar COULAUD Olivier

Fix bug with new template<int READ, int WRITE> class FmaRWParticle in getPotential, getForces, ...

parent 774b98e1
......@@ -76,7 +76,7 @@ public:
//Get a FReal from the potential
FReal getPotential() const{
FAssertLF(READ>4,"Cannot access to Potential with READ<=4");
FAssertLF(WRITE>4,"Cannot access to Potential with READ<=4");
return data[4];
}
......@@ -88,7 +88,7 @@ public:
//Get a ptr to read the forces
FReal* getForces() {
FAssertLF(READ>7,"Cannot access to forces[] with READ<=8");
FAssertLF(WRITE>7,"Cannot access to forces[] with READ<=8");
return &data[5];
}
......
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