mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: replace boost::any with std::any
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#if defined(HAVE_OPM_GRID)
|
||||
#if defined(HAVE_MPI) && defined(HAVE_DUNE_ISTL)
|
||||
// Extracts the information about the data decomposition from the grid for dune-istl
|
||||
void extractParallelGridInformationToISTL(const Dune::CpGrid& grid, boost::any& anyComm)
|
||||
void extractParallelGridInformationToISTL(const Dune::CpGrid& grid, std::any& anyComm)
|
||||
{
|
||||
if(grid.comm().size()>1)
|
||||
{
|
||||
@@ -35,14 +35,14 @@ void extractParallelGridInformationToISTL(const Dune::CpGrid& grid, boost::any&
|
||||
Dune::CpGrid& mgrid=const_cast<Dune::CpGrid&>(grid);
|
||||
Dune::CpGrid::ParallelIndexSet& idx=mgrid.getCellIndexSet();
|
||||
Dune::CpGrid::RemoteIndices& ridx=mgrid.getCellRemoteIndices();
|
||||
anyComm=boost::any(Opm::ParallelISTLInformation(Dune::stackobject_to_shared_ptr(idx),
|
||||
anyComm=std::any(Opm::ParallelISTLInformation(Dune::stackobject_to_shared_ptr(idx),
|
||||
Dune::stackobject_to_shared_ptr(ridx),
|
||||
grid.comm()));
|
||||
}
|
||||
}
|
||||
#else
|
||||
// Missing support for MPI or dune-istl -> do nothing.
|
||||
void extractParallelGridInformationToISTL(const Dune::CpGrid&, boost::any&)
|
||||
void extractParallelGridInformationToISTL(const Dune::CpGrid&, std::any&)
|
||||
{}
|
||||
#endif //defined(HAVE_MPI) && defined(HAVE_DUNE_ISTL)
|
||||
#endif //defined(HAVE_OPM_GRID)
|
||||
|
||||
Reference in New Issue
Block a user