hopefully fixed compilation and linking problems with WITHGPU

This commit is contained in:
hnil
2023-08-09 14:54:10 +02:00
parent 63b9b01671
commit 07fb18422d
7 changed files with 91 additions and 91 deletions

View File

@@ -31,10 +31,13 @@
namespace Opm {
template <class TypeTag>
class ISTLSolverEbosWithGPU;
template <class TypeTag>
class ISTLSolverEbos;
}
namespace Opm::Properties {
namespace TTag {
@@ -50,7 +53,7 @@ template<class TypeTag, class MyTypeTag>
struct RelaxedLinearSolverReduction {
using type = UndefinedProperty;
};
template<class TypeTag, class MyTypeTag>
struct LinearSolverMaxIter {
using type = UndefinedProperty;
@@ -135,7 +138,7 @@ template<class TypeTag>
struct RelaxedLinearSolverReduction<TypeTag, TTag::FlowIstlSolverParams> {
using type = GetPropType<TypeTag, Scalar>;
static constexpr type value = 1e-2;
};
};
template<class TypeTag>
struct LinearSolverMaxIter<TypeTag, TTag::FlowIstlSolverParams> {
static constexpr int value = 200;
@@ -217,9 +220,12 @@ struct OpenclIluParallel<TypeTag, TTag::FlowIstlSolverParams> {
// Set the backend to be used.
template<class TypeTag>
struct LinearSolverBackend<TypeTag, TTag::FlowIstlSolverParams> {
#if COMPLE_BDA_BRIDGE
using type = ISTLSolverEbosWithGPU<TypeTag>;
#else
using type = ISTLSolverEbos<TypeTag>;
#endif
};
} // namespace Opm::Properties
namespace Opm