Commit 28a21511 authored by gsell's avatar gsell
Browse files

cleanup: fixes for compile type Release

parent 9b4af0b0
...@@ -256,6 +256,9 @@ FFTPACK<T>::callFFT(unsigned transformDim, int direction, T* data) { ...@@ -256,6 +256,9 @@ FFTPACK<T>::callFFT(unsigned transformDim, int direction, T* data) {
// check transform dimension and direction arguments // check transform dimension and direction arguments
PAssert_LT(transformDim, numTransformDims_m); PAssert_LT(transformDim, numTransformDims_m);
// avoid unused variable warning if we compile with Release
// :FIXME: remove direction
(void)direction;
PAssert_EQ(std::abs(direction), 1); PAssert_EQ(std::abs(direction), 1);
// branch on transform type for this dimension // branch on transform type for this dimension
......
// -*- C++ -*-
/*************************************************************************** /***************************************************************************
* *
* The IPPL Framework * The IPPL Framework
...@@ -13,17 +12,6 @@ ...@@ -13,17 +12,6 @@
* *
***************************************************************************/ ***************************************************************************/
// -*- C++ -*-
/***************************************************************************
*
* The IPPL Framework
*
*
* Visit http://people.web.psi.ch/adelmann/ for more details
*
***************************************************************************/
// include files
#include "Particle/IpplParticleBase.h" #include "Particle/IpplParticleBase.h"
#include "Particle/ParticleLayout.h" #include "Particle/ParticleLayout.h"
#include "Particle/ParticleAttrib.h" #include "Particle/ParticleAttrib.h"
...@@ -33,6 +21,7 @@ ...@@ -33,6 +21,7 @@
#include "Utility/PAssert.h" #include "Utility/PAssert.h"
#include "Utility/IpplInfo.h" #include "Utility/IpplInfo.h"
#include "Utility/IpplStats.h" #include "Utility/IpplStats.h"
#include "Utility/IpplException.h"
#include <algorithm> #include <algorithm>
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
...@@ -148,7 +137,11 @@ void IpplParticleBase<PLayout>::resetID(void) { ...@@ -148,7 +137,11 @@ void IpplParticleBase<PLayout>::resetID(void) {
Message* msg2 = new Message; Message* msg2 = new Message;
msg2->put(lp[ip]); msg2->put(lp[ip]);
bool success = Ippl::Comm->send(msg2,ip,tag2); bool success = Ippl::Comm->send(msg2,ip,tag2);
PAssert(success); if (success == false) {
throw IpplException (
"IpplParticleBase<PLayout>::resetID()",
"sending initial ID values failed.");
}
} }
// we are done // we are done
return; return;
...@@ -159,7 +152,11 @@ void IpplParticleBase<PLayout>::resetID(void) { ...@@ -159,7 +152,11 @@ void IpplParticleBase<PLayout>::resetID(void) {
Message* msg1 = new Message; Message* msg1 = new Message;
msg1->put(localNum); msg1->put(localNum);
bool success = Ippl::Comm->send(msg1,master,tag1); bool success = Ippl::Comm->send(msg1,master,tag1);
PAssert(success); if (success == false) {
throw IpplException (
"IpplParticleBase<PLayout>::resetID()",
"sending initial ID values failed.");
}
// now receive back our initial ID number // now receive back our initial ID number
size_t initialID = 0; size_t initialID = 0;
int tag2 = Ippl::Comm->next_tag(P_RESET_ID_TAG,P_LAYOUT_CYCLE); int tag2 = Ippl::Comm->next_tag(P_RESET_ID_TAG,P_LAYOUT_CYCLE);
...@@ -776,9 +773,10 @@ void IpplParticleBase<PLayout>::printDebug(Inform& o) { ...@@ -776,9 +773,10 @@ void IpplParticleBase<PLayout>::printDebug(Inform& o) {
Layout->printDebug(o); Layout->printDebug(o);
} }
// vi: set et ts=4 sw=4 sts=4:
/*************************************************************************** // Local Variables:
* $RCSfile: IpplParticleBase.cpp,v $ $Author: adelmann $ // mode:c
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:28 $ // c-basic-offset: 4
* IPPL_VERSION_ID: $Id: IpplParticleBase.cpp,v 1.1.1.1 2003/01/23 07:40:28 adelmann Exp $ // indent-tabs-mode: nil
***************************************************************************/ // require-final-newline: nil
// End:
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