Skip to content
Snippets Groups Projects
Commit 59c37ee9 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Merge branch 'mpifuture_fix_getmpidata' into 'master'

fix MPIFuture::get_mpidata

See merge request !894
parents d710186d 7d4ca706
Branches
Tags
1 merge request!894fix MPIFuture::get_mpidata
Pipeline #37180 passed
Pipeline: Dune Nightly Test

#37182

    ......@@ -161,11 +161,11 @@ namespace Dune{
    }
    auto get_mpidata(){
    return getMPIData<R>(*data_);
    return getMPIData(*data_);
    }
    auto get_send_mpidata(){
    return getMPIData<S>(*send_data_);
    return getMPIData(*send_data_);
    }
    };
    ......
    ......@@ -5,6 +5,18 @@
    #include <dune/common/parallel/mpihelper.hh>
    #include <dune/common/dynvector.hh>
    namespace Dune {
    template<class Dummy>
    struct MPIData<const int&, Dummy>
    {
    static_assert(Dune::AlwaysFalse<Dummy>::value, "MPIData of reference type should not be used!");
    // MPIData of reference type should not be used!
    // This struct should never be used it just
    // exists to generate a compiler error
    };
    }
    int main(int argc, char** argv){
    auto& mpihelper = Dune::MPIHelper::instance(argc, argv);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment