From e6f7a5a818844e7ecfbdd207f5e24ea78a75f262 Mon Sep 17 00:00:00 2001 From: paboyle Date: Fri, 12 Jan 2018 23:28:01 +0000 Subject: [PATCH] Namespace --- lib/util/Init.h | 58 ++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lib/util/Init.h b/lib/util/Init.h index 3da00742..545ee7f6 100644 --- a/lib/util/Init.h +++ b/lib/util/Init.h @@ -1,4 +1,4 @@ - /************************************************************************************* +/************************************************************************************* Grid physics library, www.github.com/paboyle/Grid @@ -24,43 +24,43 @@ Author: paboyle 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. See the full license in the file "LICENSE" in the top level distribution directory - *************************************************************************************/ - /* END LEGAL */ +*************************************************************************************/ +/* END LEGAL */ #ifndef GRID_INIT_H #define GRID_INIT_H -namespace Grid { +NAMESPACE_BEGIN(Grid); - void Grid_init(int *argc,char ***argv); - void Grid_finalize(void); +void Grid_init(int *argc,char ***argv); +void Grid_finalize(void); - // internal, controled with --handle - void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr); - void Grid_debug_handler_init(void); - void Grid_quiesce_nodes(void); - void Grid_unquiesce_nodes(void); +// internal, controled with --handle +void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr); +void Grid_debug_handler_init(void); +void Grid_quiesce_nodes(void); +void Grid_unquiesce_nodes(void); - const std::vector GridDefaultSimd(int dims,int nsimd); - const std::vector &GridDefaultLatt(void); - const std::vector &GridDefaultMpi(void); - const int &GridThreads(void) ; - void GridSetThreads(int t) ; - void GridLogTimestamp(int); - void GridLogLayout(); +const std::vector GridDefaultSimd(int dims,int nsimd); +const std::vector &GridDefaultLatt(void); +const std::vector &GridDefaultMpi(void); +const int &GridThreads(void) ; +void GridSetThreads(int t) ; +void GridLogTimestamp(int); +void GridLogLayout(); - // Common parsing chores - std::string GridCmdOptionPayload(char ** begin, char ** end, const std::string & option); - bool GridCmdOptionExists(char** begin, char** end, const std::string& option); - std::string GridCmdVectorIntToString(const std::vector & vec); - void GridCmdOptionCSL(std::string str,std::vector & vec); - void GridCmdOptionIntVector(std::string &str,std::vector & vec); +// Common parsing chores +std::string GridCmdOptionPayload(char ** begin, char ** end, const std::string & option); +bool GridCmdOptionExists(char** begin, char** end, const std::string& option); +std::string GridCmdVectorIntToString(const std::vector & vec); +void GridCmdOptionCSL(std::string str,std::vector & vec); +void GridCmdOptionIntVector(std::string &str,std::vector & vec); - void GridParseLayout(char **argv,int argc, - std::vector &latt, - std::vector &simd, - std::vector &mpi); +void GridParseLayout(char **argv,int argc, + std::vector &latt, + std::vector &simd, + std::vector &mpi); +NAMESPACE_END(Grid); -}; #endif