mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-27 18:26:25 -06:00
rocsparsePreconditioner: optionally instantiate for float
rocsparseBILU0: optionally instantiate for float rocsparseCPR: optionally instantiate for float
This commit is contained in:
parent
3ff678b58a
commit
346ba93b66
@ -383,4 +383,8 @@ apply(Scalar& y, Scalar& x) {
|
||||
|
||||
INSTANTIATE_TYPE(double)
|
||||
|
||||
#if FLOW_INSTANTIATE_FLOAT
|
||||
INSTANTIATE_TYPE(float)
|
||||
#endif
|
||||
|
||||
} // namespace Opm
|
||||
|
@ -339,4 +339,8 @@ apply(Scalar& y,
|
||||
|
||||
INSTANTIATE_TYPE(double)
|
||||
|
||||
#if FLOW_INSTANTIATE_FLOAT
|
||||
INSTANTIATE_TYPE(float)
|
||||
#endif
|
||||
|
||||
} // namespace Opm
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user