mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 14:47:44 -05:00
Fix wrong globalSize.
That has gotten a little to big and hence the vector globalCartesianIndex_ and DistributedIndexMapping::ranks_ ,too.
This commit is contained in:
1 parent
1124b82f05
commit
7784d53198
1 file changed
+5
-6
@@ -223,15 +223,14 @@ public:
|
|||||||
{
|
{
|
||||||
std::set<int> send, recv;
|
std::set<int> send, recv;
|
||||||
typedef typename Vanguard::EquilGrid::LeafGridView EquilGridView;
|
typedef typename Vanguard::EquilGrid::LeafGridView EquilGridView;
|
||||||
// We need a mapping from local to global grid, here we
|
|
||||||
// use equilGrid which represents a view on the global grid
|
|
||||||
// reserve memory
|
|
||||||
auto logSize = vanguard.grid().logicalCartesianSize();
|
|
||||||
const size_t globalSize = logSize[0]*logSize[1]*logSize[2];
|
|
||||||
globalCartesianIndex_.resize(globalSize, -1);
|
|
||||||
|
|
||||||
// the I/O rank receives from all other ranks
|
// the I/O rank receives from all other ranks
|
||||||
if (isIORank()) {
|
if (isIORank()) {
|
||||||
|
// We need a mapping from local to global grid, here we
|
||||||
|
// use equilGrid which represents a view on the global grid
|
||||||
|
// reserve memory
|
||||||
|
const size_t globalSize = vanguard.equilGrid().leafGridView().size(0);
|
||||||
|
globalCartesianIndex_.resize(globalSize, -1);
|
||||||
const EquilGridView equilGridView = vanguard.equilGrid().leafGridView();
|
const EquilGridView equilGridView = vanguard.equilGrid().leafGridView();
|
||||||
|
|
||||||
#if DUNE_VERSION_NEWER(DUNE_GRID, 2,6)
|
#if DUNE_VERSION_NEWER(DUNE_GRID, 2,6)
|
||||||
|
|||||||
Reference in new issue
Block a user