20#ifndef OPM_CUISTL_PRECONDIDTIONER_SHOULD_CALL_POST_PRE_HPP
21#define OPM_CUISTL_PRECONDIDTIONER_SHOULD_CALL_POST_PRE_HPP
23#include <opm/simulators/linalg/gpuistl/detail/has_function.hpp>
32template <
class PreconditionerType>
36 if constexpr (has_should_call_pre<PreconditionerType>::value) {
37 return PreconditionerType::shouldCallPre();
50template <
class PreconditionerType>
54 if constexpr (has_should_call_post<PreconditionerType>::value) {
55 return PreconditionerType::shouldCallPost();
Contains wrappers to make the CuBLAS library behave as a modern C++ library with function overlading.
Definition autotuner.hpp:30
constexpr bool shouldCallPreconditionerPost()
Tests (compile time) if the preconditioner type needs to call post() after a call to apply(....
Definition preconditioner_should_call_post_pre.hpp:52
constexpr bool shouldCallPreconditionerPre()
Tests (compile time) if the preconditioner type needs to call pre() before a call to apply().
Definition preconditioner_should_call_post_pre.hpp:34