From 30ea4ba95f3f9a02bedef34784b4f5bd20b470ef Mon Sep 17 00:00:00 2001 From: Martin Khannouz Date: Thu, 26 May 2016 10:14:52 +0200 Subject: [PATCH] blockedImplicitChebyshev, fix reading particle from file --- Tests/GroupTree/testBlockedImplicitChebyshev.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tests/GroupTree/testBlockedImplicitChebyshev.cpp b/Tests/GroupTree/testBlockedImplicitChebyshev.cpp index c386cacd..4096a4fb 100644 --- a/Tests/GroupTree/testBlockedImplicitChebyshev.cpp +++ b/Tests/GroupTree/testBlockedImplicitChebyshev.cpp @@ -59,7 +59,7 @@ using namespace std; typedef FStarPUCpuWrapper GroupCpuWrapper; typedef FGroupTaskStarPUImplicitAlgorithm GroupAlgorithm; -//#define LOAD_FILE +#define LOAD_FILE #ifndef LOAD_FILE typedef FRandomLoader LoaderClass; #else @@ -122,7 +122,8 @@ int main(int argc, char* argv[]){ LoaderClass loader(NbParticles, 1.0, FPoint(0,0,0)); #else for(FSize idxPart = 0 ; idxPart < loader.getNumberOfParticles() ; ++idxPart){ - loader.fillParticle(&allParticlesToSort[idxPart]);//Same with file or not + FReal physicalValue = 0.1; + loader.fillParticle(&allParticlesToSort[idxPart], &physicalValue);//Same with file or not } #endif @@ -139,6 +140,7 @@ int main(int argc, char* argv[]){ //GroupOctreeClass groupedTree(NbLevels, loader.getBoxWidth(), loader.getCenterOfBox(), groupSize, &allParticles, false); GroupOctreeClass groupedTree(NbLevels, loader.getBoxWidth(), loader.getCenterOfBox(), groupSize, &allParticles, sizeForEachGroup, true); + groupedTree.printInfoBlocks(); // Run the algorithm int operationsToProceed = FFmmP2M | FFmmM2M | FFmmM2L | FFmmL2L | FFmmL2P | FFmmP2P; @@ -276,7 +278,7 @@ void timeAverage(int mpi_rank, int nproc, double elapsedTime) if(tmp > sumElapsedTime) sumElapsedTime = tmp; } - std::cout << "Average time per node (implicit Cheby) : " << sumElapsedTime << "s" << std::endl; + std::cout << std::endl << "Average time per node (implicit Cheby) : " << sumElapsedTime << "s" << std::endl << std::endl; } else { -- GitLab