Skip to content
Snippets Groups Projects
Verified Commit 669a0a6b authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

fix MPIFuture::get_mpidata

parent b2a3e8ad
Branches
Tags
1 merge request!894fix MPIFuture::get_mpidata
......@@ -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,15 @@
#include <dune/common/parallel/mpihelper.hh>
#include <dune/common/dynvector.hh>
namespace Dune {
template<>
struct MPIData<const int&>{
// 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