From 1f972ab7c1cebe0acb1eb635cc9e8f61d1ca9602 Mon Sep 17 00:00:00 2001 From: Olivier Coulaud <Olivier.Coulaud@inria.fr> Date: Thu, 10 Jul 2014 12:08:59 +0200 Subject: [PATCH] Check read --- Src/Utils/FGenerateDistribution.hpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Src/Utils/FGenerateDistribution.hpp b/Src/Utils/FGenerateDistribution.hpp index 0effa88cb..48a7eaac1 100644 --- a/Src/Utils/FGenerateDistribution.hpp +++ b/Src/Utils/FGenerateDistribution.hpp @@ -1,7 +1,22 @@ +// =================================================================================== +// Copyright ScalFmm 2014 INRIA +// +// This software is a computer program whose purpose is to compute the FMM. +// +// This software is governed by the CeCILL-C and LGPL licenses and +// abiding by the rules of distribution of free software. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public and CeCILL-C Licenses for more details. +// "http://www.cecill.info". +// "http://www.gnu.org/licenses". +// =================================================================================== #ifndef FGENERATEDISTRIBUTION_HPP #define FGENERATEDISTRIBUTION_HPP - +// @author O. Coulaud #include <cstdlib> #include <ctime> @@ -54,7 +69,7 @@ void unifRandonPointsOnUnitCube(const int N , FReal * points) { //! \param Lz the the Z-length of the cube //! \param points array of size 4*N and stores data as follow x,y,z,0,x,y,z,0.... //! \example generateDistributions.cpp -void unifRandonPointsOnCube(const int N , const FReal Lx, const FReal Ly, const FReal Lz, FReal * points) { +void unifRandonPointsOnCube(const int& N , const FReal& Lx, const FReal &Ly, const FReal& Lz, FReal * points) { // unifRandonPointsOnUnitCube(N , points) ; int j =0 ; -- GitLab