mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-14 04:11:55 -06:00
BlockedMatrix: optionally instantiate for float
This commit is contained in:
parent
da2a894090
commit
36c544e204
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user