Commit 61fcc94b authored by berenger-bramas's avatar berenger-bramas

Change the comment in the files.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@276 2616d619-271b-44dc-8df4-d4a8f33a7222
parent e862a0be
......@@ -13,7 +13,7 @@ OPTION( SCALFMM_USE_TRACE "Set to ON to print trace or use itac trace" OFF )
OPTION( SCALFMM_BUILD_TESTS "Set to ON to build fonctionnalities Tests" ON )
OPTION( SCALFMM_BUILD_UTESTS "Set to ON to build UTests" ON )
OPTION( SCALFMM_BUILD_DEBUG "Set to ON to build in Debug" OFF )
OPTION( SCALFMM_USE_MEM_STATS "Set to ON to profile memory" ON )
OPTION( SCALFMM_USE_MEM_STATS "Set to ON to profile memory" OFF )
# MPI option has to be set before project
......@@ -28,6 +28,9 @@ project(scalfmm CXX)
MESSAGE( STATUS "SCALFMM_BUILD_DEBUG = ${SCALFMM_BUILD_DEBUG}" )
if( SCALFMM_BUILD_DEBUG )
SET(CMAKE_BUILD_TYPE Debug)
ADD_DEFINITIONS(-O0)
else()
ADD_DEFINITIONS(-O2)
endif()
# Trace
......@@ -51,7 +54,7 @@ if( SCALFMM_USE_CBLAS )
endif()
# Compile option
ADD_DEFINITIONS(-O2 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion)
ADD_DEFINITIONS(-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion)
CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/Src/ScalFmmConfig.h.cmake
${CMAKE_BINARY_DIR}/Src/ScalFmmConfig.h )
......
#ifndef FABSTRACTCELL_HPP
#define FABSTRACTCELL_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......@@ -83,4 +83,4 @@ public:
#endif //FABSTRACTCELL_HPP
// [--LICENSE--]
// [--END--]
#ifndef FABSTRACTKERNELS_HPP
#define FABSTRACTKERNELS_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......@@ -97,4 +97,4 @@ public:
#endif //FABSTRACTKERNELS_HPP
// [--LICENSE--]
// [--END--]
#ifndef FABSTRACTLEAF_HPP
#define FABSTRACTLEAF_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
/**
......@@ -47,4 +47,4 @@ public:
#endif //FABSTRACTLEAF_HPP
// [--LICENSE--]
// [--END--]
#ifndef FABSTRACTPARTICLE_HPP
#define FABSTRACTPARTICLE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
/* forward declaration to avoid include */
class F3DPosition;
......@@ -38,4 +38,4 @@ public:
#endif //FABSTRACTPARTICLE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FBASICCELL_HPP
#define FBASICCELL_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Extensions/FExtendPosition.hpp"
#include "../Extensions/FExtendMortonIndex.hpp"
......@@ -27,4 +27,4 @@ public:
#endif //FBASICCELL_HPP
// [--LICENSE--]
// [--END--]
#ifndef FBASICKERNELS_HPP
#define FBASICKERNELS_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FAbstractKernels.hpp"
......@@ -65,4 +65,4 @@ public:
#endif //FBASICKERNELS_HPP
// [--LICENSE--]
// [--END--]
#ifndef FBASICPARTICLE_HPP
#define FBASICPARTICLE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Extensions/FExtendPosition.hpp"
......@@ -25,4 +25,4 @@ public:
#endif //FBASICPARTICLE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFmaPARTICLE_HPP
#define FFmaPARTICLE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FBasicParticle.hpp"
#include "../Extensions/FExtendPhysicalValue.hpp"
......@@ -23,4 +23,4 @@ public:
#endif //FFmaPARTICLE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FSIMPLELEAF_HPP
#define FSIMPLELEAF_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FAbstractLeaf.hpp"
......@@ -50,4 +50,4 @@ public:
#endif //FSIMPLELEAF_HPP
// [--LICENSE--]
// [--END--]
#ifndef FTESTCELL_HPP
#define FTESTCELL_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FBasicCell.hpp"
......@@ -45,4 +45,4 @@ public:
#endif //FTESTCELL_HPP
// [--LICENSE--]
// [--END--]
#ifndef FTESTKERNELS_HPP
#define FTESTKERNELS_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
......@@ -194,4 +194,4 @@ void ValidateFMMAlgo(OctreeClass* const tree){
#endif //FTESTKERNELS_HPP
// [--LICENSE--]
// [--END--]
#ifndef FTESTPARTICLE_HPP
#define FTESTPARTICLE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FBasicParticle.hpp"
......@@ -38,4 +38,4 @@ public:
#endif //FTESTPARTICLE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FTYPEDLEAF_HPP
#define FTYPEDLEAF_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FAssertable.hpp"
#include "FAbstractLeaf.hpp"
......@@ -54,4 +54,4 @@ public:
#endif //FTYPEDLEAF_HPP
// [--LICENSE--]
// [--END--]
#ifndef FBOOLARRAY_HPP
#define FBOOLARRAY_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
// To get memcpy
#include <cstring>
......@@ -102,4 +102,4 @@ public :
#endif //FBOOLARRAY_HPP
// [--LICENSE--]
// [--END--]
#ifndef FLIST_HPP
#define FLIST_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......@@ -284,4 +284,4 @@ public:
};
#endif //FLIST_HPP
// [--LICENSE--]
// [--END--]
#ifndef FOCTREE_HPP
#define FOCTREE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FSubOctree.hpp"
......@@ -1005,4 +1005,4 @@ public:
};
#endif //FOCTREE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FSUBOCTREE_HPP
#define FSUBOCTREE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/F3DPosition.hpp"
......@@ -199,16 +199,19 @@ public:
* Delete cells arrays and allocated cells
*/
virtual ~FAbstractSubOctree(){
long cellsAtlevel = 8;
for( int indexLevel = 0 ; indexLevel < this->subOctreeHeight ; ++indexLevel ){
for( int indexCells = 0 ; indexCells < cellsAtlevel ; ++indexCells ){
long mostRight = rightLeafIndex;
long mostLeft = leftLeafIndex;
for( int indexLevel = this->subOctreeHeight - 1 ; indexLevel >= 0 ; --indexLevel ){
for( long indexCells = mostLeft ; indexCells <= mostRight ; ++indexCells ){
if(this->cells[indexLevel][indexCells]){
delete this->cells[indexLevel][indexCells];
//delete this->cells[indexLevel][indexCells];
}
}
delete [] this->cells[indexLevel];
cellsAtlevel <<= 3; // => * 8 >> 8^indexLevel
mostLeft >>= 3;
mostRight >>= 3;
}
delete [] this->cells;
......@@ -561,4 +564,4 @@ public:
#endif //FSUBOCTREE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FTREECOORDINATE_HPP
#define FTREECOORDINATE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......@@ -194,4 +194,4 @@ public:
#endif //FTREECOORDINATE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FVECTOR_HPP
#define FVECTOR_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......
#ifndef FFMMALGORITHM_HPP
#define FFMMALGORITHM_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/FAssertable.hpp"
......@@ -243,4 +243,4 @@ private:
#endif //FFMMALGORITHM_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMMALGORITHMPERIODIC_HPP
#define FFMMALGORITHMPERIODIC_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/FAssertable.hpp"
......
#ifndef FFMMALGORITHMTASK_HPP
#define FFMMALGORITHMTASK_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/FAssertable.hpp"
......@@ -329,4 +329,4 @@ private:
#endif //FFMMALGORITHMTASK_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMMALGORITHMTHREAD_HPP
#define FFMMALGORITHMTHREAD_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FAssertable.hpp"
#include "../Utils/FDebug.hpp"
......@@ -400,4 +400,4 @@ private:
#endif //FFMMALGORITHMTHREAD_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMMALGORITHMTHREADPROC_HPP
#define FFMMALGORITHMTHREADPROC_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FAssertable.hpp"
#include "../Utils/FDebug.hpp"
......@@ -1311,4 +1311,4 @@ private:
#endif //FFMMALGORITHMTHREAD_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFmmAlgorithmThreadProcPeriodicPERIODIC_HPP
#define FFmmAlgorithmThreadProcPeriodicPERIODIC_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FAssertable.hpp"
#include "../Utils/FDebug.hpp"
......@@ -1499,4 +1499,4 @@ private:
#endif //FFMMALGORITHMTHREAD_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMMALGORITHMTHREADTSM_HPP
#define FFMMALGORITHMTHREADTSM_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FAssertable.hpp"
#include "../Utils/FDebug.hpp"
......@@ -353,4 +353,4 @@ public:
#endif //FFMMALGORITHMTHREADTSM_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMMALGORITHMTSM_HPP
#define FFMMALGORITHMTSM_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FAssertable.hpp"
#include "../Utils/FDebug.hpp"
......@@ -282,4 +282,4 @@ public:
#endif //FFMMALGORITHMTSM_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDCELLTYPE_HPP
#define FEXTENDCELLTYPE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
/**
......@@ -62,4 +62,4 @@ public:
#endif //FEXTENDCELLTYPE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDCOORDINATE_HPP
#define FEXTENDCOORDINATE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Containers/FTreeCoordinate.hpp"
......@@ -53,4 +53,4 @@ public:
#endif //FEXTENDCOORDINATE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDFORCES_HPP
#define FEXTENDFORCES_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/F3DPosition.hpp"
......@@ -54,4 +54,4 @@ public:
#endif //FEXTENDFORCES_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDMORTONINDEX_HPP
#define FEXTENDMORTONINDEX_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Containers/FTreeCoordinate.hpp"
......@@ -46,4 +46,4 @@ public:
#endif //FEXTENDMORTONINDEX_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDPARTICLETYPE_HPP
#define FEXTENDPARTICLETYPE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
/**
......@@ -77,4 +77,4 @@ public:
#endif //FEXTENDPARTICLETYPE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FExtendPhysicalValue_HPP
#define FExtendPhysicalValue_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......@@ -45,4 +45,4 @@ public:
#endif //FExtendPhysicalValue_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDPOSITION_HPP
#define FEXTENDPOSITION_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/F3DPosition.hpp"
......@@ -53,4 +53,4 @@ public:
#endif //FEXTENDPOSITION_HPP
// [--LICENSE--]
// [--END--]
#ifndef FEXTENDPOTENTIAL_HPP
#define FEXTENDPOTENTIAL_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
......@@ -50,4 +50,4 @@ public:
#endif //FEXTENDPOTENTIAL_HPP
// [--LICENSE--]
// [--END--]
#ifndef FABSTRACTLOADER_HPP
#define FABSTRACTLOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
class F3DPosition;
......@@ -61,4 +61,4 @@ public:
#endif //FABSTRACTLOADER_HPP
// [--LICENSE--]
// [--END--]
#ifndef FBASICLOADER_HPP
#define FBASICLOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
#include <fstream>
......@@ -116,4 +116,4 @@ public:
#endif //FBASICLOADER_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMABINLOADER_HPP
#define FFMABINLOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <cstdio>
......@@ -139,4 +139,4 @@ public:
#endif //FFmaBinLoader_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMALOADER_HPP
#define FFMALOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
#include <fstream>
......@@ -120,4 +120,4 @@ public:
#endif //FFmaLoader_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMASCANFLOADER_HPP
#define FFMASCANFLOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
#include <fstream>
......@@ -135,4 +135,4 @@ public:
#endif //FFMASCANFLOADER_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMATSMLOADER_HPP
#define FFMATSMLOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
#include <fstream>
......@@ -123,4 +123,4 @@ public:
#endif //FFMATSMLOADER_HPP
// [--LICENSE--]
// [--END--]
#ifndef FHLOADER_HPP
#define FHLOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
#include <fstream>
......@@ -140,4 +140,4 @@ public:
#endif //FHLOADER_HPP
// [--LICENSE--]
// [--END--]
#ifndef FMPIFMALOADER_HPP
#define FMPIFMALOADER_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <iostream>
#include <fstream>
......@@ -223,4 +223,4 @@ public:
#endif //FMPIFMALOADER_HPP
// [--LICENSE--]
// [--END--]
......@@ -206,7 +206,7 @@ public:
}
}
delete[] particles;
//delete[] particles;
}
// Start from leal level - 1
......
#ifndef FEXTENDFMBCELL_HPP
#define FEXTENDFMBCELL_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <string.h>
......@@ -69,4 +69,4 @@ public:
#endif //FEXTENDFMBCELL_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMBKERNELS_HPP
#define FFMBKERNELS_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Components/FAbstractKernels.hpp"
......@@ -1500,4 +1500,4 @@ const FReal FFmbKernels<ParticleClass,CellClass, ContainerClass>::PiArrayOuter[4
#endif //FFMBKERNELS_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMBKERNELSBLAS_HPP
#define FFMBKERNELSBLAS_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/FBlas.hpp"
......@@ -1536,4 +1536,4 @@ const FReal FFmbKernelsBlas<ParticleClass,CellClass,ContainerClass>::PiArrayOute
#endif //FFMBKERNELSBLAS_HPP
// [--LICENSE--]
// [--END--]
#ifndef FFMBKERNELSBLOCKBLAS_HPP
#define FFMBKERNELSBLOCKBLAS_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "../Utils/FGlobal.hpp"
#include "../Utils/FBlas.hpp"
......@@ -1787,4 +1787,4 @@ const FReal FFmbKernelsBlockBlas<ParticleClass,CellClass,ContainerClass>::PiArra
#endif //FFMBKERNELSBLOCKBLAS_HPP
// [--LICENSE--]
// [--END--]
#ifndef F3DPOSITION_HPP
#define F3DPOSITION_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
// To get memcpy
#include <cstring>
......@@ -251,4 +251,4 @@ public:
#endif //F3DPOSITION_HPP
// [--LICENSE--]
// [--END--]
#ifndef FABSTRACTSENDABLE_HPP
#define FABSTRACTSENDABLE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
/**
......@@ -24,4 +24,4 @@ protected:
#endif //FABSTRACTSENDABLE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FASSERTABLE_HPP
#define FASSERTABLE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include <stdlib.h>
#include <sstream>
......@@ -49,4 +49,4 @@ protected:
#endif //FASSERTABLE_HPP
// [--LICENSE--]
// [--END--]
#ifndef FCOMPLEXE_HPP
#define FCOMPLEXE_HPP
// /!\ Please, you must read the license at the bottom of this page
// [--License--]
#include "FMath.hpp"
......@@ -149,4 +149,4 @@ inline FComplexe operator*=(const FComplexe& first, const FComplexe& second){