Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 6c8840e8 authored by snuverink_j's avatar snuverink_j
Browse files

fix compiler warnings in ippl/src

parent 34e661fd
No related branches found
No related tags found
1 merge request!264Add ippl/test applications to CMake
......@@ -2,9 +2,6 @@
/***************************************************************************
*
* The IPPL Framework
*
*
* Visit http://people.web.psi.ch/adelmann/ for more details
*
***************************************************************************/
......@@ -33,8 +30,8 @@ public:
// constructor: user-provided Layout object must be supplied
GenArrayParticle(PLayout* L) : IpplParticleBase<PLayout>(L) {
for (int i = 0; i < N; i++)
addAttribute(data[i]);
for (unsigned int i = 0; i < N; i++)
this->addAttribute(data[i]);
}
private:
......@@ -43,10 +40,4 @@ private:
};
#endif // GEN_ARRAY_PARTICLE_H
/***************************************************************************
* $RCSfile: GenArrayParticle.h,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:28 $
* IPPL_VERSION_ID: $Id: GenArrayParticle.h,v 1.1.1.1 2003/01/23 07:40:28 adelmann Exp $
***************************************************************************/
#endif // GEN_ARRAY_PARTICLE_H
\ No newline at end of file
......@@ -86,16 +86,16 @@ public:
}
//loop over all buckets
for (unsigned bx=0; bx<buckets_per_dim[0]; ++bx) {
for (unsigned by=0; by<buckets_per_dim[1]; ++by) {
for (unsigned bz=0; bz<buckets_per_dim[2]; ++bz) {
for (int bx=0; bx<buckets_per_dim[0]; ++bx) {
for (int by=0; by<buckets_per_dim[1]; ++by) {
for (int bz=0; bz<buckets_per_dim[2]; ++bz) {
//dmsg << "bx = " << bx << "by = " << by << " bz = " << bz <<endl;
unsigned bucket_id_self = bz*buckets_per_dim[1]*buckets_per_dim[0]+by*buckets_per_dim[0]+bx;
//compute index of neighboring cell to interact with
for (int n=0; n<neigh;++n){
unsigned bx_neigh = bx+offset[n][0];
unsigned by_neigh = by+offset[n][1];
unsigned bz_neigh = bz+offset[n][2];
int bx_neigh = bx+offset[n][0];
int by_neigh = by+offset[n][1];
int bz_neigh = bz+offset[n][2];
//check if neighbor cell is within boundaries
//dmsg << " looking at neighbor n = " << n << endl;
if (bx_neigh >= 0 && bx_neigh<buckets_per_dim[0] &&
......
......@@ -91,7 +91,7 @@ void FieldDebugPrint<T,Dim>::print(BareField<T,Dim>& F,
// check that the view is contained inside of the Field's domain
if(!domain.contains(view)) {
ERRORMSG("FieldPrint::print - the domain of the field: " << domain<<endl);
ERRORMSG("FieldDebugPrint::print - the domain of the field: " << domain<<endl);
ERRORMSG(" must contain the selected view: " << view << endl);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment