mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-19 05:53:28 -06:00
[bugfix] Fixes copyOwnerToAll.
Previously, we copied owner/overlap to all which is clearly wrong. Now we copy from owner to all as the function name says.
This commit is contained in:
parent
5674635125
commit
559c91505d
@ -144,8 +144,9 @@ public:
|
|||||||
void copyOwnerToAll (const T& source, T& dest) const
|
void copyOwnerToAll (const T& source, T& dest) const
|
||||||
{
|
{
|
||||||
typedef Dune::Combine<Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::owner>,Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::overlap>,Dune::OwnerOverlapCopyAttributeSet::AttributeSet> OwnerOverlapSet;
|
typedef Dune::Combine<Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::owner>,Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::overlap>,Dune::OwnerOverlapCopyAttributeSet::AttributeSet> OwnerOverlapSet;
|
||||||
|
typedef Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::owner> OwnerSet;
|
||||||
typedef Dune::Combine<OwnerOverlapSet, Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::copy>,Dune::OwnerOverlapCopyAttributeSet::AttributeSet> AllSet;
|
typedef Dune::Combine<OwnerOverlapSet, Dune::EnumItem<Dune::OwnerOverlapCopyAttributeSet::AttributeSet,Dune::OwnerOverlapCopyAttributeSet::copy>,Dune::OwnerOverlapCopyAttributeSet::AttributeSet> AllSet;
|
||||||
OwnerOverlapSet sourceFlags;
|
OwnerSet sourceFlags;
|
||||||
AllSet destFlags;
|
AllSet destFlags;
|
||||||
Dune::Interface interface(communicator_);
|
Dune::Interface interface(communicator_);
|
||||||
if( !remoteIndices_->isSynced() )
|
if( !remoteIndices_->isSynced() )
|
||||||
|
Loading…
Reference in New Issue
Block a user