Skip to content
Snippets Groups Projects

workaround for communicators in blocked bases, use SequentialCommunication if not flat MultiIndex

Merged Praetorius, Simon requested to merge issue/parallel_global_blocked_basis into master
2 files
+ 22
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -23,12 +23,13 @@
#include <dune/typetree/treepath.hh>
#include <amdis/common/Concepts.hpp>
#include <amdis/common/TypeTraits.hpp>
#include <amdis/linearalgebra/Traits.hpp>
#include <amdis/AdaptiveGrid.hpp>
#include <amdis/Observer.hpp>
#include <amdis/Output.hpp>
#include <amdis/common/Concepts.hpp>
#include <amdis/common/TypeTraits.hpp>
#include <amdis/linearalgebra/Traits.hpp>
#include <amdis/typetree/MultiIndex.hpp>
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
#include <dune/functions/functionspacebases/defaultlocalindexset.hh>
@@ -65,7 +66,9 @@ namespace AMDiS
using LocalView = Dune::Functions::DefaultLocalView<Self>;
/// Type of the communicator
using Comm = typename BackendTraits<Self>::Comm;
using Comm = std::conditional_t<Traits::IsFlatIndex<typename Super::MultiIndex>::value,
typename BackendTraits<Self>::Comm,
SequentialCommunication>;
struct DummyImpl {};
using ADH = Dune::AdaptDataHandle<Grid, DummyImpl>;
Loading