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
This commit is contained in:
parent
4561717c51
commit
81629a44d0
@ -29,7 +29,7 @@ template<class Type>
|
||||
void Foam::mappedPatchBase::distribute(List<Type>& lst) const
|
||||
{
|
||||
const label oldComm(Pstream::warnComm);
|
||||
Pstream::warnComm = map().comm();
|
||||
Pstream::warnComm = comm_;
|
||||
switch (mode_)
|
||||
{
|
||||
case NEARESTPATCHFACEAMI:
|
||||
@ -96,7 +96,7 @@ template<class Type>
|
||||
void Foam::mappedPatchBase::reverseDistribute(List<Type>& lst) const
|
||||
{
|
||||
const label oldComm(Pstream::warnComm);
|
||||
Pstream::warnComm = map().comm();
|
||||
Pstream::warnComm = comm_;
|
||||
switch (mode_)
|
||||
{
|
||||
case NEARESTPATCHFACEAMI:
|
||||
@ -125,7 +125,7 @@ void Foam::mappedPatchBase::reverseDistribute
|
||||
) const
|
||||
{
|
||||
const label oldComm(Pstream::warnComm);
|
||||
Pstream::warnComm = map().comm();
|
||||
Pstream::warnComm = comm_;
|
||||
switch (mode_)
|
||||
{
|
||||
case NEARESTPATCHFACEAMI:
|
||||
|
Loading…
Reference in New Issue
Block a user