Commit e1cc54c3 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

update utest

parent 236ddb9f
...@@ -54,7 +54,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> { ...@@ -54,7 +54,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
Print(loader.getNumberOfParticles()); Print(loader.getNumberOfParticles());
const int NbLevels = 4; const int NbLevels = 4;
const int SizeSubLevels = 2; const int SizeSubLevels = 3;
struct TestParticle{ struct TestParticle{
...@@ -64,14 +64,13 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> { ...@@ -64,14 +64,13 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
FReal potential; FReal potential;
}; };
TestParticle* const particlesSources = new TestParticle[nbSources];
TestParticle* const particlesTargets = new TestParticle[nbTargets];
// Create octree // Create octree
OctreeClass tree(NbLevels, SizeSubLevels, loader.getBoxWidth(), loader.getCenterOfBox()); OctreeClass tree(NbLevels, SizeSubLevels, loader.getBoxWidth(), loader.getCenterOfBox());
const FReal physicalValue = 0.10; const FReal physicalValue = 0.10;
TestParticle* const particlesTargets = new TestParticle[nbTargets];
for(int idxPart = 0 ; idxPart < nbTargets ; ++idxPart){ for(int idxPart = 0 ; idxPart < nbTargets ; ++idxPart){
FPoint position; FPoint position;
loader.fillParticle(&position); loader.fillParticle(&position);
...@@ -86,6 +85,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> { ...@@ -86,6 +85,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
particlesTargets[idxPart].forces[2] = 0.0; particlesTargets[idxPart].forces[2] = 0.0;
} }
TestParticle* const particlesSources = new TestParticle[nbSources];
for(int idxPart = 0 ; idxPart < nbSources ; ++idxPart){ for(int idxPart = 0 ; idxPart < nbSources ; ++idxPart){
FPoint position; FPoint position;
loader.fillParticle(&position); loader.fillParticle(&position);
...@@ -228,7 +228,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> { ...@@ -228,7 +228,7 @@ class TestRotationDirectTsm : public FUTester<TestRotationDirectTsm> {
/** set test */ /** set test */
void SetTests(){ void SetTests(){
AddTest(&TestRotationDirectTsm::TestRotation,"Test Rotation Kernel TSM"); AddTest(&TestRotationDirectTsm::TestRotation,"Test Rotation Kernel TSM");
AddTest(&TestRotationDirectTsm::TestRotation,"Test Rotation Kernel TSM thread"); AddTest(&TestRotationDirectTsm::TestRotationThread,"Test Rotation Kernel TSM thread");
} }
}; };
......
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