Commit 527134a5 authored by snuverink_j's avatar snuverink_j
Browse files

fix unused argument warnings in IPPL tests; fix spacing

parent 76c9e561
// -*- C++ -*-
/***************************************************************************
*
* The IPPL Framework
*
* This program was prepared by PSI.
* All rights in the program are reserved by PSI.
* Neither PSI nor the author(s)
* makes any warranty, express or implied, or assumes any liability or
* responsibility for the use of this software
*
* Visit http://www.acl.lanl.gov/POOMS for more details
*
***************************************************************************/
// -*- C++ -*-
/***************************************************************************
*
* The IPPL Framework
*
*
* Visit http://people.web.psi.ch/adelmann/ for more details
*
***************************************************************************/
// TestFFT.cpp , Tim Williams 1/27/1997
// Updated by Julian Cummings, 3/31/98
......@@ -117,7 +92,7 @@ int main(int argc, char *argv[])
unsigned ngrid[D]; // grid sizes
// Used in evaluating correctness of results:
double realDiff;
double realDiff = -1.0;
// Various counters, constants, etc:
unsigned int d;
......@@ -247,15 +222,3 @@ int main(int argc, char *argv[])
testmsg << " ||d||= " << fabs(realDiff) << endl;
return 0;
}
\ No newline at end of file
/***************************************************************************
* $RCSfile: TestFFT-SPP.cpp,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:36 $
***************************************************************************/
/***************************************************************************
* $RCSfile: addheaderfooter,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:17 $
* IPPL_VERSION_ID: $Id: addheaderfooter,v 1.1.1.1 2003/01/23 07:40:17 adelmann Exp $
***************************************************************************/
// -*- C++ -*-
/***************************************************************************
*
* The IPPL Framework
*
* This program was prepared by PSI.
* All rights in the program are reserved by PSI.
* Neither PSI nor the author(s)
* makes any warranty, express or implied, or assumes any liability or
* responsibility for the use of this software
*
* Visit http://www.acl.lanl.gov/POOMS for more details
*
***************************************************************************/
// -*- C++ -*-
/***************************************************************************
*
* The IPPL Framework
*
*
* Visit http://people.web.psi.ch/adelmann/ for more details
*
***************************************************************************/
// TestFFT.cpp , Tim Williams 1/27/1997
// Updated by Julian Cummings, 3/31/98
......@@ -304,16 +279,6 @@ int main(int argc, char *argv[])
testmsg << "CPU time used = " << timer.cpu_time() << " secs." << endl;
timer.clear();
}
testmsg << "test is correct: " << correct << endl;
return 0;
}
\ No newline at end of file
/***************************************************************************
* $RCSfile: TestRC.cpp,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:36 $
***************************************************************************/
/***************************************************************************
* $RCSfile: addheaderfooter,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:17 $
* IPPL_VERSION_ID: $Id: addheaderfooter,v 1.1.1.1 2003/01/23 07:40:17 adelmann Exp $
***************************************************************************/
......@@ -617,7 +617,7 @@ void createParticleDistributionEquiPartSphere(Particles & P, Vektor<double,3> ex
template<typename Particles>
void createParticleDistributionHeating(Particles & P, Vektor<double,3> extend_l, Vektor<double,3> extend_r, double beam_radius, unsigned Nparts,double qi, double mi) {
void createParticleDistributionHeating(Particles & P, Vektor<double,3> /*extend_l*/, Vektor<double,3> /*extend_r*/, double beam_radius, unsigned Nparts,double qi, double mi) {
Inform msg("p3m3dHeating ");
msg << "Initializing Cold Sphere" << endl;
......
......@@ -416,7 +416,7 @@ void dumpParticlesCSVp( const ParticleType & p, int iteration=0) {
template<typename FieldType2d, typename ParticleType>
void write_f_field( FieldType2d & f, const ParticleType & p, int iteration = 0, std::string label="fInterpol") {
void write_f_field( FieldType2d & f, const ParticleType & p, int iteration = 0, std::string /*label*/="fInterpol") {
Vektor<double,3> dx = (p->extend_r-p->extend_l)/(p->Nx);
Vektor<double,3> dv = 2.*p->Vmax/(p->Nv);
......
......@@ -108,7 +108,7 @@ public:
ParticleAttrib<Vector_t> v; //velocity of the particles
ParticleAttrib<int> ID; //velocity of the particles
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag decomp[Dim],Vektor<double,3> extend_l_, Vektor<double,3> extend_r_) :
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag /*decomp*/[Dim],Vektor<double,3> extend_l_, Vektor<double,3> extend_r_) :
IpplParticleBase<PL>(pl),
nr_m(nr),
extend_l(extend_l_),
......@@ -386,7 +386,7 @@ public:
}
}
void calculateGridForces(double interaction_radius, double alpha, double eps, int it=0, bool normalizeSphere=0) {
void calculateGridForces(double /*interaction_radius*/, double alpha, double eps, int /*it*/=0, bool /*normalizeSphere*/=0) {
// (1) scatter charge to charge density grid and transform to fourier space
//this->Q.scatter(this->rho_m, this->R, IntrplTSC_t());
rho_m[domain_m]=0; //!!!!!! there has to be a better way than setting rho to 0 every time
......
......@@ -122,7 +122,7 @@ class ChargedParticles : public IpplParticleBase<PL> {
ParticleAttrib<Vector_t> p; //momentum [MeV/c]
ParticleAttrib<int> ID; //unique ID for debugging reasons => remove for production
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag decomp[Dim], unsigned seedID_=0) :
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag /*decomp*/[Dim], unsigned seedID_=0) :
IpplParticleBase<PL>(pl),
nr_m(nr),
seedID(seedID_)
......@@ -399,7 +399,7 @@ class ChargedParticles : public IpplParticleBase<PL> {
}
}
void calculateGridForces(double interaction_radius, double alpha, double eps, int it=0) {
void calculateGridForces(double /*interaction_radius*/, double alpha, double eps, int /*it*/=0) {
// (1) scatter charge to charge density grid and transform to fourier space
//this->Q.scatter(this->rho_m, this->R, IntrplTSC_t());
rho_m[domain_m]=0; //!!!!!! there has to be a better way than setting rho to 0 every time
......
// -*- C++ -*-
/**************************************************************************************************************************************
*
......@@ -136,7 +135,7 @@ class ChargedParticles : public IpplParticleBase<PL> {
ParticleAttrib<int> ID; //velocity of the particles
ParticleAttrib<Vektor<double,2> > Rphase; //velocity of the particles
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag decomp[Dim],Vektor<double,3> extend_l_, Vektor<double,3> extend_r_, Vektor<int,3> Nx_, Vektor<int,3> Nv_, Vektor<double,3> Vmax_) :
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag /*decomp*/[Dim],Vektor<double,3> extend_l_, Vektor<double,3> extend_r_, Vektor<int,3> Nx_, Vektor<int,3> Nv_, Vektor<double,3> Vmax_) :
IpplParticleBase<PL>(pl),
nr_m(nr),
extend_l(extend_l_),
......@@ -386,7 +385,7 @@ class ChargedParticles : public IpplParticleBase<PL> {
}
}
void calculateGridForces(double interaction_radius, double alpha, double eps, int it=0, bool normalizeSphere=0) {
void calculateGridForces(double /*interaction_radius*/, double alpha, double eps, int it=0, bool normalizeSphere=0) {
// (1) scatter charge to charge density grid and transform to fourier space
//this->Q.scatter(this->rho_m, this->R, IntrplTSC_t());
rho_m[domain_m]=0; //!!!!!! there has to be a better way than setting rho to 0 every time
......
// -*- C++ -*-
/**************************************************************************************************************************************
*
......@@ -117,7 +116,7 @@ class ChargedParticles : public IpplParticleBase<PL> {
ParticleAttrib<int> ID; //velocity of the particles
ParticleAttrib<Vektor<double,2> > Rphase; //velocity of the particles
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag decomp[Dim],Vektor<double,3> extend_l_, Vektor<double,3> extend_r_, Vektor<int,3> Nx_, Vektor<int,3> Nv_, Vektor<double,3> Vmax_) :
ChargedParticles(PL* pl, Vektor<double,3> nr, e_dim_tag /*decomp*/[Dim],Vektor<double,3> extend_l_, Vektor<double,3> extend_r_, Vektor<int,3> Nx_, Vektor<int,3> Nv_, Vektor<double,3> Vmax_) :
IpplParticleBase<PL>(pl),
nr_m(nr),
extend_l(extend_l_),
......@@ -357,7 +356,7 @@ class ChargedParticles : public IpplParticleBase<PL> {
void calculateGridForces(double interaction_radius, double alpha, double eps, bool GcalcKSpace, int it=0)
void calculateGridForces(double /*interaction_radius*/, double alpha, double eps, bool GcalcKSpace, int it=0)
{
//this->Q.scatter(this->rho_m, this->R, IntrplTSC_t());
rho_m[lDomain_m]=0; //!!!!!! there has to be a better way than setting rho to 0 every time
......
......@@ -22,7 +22,7 @@ T smpintd(int nstep, Field<T,1> &integ, T dv) {
return dv*sum(smp*integ);
}
void cumul(Field<T,Dim> &vTherm1, Field<T,Dim> &vTherm2, int nmax,int nvdint,T hubble,T zin,T omeganu) {
void cumul(Field<T,Dim> &/*vTherm1*/, Field<T,Dim> &/*vTherm2*/, int nmax,int nvdint,T hubble,T zin,T omeganu) {
T pmax = 300000.0;
T dv = pmax / (nvdint-1);
......@@ -73,7 +73,7 @@ void cumul(Field<T,Dim> &vTherm1, Field<T,Dim> &vTherm2, int nmax,int nvdint,T h
}
void vel(int np,int nmax,int nvdint,T hubble,T zin,T omeganu, Field<T,Dim> &vTherm) {
void vel(int /*np*/,int nmax,int nvdint,T hubble,T zin,T omeganu, Field<T,Dim> &vTherm) {
INFOMSG("entering vel routine" << 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