Files
opm-simulators/opm/simulators/linalg/ExtraSmoothers.hpp
T
Markus Blatt 6dc0485482 Prepare OPM for DUNE 2.10
DUNE_VERSION_NEWER has been removed. Falling back to DUNE_VERSION_GTE
which exists since at least DUNE 2.7.

Removed switches for older version than 2.7.
2025-03-27 10:00:04 +01:00

28 lines
713 B
C++

#ifndef OPM_EXTRASMOOTHERS_HPP
#define OPM_EXTRASMOOTHERS_HPP
#include "DILU.hpp"
namespace Dune
{
template <class M, class X, class Y>
class MultithreadDILU;
namespace Amg
{
/**
* @brief Policy for the construction of the MultithreadDILU smoother
*/
template <class M, class X, class Y>
struct ConstructionTraits<MultithreadDILU<M, X, Y>> {
using Arguments = DefaultConstructionArgs<MultithreadDILU<M, X, Y>>;
static inline std::shared_ptr<MultithreadDILU<M, X, Y>> construct(Arguments& args) {
return std::make_shared<MultithreadDILU<M, X, Y>>(args.getMatrix());
}
};
} // namespace Amg
} // namespace Dune
#endif // OPM_EXTRASMOOTHERS_HPP