BlockedMatrix: optionally instantiate for float

This commit is contained in:
Arne Morten Kvarving 2024-04-16 14:29:22 +02:00
parent da2a894090
commit 36c544e204

View File

@ -89,10 +89,14 @@ void blockMult(Scalar* mat1, Scalar* mat2, Scalar* resMat, unsigned int block_si
}
}
#define INSTANCE_TYPE(T) \
template void blockMultSub(double*, double*, double*, unsigned int); \
template void blockMult(double*, double*, double*, unsigned int);
#define INSTANTIATE_TYPE(T) \
template void blockMultSub(T*, T*, T*, unsigned int); \
template void blockMult(T*, T*, T*, unsigned int);
INSTANCE_TYPE(double)
INSTANTIATE_TYPE(double)
#if FLOW_INSTANTIATE_FLOAT
INSTANTIATE_TYPE(float)
#endif
} // namespace Opm::Accelerator