Skip to content
Snippets Groups Projects
Commit 81629a44 authored by mattijs's avatar mattijs
Browse files

BUG: mapped: access map() for AMI cases. Fixes #1982

Should not call map() since it triggers building the
(one-to-one) mapping which conflicts with the self-contained
mapping of cyclicAMI
parent 4561717c
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ template<class Type> ...@@ -29,7 +29,7 @@ template<class Type>
void Foam::mappedPatchBase::distribute(List<Type>& lst) const void Foam::mappedPatchBase::distribute(List<Type>& lst) const
{ {
const label oldComm(Pstream::warnComm); const label oldComm(Pstream::warnComm);
Pstream::warnComm = map().comm(); Pstream::warnComm = comm_;
switch (mode_) switch (mode_)
{ {
case NEARESTPATCHFACEAMI: case NEARESTPATCHFACEAMI:
...@@ -96,7 +96,7 @@ template<class Type> ...@@ -96,7 +96,7 @@ template<class Type>
void Foam::mappedPatchBase::reverseDistribute(List<Type>& lst) const void Foam::mappedPatchBase::reverseDistribute(List<Type>& lst) const
{ {
const label oldComm(Pstream::warnComm); const label oldComm(Pstream::warnComm);
Pstream::warnComm = map().comm(); Pstream::warnComm = comm_;
switch (mode_) switch (mode_)
{ {
case NEARESTPATCHFACEAMI: case NEARESTPATCHFACEAMI:
...@@ -125,7 +125,7 @@ void Foam::mappedPatchBase::reverseDistribute ...@@ -125,7 +125,7 @@ void Foam::mappedPatchBase::reverseDistribute
) const ) const
{ {
const label oldComm(Pstream::warnComm); const label oldComm(Pstream::warnComm);
Pstream::warnComm = map().comm(); Pstream::warnComm = comm_;
switch (mode_) switch (mode_)
{ {
case NEARESTPATCHFACEAMI: case NEARESTPATCHFACEAMI:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment