mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
New rank can be found out
This commit is contained in:
parent
689323f4ee
commit
4a699b4da3
@ -44,13 +44,18 @@ namespace Grid{
|
|||||||
class GridBase : public CartesianCommunicator , public GridThread {
|
class GridBase : public CartesianCommunicator , public GridThread {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
int dummy;
|
||||||
// Give Lattice access
|
// Give Lattice access
|
||||||
template<class object> friend class Lattice;
|
template<class object> friend class Lattice;
|
||||||
|
|
||||||
GridBase(const std::vector<int> & processor_grid) : CartesianCommunicator(processor_grid) {};
|
GridBase(const std::vector<int> & processor_grid) : CartesianCommunicator(processor_grid) {};
|
||||||
GridBase(const std::vector<int> & processor_grid,
|
GridBase(const std::vector<int> & processor_grid,
|
||||||
const CartesianCommunicator &parent) : CartesianCommunicator(processor_grid,parent) {};
|
const CartesianCommunicator &parent,
|
||||||
|
int &split_rank)
|
||||||
|
: CartesianCommunicator(processor_grid,parent,split_rank) {};
|
||||||
|
GridBase(const std::vector<int> & processor_grid,
|
||||||
|
const CartesianCommunicator &parent)
|
||||||
|
: CartesianCommunicator(processor_grid,parent,dummy) {};
|
||||||
|
|
||||||
virtual ~GridBase() = default;
|
virtual ~GridBase() = default;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ namespace Grid{
|
|||||||
class GridCartesian: public GridBase {
|
class GridCartesian: public GridBase {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
int dummy;
|
||||||
virtual int CheckerBoardFromOindexTable (int Oindex) {
|
virtual int CheckerBoardFromOindexTable (int Oindex) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -67,7 +67,14 @@ public:
|
|||||||
GridCartesian(const std::vector<int> &dimensions,
|
GridCartesian(const std::vector<int> &dimensions,
|
||||||
const std::vector<int> &simd_layout,
|
const std::vector<int> &simd_layout,
|
||||||
const std::vector<int> &processor_grid,
|
const std::vector<int> &processor_grid,
|
||||||
const GridCartesian &parent) : GridBase(processor_grid,parent)
|
const GridCartesian &parent) : GridBase(processor_grid,parent,dummy)
|
||||||
|
{
|
||||||
|
Init(dimensions,simd_layout,processor_grid);
|
||||||
|
}
|
||||||
|
GridCartesian(const std::vector<int> &dimensions,
|
||||||
|
const std::vector<int> &simd_layout,
|
||||||
|
const std::vector<int> &processor_grid,
|
||||||
|
const GridCartesian &parent,int &split_rank) : GridBase(processor_grid,parent,split_rank)
|
||||||
{
|
{
|
||||||
Init(dimensions,simd_layout,processor_grid);
|
Init(dimensions,simd_layout,processor_grid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user