1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

NAMESPACE

This commit is contained in:
paboyle 2018-01-13 00:11:30 +00:00
parent 6bf5fb1924
commit 7f6bffe5ad
5 changed files with 16 additions and 10 deletions

View File

@ -29,7 +29,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
#include <Grid/GridCore.h> #include <Grid/GridCore.h>
#include <algorithm> #include <algorithm>
namespace Grid { NAMESPACE_BEGIN(Grid);
int LebesgueOrder::UseLebesgueOrder; int LebesgueOrder::UseLebesgueOrder;
#ifdef KNL #ifdef KNL
@ -239,4 +239,5 @@ void LebesgueOrder::ZGraph(void)
} }
*/ */
} }
} NAMESPACE_END(Grid);

View File

@ -32,7 +32,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
#include<vector> #include<vector>
// Lebesgue, Morton, Z-graph ordering assistance // Lebesgue, Morton, Z-graph ordering assistance
namespace Grid { NAMESPACE_BEGIN(Grid);
class LebesgueOrder { class LebesgueOrder {
public: public:
@ -76,5 +76,7 @@ namespace Grid {
std::vector<IndexInteger> _LebesgueReorder; std::vector<IndexInteger> _LebesgueReorder;
}; };
}
NAMESPACE_END(Grid);
#endif #endif

View File

@ -1,7 +1,7 @@
#ifndef _STENCIL_SIMPLE_COMPRESSOR_H_ #ifndef _STENCIL_SIMPLE_COMPRESSOR_H_
#define _STENCIL_SIMPLE_COMPRESSOR_H_ #define _STENCIL_SIMPLE_COMPRESSOR_H_
namespace Grid { NAMESPACE_BEGIN(Grid);
template<class vobj> template<class vobj>
class SimpleCompressor { class SimpleCompressor {
@ -25,5 +25,6 @@ public:
} }
}; };
} NAMESPACE_END(Grid);
#endif #endif

View File

@ -27,7 +27,7 @@
/* END LEGAL */ /* END LEGAL */
#include <Grid/GridCore.h> #include <Grid/GridCore.h>
namespace Grid { NAMESPACE_BEGIN(Grid);
void Gather_plane_table_compute (GridBase *grid,int dimension,int plane,int cbmask, void Gather_plane_table_compute (GridBase *grid,int dimension,int plane,int cbmask,
int off,std::vector<std::pair<int,int> > & table) int off,std::vector<std::pair<int,int> > & table)
@ -66,4 +66,5 @@ void Gather_plane_table_compute (GridBase *grid,int dimension,int plane,int cbma
} }
} }
} NAMESPACE_END(Grid);

View File

@ -48,7 +48,7 @@
// //
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
namespace Grid { NAMESPACE_BEGIN(Grid);
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// Gather for when there *is* need to SIMD split with compression // Gather for when there *is* need to SIMD split with compression
@ -1164,5 +1164,6 @@ class CartesianStencil { // Stencil runs along coordinate axes only; NO diagonal
}; };
}; };
} NAMESPACE_END(Grid);
#endif #endif