Commit 3f38f10f authored by COULAUD Olivier's avatar COULAUD Olivier

Remove warning for Gcov

parent 55c6670c
......@@ -37,7 +37,7 @@ MESSAGE(STATUS "CMAKE_CXX_COMPILER_ID ${CMAKE_CXX_COMPILER_ID}")
ELSE()
SET(GCOV_CXX_FLAGS "")
SET(GCOV_LINKER_FLAGS "")
MESSAGE(WARNING "Could not find gcov - No Coverage option for Tests")
MESSAGE(STATUS "Could not find gcov in your path - No Coverage option for Tests")
ENDIF()
......
......@@ -81,19 +81,24 @@ class TestRotationDirectSeveralTime : public FUTester<TestRotationDirectSeveralT
FmmClass algo(&tree,&kernels);
// execute FMM algorithm twice
for(int idxTime = 0 ; idxTime < 2 ; ++idxTime){
int nbloops = 2;
for(int idxTime = 0 ; idxTime < nbloops ; ++idxTime){
Print(idxTime);
algo.execute();
//
// Reset cells information
Print("Reset all cells in the Octree...");
tree.forEachCell([&](CellClass* cell){
cell->resetToInitialState();
});
// If we want to reset the leaf
//tree.forEachLeaf([&](LeafClass* leaf){
// leaf->resetToInitialState();
//}
if(idxTime != nbloops-1 ){
Print("Reset all cells in the Octree...");
tree.forEachCell([&](CellClass* cell){
cell->resetToInitialState();
});
Print("Reset all leafs in the Octree...");
// If we want to reset the leaf
tree.forEachLeaf([&](LeafClass* leaf){
leaf->getTargets()->resetToInitialState();
});
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////
// Compare
......@@ -212,7 +217,6 @@ class TestRotationDirectSeveralTime : public FUTester<TestRotationDirectSeveralT
/** set test */
void SetTests(){
AddTest(&TestRotationDirectSeveralTime::TestRotation,"Test Rotation Kernel");
std::cout << "WARNING THIS TEST NEEDS TO IMPLEMENT leaf->resetToInitialState();"<<std::endl;
}
};
......
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