mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06: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:
@@ -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