Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2a3555a0 authored by Olivier COULAUD's avatar Olivier COULAUD
Browse files

ADD ScalFMM_BUILD_ONLY_LIB to compile scalfmm lib without examples

remove warnings
parent 347c192f
Branches
Tags
No related merge requests found
...@@ -57,6 +57,7 @@ OPTION( ScalFMM_USE_SSE "Set to ON to compile with SSE support" ...@@ -57,6 +57,7 @@ OPTION( ScalFMM_USE_SSE "Set to ON to compile with SSE support"
OPTION( ScalFMM_USE_AVX "Set to ON to compile with AVX support" OFF ) OPTION( ScalFMM_USE_AVX "Set to ON to compile with AVX support" OFF )
OPTION( ScalFMM_USE_ASSERT "Set to ON to enable safe tests during execution" ON ) OPTION( ScalFMM_USE_ASSERT "Set to ON to enable safe tests during execution" ON )
OPTION( ScalFMM_USE_MIC_NATIVE "Set to ON to compile in native mode for MIC" OFF ) OPTION( ScalFMM_USE_MIC_NATIVE "Set to ON to compile in native mode for MIC" OFF )
OPTION( ScalFMM_BUILD_ONLY_LIB "Set to ON to compile ionly the lib (examples are not compiled) " OFF )
# Set scalfmm to default libraries # Set scalfmm to default libraries
SET(SCALFMM_LIBRARIES "") SET(SCALFMM_LIBRARIES "")
SET(ScaLFMM_CXX_FLAGS "") SET(ScaLFMM_CXX_FLAGS "")
...@@ -301,9 +302,10 @@ add_subdirectory(Src) ...@@ -301,9 +302,10 @@ add_subdirectory(Src)
# Link with scalfmm lib # Link with scalfmm lib
set(scalfmm_lib scalfmm) set(scalfmm_lib scalfmm)
if( ScalFMM_BUILD_ONLY_LIB )
# Build - Examples and drivers # Build - Examples and drivers
add_subdirectory(Examples) add_subdirectory(Examples)
endif
# Build - Tests # Build - Tests
MESSAGE( STATUS "ScalFMM_BUILD_TESTS = ${ScalFMM_BUILD_TESTS}" ) MESSAGE( STATUS "ScalFMM_BUILD_TESTS = ${ScalFMM_BUILD_TESTS}" )
......
// =================================================================================== // ===================================================================================
// Copyright ScalFmm 2011 INRIA, Olivier Coulaud, Bérenger Bramas, Matthias Messner // Copyright ScalFmm 2011 INRIA
// olivier.coulaud@inria.fr, berenger.bramas@inria.fr // olivier.coulaud@inria.fr, berenger.bramas@inria.fr
// This software is a computer program whose purpose is to compute the FMM. // This software is a computer program whose purpose is to compute the FMM.
// //
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include "FAbstractSphericalKernel.hpp" #include "FAbstractSphericalKernel.hpp"
#include "../../Utils/FMemUtils.hpp" #include "Utils/FMemUtils.hpp"
#include "../../Utils/FBlas.hpp" #include "Utils/FBlas.hpp"
/** /**
* @author Berenger Bramas (berenger.bramas@inria.fr) * @author Berenger Bramas (berenger.bramas@inria.fr)
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
FF_MATRIX_ROW_DIM(Parent::harmonic.getExpSize()), FF_MATRIX_COLUMN_DIM(Parent::harmonic.getNExpSize()), FF_MATRIX_ROW_DIM(Parent::harmonic.getExpSize()), FF_MATRIX_COLUMN_DIM(Parent::harmonic.getNExpSize()),
FF_MATRIX_SIZE(FF_MATRIX_ROW_DIM * FF_MATRIX_COLUMN_DIM), FF_MATRIX_SIZE(FF_MATRIX_ROW_DIM * FF_MATRIX_COLUMN_DIM),
temporaryMultiSource(new FComplexe[FF_MATRIX_COLUMN_DIM]), temporaryMultiSource(new FComplexe[FF_MATRIX_COLUMN_DIM]),
preM2LTransitions(0){ preM2LTransitions(nullptr){
allocAndInit(); allocAndInit();
} }
......
// =================================================================================== // ===================================================================================
// Copyright ScalFmm 2011 INRIA, Olivier Coulaud, Bérenger Bramas, Matthias Messner // Copyright ScalFmm 2011 INRIA,
// olivier.coulaud@inria.fr, berenger.bramas@inria.fr // olivier.coulaud@inria.fr, berenger.bramas@inria.fr
// This software is a computer program whose purpose is to compute the FMM. // This software is a computer program whose purpose is to compute the FMM.
// //
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define FSPHERICALROTATIONKERNEL_HPP #define FSPHERICALROTATIONKERNEL_HPP
#include "FAbstractSphericalKernel.hpp" #include "FAbstractSphericalKernel.hpp"
#include "../../Utils/FMemUtils.hpp" #include "Utils/FMemUtils.hpp"
/** /**
* @author Berenger Bramas (berenger.bramas@inria.fr) * @author Berenger Bramas (berenger.bramas@inria.fr)
...@@ -393,7 +393,7 @@ public: ...@@ -393,7 +393,7 @@ public:
FSphericalRotationKernel(const int inDevP, const int inTreeHeight, const FReal inBoxWidth, const FPoint& inBoxCenter) FSphericalRotationKernel(const int inDevP, const int inTreeHeight, const FReal inBoxWidth, const FPoint& inBoxCenter)
: Parent(inDevP, inTreeHeight, inBoxWidth, inBoxCenter), : Parent(inDevP, inTreeHeight, inBoxWidth, inBoxCenter),
devM2lP(int(((inDevP*2)+1) * ((inDevP*2)+2) * 0.5)), devM2lP(int(((inDevP*2)+1) * ((inDevP*2)+2) * 0.5)),
preM2LTransitions(0), preM2LTransitions(nullptr),
rotation_Info(inDevP) { rotation_Info(inDevP) {
allocAndInit(); allocAndInit();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment