Commit 4e4825c3 authored by COULAUD Olivier's avatar COULAUD Olivier

utestChebyshevMultiRhs and utestChebyshev have the same format

parent 70c4c178
...@@ -63,7 +63,7 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> { ...@@ -63,7 +63,7 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
const std::string parFile( (sizeof(FReal) == sizeof(float))? const std::string parFile( (sizeof(FReal) == sizeof(float))?
"Test/DirectFloatbfma": "Test/DirectFloat.bfma":
"UTest/DirectDouble.bfma"); "UTest/DirectDouble.bfma");
// //
std::string filename(SCALFMMDataPath+parFile); std::string filename(SCALFMMDataPath+parFile);
...@@ -75,16 +75,16 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> { ...@@ -75,16 +75,16 @@ class TestChebyshevDirect : public FUTester<TestChebyshevDirect> {
const int NbLevels = 4; const int NbLevels = 4;
const int SizeSubLevels = 2; const int SizeSubLevels = 2;
// Create octree
FSize nbParticles = loader.getNumberOfParticles() ; FSize nbParticles = loader.getNumberOfParticles() ;
FmaR8W8Particle* const particles = new FmaR8W8Particle[nbParticles]; FmaR8W8Particle* const particles = new FmaR8W8Particle[nbParticles];
loader.fillParticle(particles,nbParticles); loader.fillParticle(particles,nbParticles);
// //
// Create octree
OctreeClass tree(NbLevels, SizeSubLevels, loader.getBoxWidth(), loader.getCenterOfBox());
// Insert particle in the tree // Insert particle in the tree
// //
OctreeClass tree(NbLevels, SizeSubLevels, loader.getBoxWidth(), loader.getCenterOfBox());
for(int idxPart = 0 ; idxPart < loader.getNumberOfParticles() ; ++idxPart){ for(int idxPart = 0 ; idxPart < loader.getNumberOfParticles() ; ++idxPart){
tree.insert(particles[idxPart].position , idxPart, particles[idxPart].physicalValue ); tree.insert(particles[idxPart].position , idxPart, particles[idxPart].physicalValue );
} }
......
This diff is collapsed.
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