Commit 1c8194bf authored by kicici's avatar kicici
Browse files

Make Grid non-copyable and non-movable

The default copy and move constructors and assignments were broken
anyway.
parent 3271778b
......@@ -160,6 +160,11 @@ public:
virtual ~Grid() { _dealloc(); }
Grid(const Grid &) = delete;
Grid(Grid &&) = delete;
Grid &operator=(const Grid &) = delete;
Grid &operator=(Grid &&) = delete;
void setup(const unsigned int nX, const unsigned int nY, const unsigned int nZ)
{
std::cout << "Setting up the grid with " << nX << "x" << nY << "x" << nZ << " blocks ...";
......
......@@ -41,7 +41,7 @@ protected:
MPI_Comm worldcomm;
MPI_Comm cartcomm;
// Subdomain handled by this node.
// Subdomain handled by this node. Useful when coupling with other codes.
double subdomain_low[3];
double subdomain_high[3];
public:
......@@ -123,11 +123,6 @@ public:
this->m_mesh_maps.push_back(m);
}
// This subdomain box is used by the coupling framework. Please don't
// rearrange the formula for subdomain_high, as it has to exactly match
// subdomain_low of the neighbouring nodes. This way the roundings are
// guaranteed to be done in the same way. Well, at least without
// -ffast-math. (October 2017, kicici)
subdomain_low[0] = mypeindex[0] * mybpd[0] * h_block[0];
subdomain_low[1] = mypeindex[1] * mybpd[1] * h_block[1];
subdomain_low[2] = mypeindex[2] * mybpd[2] * h_block[2];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment