mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-27 22:25:56 +01:00
Namespace
This commit is contained in:
parent
2c2da60cc2
commit
71ebd61327
@ -26,11 +26,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
See the full license in the file "LICENSE" in the top level distribution
|
See the full license in the file "LICENSE" in the top level distribution
|
||||||
directory
|
directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#ifndef HMC_GRID_MODULES
|
#ifndef HMC_GRID_MODULES
|
||||||
#define HMC_GRID_MODULES
|
#define HMC_GRID_MODULES
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
// Resources
|
// Resources
|
||||||
// Modules for grids
|
// Modules for grids
|
||||||
@ -75,7 +75,7 @@ private:
|
|||||||
|
|
||||||
// Lower level class
|
// Lower level class
|
||||||
class GridModule {
|
class GridModule {
|
||||||
public:
|
public:
|
||||||
GridCartesian* get_full() {
|
GridCartesian* get_full() {
|
||||||
std::cout << GridLogDebug << "Getting cartesian in module"<< std::endl;
|
std::cout << GridLogDebug << "Getting cartesian in module"<< std::endl;
|
||||||
return grid_.get(); }
|
return grid_.get(); }
|
||||||
@ -88,7 +88,7 @@ class GridModule {
|
|||||||
void show_full_decomposition(){ grid_->show_decomposition(); }
|
void show_full_decomposition(){ grid_->show_decomposition(); }
|
||||||
void show_rb_decomposition(){ rbgrid_->show_decomposition(); }
|
void show_rb_decomposition(){ rbgrid_->show_decomposition(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::unique_ptr<GridCartesian> grid_;
|
std::unique_ptr<GridCartesian> grid_;
|
||||||
std::unique_ptr<GridRedBlackCartesian> rbgrid_;
|
std::unique_ptr<GridRedBlackCartesian> rbgrid_;
|
||||||
|
|
||||||
@ -172,6 +172,6 @@ public:
|
|||||||
typedef GridFourDimModule<vComplex> GridDefaultFourDimModule;
|
typedef GridFourDimModule<vComplex> GridDefaultFourDimModule;
|
||||||
|
|
||||||
|
|
||||||
} // namespace Grid
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
#endif // HMC_GRID_MODULES
|
#endif // HMC_GRID_MODULES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user