mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-22 15:33:29 -06:00
Silence multiple warnings.
Also add more warnings to the disabling list of disable_warnings.h.
This commit is contained in:
parent
7f266458b5
commit
a5da86a9ec
@ -28,11 +28,14 @@
|
||||
#include <exception>
|
||||
|
||||
#if HAVE_MPI && HAVE_DUNE_ISTL
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
#include <opm/core/utility/platform_dependent/disable_warnings.h>
|
||||
#include <dune/istl/owneroverlapcopy.hh>
|
||||
#include <dune/common/parallel/interface.hh>
|
||||
#include <dune/common/parallel/communicator.hh>
|
||||
#include <dune/common/enumset.hh>
|
||||
#include <opm/core/utility/platform_dependent/reenable_warnings.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
@ -26,6 +26,8 @@
|
||||
#error "This file needs to compiled with MPI support!"
|
||||
#endif
|
||||
|
||||
#include <opm/core/utility/platform_dependent/disable_warnings.h>
|
||||
|
||||
#include <dune/common/version.hh>
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 3)
|
||||
#include <dune/common/parallel/mpicollectivecommunication.hh>
|
||||
@ -40,6 +42,8 @@
|
||||
#include <dune/common/parallel/remoteindices.hh>
|
||||
#include <dune/istl/owneroverlapcopy.hh>
|
||||
|
||||
#include <opm/core/utility/platform_dependent/reenable_warnings.h>
|
||||
|
||||
#include <tuple>
|
||||
|
||||
struct MPIFixture {
|
||||
|
@ -48,8 +48,8 @@ void runSumMaxMinTest(const T offset)
|
||||
auto mat = create1DLaplacian(*comm.indexSet(), N, start, end, istart, iend);
|
||||
std::vector<T> x(end-start);
|
||||
assert(comm.indexSet()->size()==x.size());
|
||||
for(auto i=comm.indexSet()->begin(), iend=comm.indexSet()->end(); i!=iend; ++i)
|
||||
x[i->local()]=i->global()+offset;
|
||||
for(auto it=comm.indexSet()->begin(), itend=comm.indexSet()->end(); it!=itend; ++it)
|
||||
x[it->local()]=it->global()+offset;
|
||||
auto containers = std::make_tuple(x, x, x, x);
|
||||
auto operators = std::make_tuple(Opm::Reduction::makeGlobalSumFunctor<T>(),
|
||||
Opm::Reduction::makeGlobalMaxFunctor<T>(),
|
||||
@ -94,8 +94,8 @@ BOOST_AUTO_TEST_CASE(singleContainerReductionTest)
|
||||
auto mat = create1DLaplacian(*comm.indexSet(), N, start, end, istart, iend);
|
||||
std::vector<int> x(end-start);
|
||||
assert(comm.indexSet()->size()==x.size());
|
||||
for(auto i=comm.indexSet()->begin(), iend=comm.indexSet()->end(); i!=iend; ++i)
|
||||
x[i->local()]=i->global();
|
||||
for(auto it=comm.indexSet()->begin(), itend=comm.indexSet()->end(); it!=itend; ++it)
|
||||
x[it->local()]=it->global();
|
||||
int value = 1;
|
||||
int oldvalue = value;
|
||||
comm.computeReduction(x,Opm::Reduction::makeGlobalSumFunctor<int>(),value);
|
||||
|
Loading…
Reference in New Issue
Block a user