rocsparsePreconditioner: optionally instantiate for float

rocsparseBILU0: optionally instantiate for float
rocsparseCPR: optionally instantiate for float
This commit is contained in:
Arne Morten Kvarving 2024-04-16 14:31:09 +02:00
parent 3ff678b58a
commit 346ba93b66
3 changed files with 13 additions and 1 deletions

View File

@ -383,4 +383,8 @@ apply(Scalar& y, Scalar& x) {
INSTANTIATE_TYPE(double)
#if FLOW_INSTANTIATE_FLOAT
INSTANTIATE_TYPE(float)
#endif
} // namespace Opm

View File

@ -339,4 +339,8 @@ apply(Scalar& y,
INSTANTIATE_TYPE(double)
#if FLOW_INSTANTIATE_FLOAT
INSTANTIATE_TYPE(float)
#endif
} // namespace Opm

View File

@ -73,7 +73,7 @@ setJacMat(const BlockedMatrix<Scalar>& jMat)
this->jacMat = std::make_shared<BlockedMatrix<Scalar>>(jMat);
}
#define INSTANTIATE_TYPE(T) \
#define INSTANTIATE_TYPE(T) \
template class rocsparsePreconditioner<T,1>; \
template class rocsparsePreconditioner<T,2>; \
template class rocsparsePreconditioner<T,3>; \
@ -83,5 +83,9 @@ setJacMat(const BlockedMatrix<Scalar>& jMat)
INSTANTIATE_TYPE(double)
#if FLOW_INSTANTIATE_FLOAT
INSTANTIATE_TYPE(float)
#endif
} //namespace Opm