Skip to content
Snippets Groups Projects
Commit 204a9a23 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Remove the code sharing local sizes from the constructor

That code was buggy, and we only didn't see that because the wrong sizes
were always overwritten by the correct ones before being used.
(That's so as long as you call a reducing method before 'scatter').

Removing the code leaves the situation as bad as before, but it
allows us to get rid of the nOwnedLocalEntity() method from the global
mapper.

[[Imported from SVN: r9926]]
parent 6ff25409
No related branches found
No related tags found
No related merge requests found
......@@ -43,10 +43,7 @@ public:
const Communicator& communicator,
const int& root)
: guIndex(gi), communicator_(communicator), root_rank(root)
{
// Get number of vector entries on each process
localVectorEntriesSizes = MPIFunctions::shareSizes(communicator, guIndex.nOwnedLocalEntity());
}
{}
VectorType reduceAdd(const VectorType& localVector)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment