opm-simulators
opm-simulators copied to clipboard
Add support for using float Scalars in simulators
Downstream of https://github.com/OPM/opm-common/pull/4016 Downstream of https://github.com/OPM/opm-models/pull/896
These are the changes necessary to support float Scalars.
Some TODOs left:
- UMFPack cannot handle floats. This again means MSW is disabled with floats. SuperLU supports floats so that is a possible solution for this.
Runtime has been lightly tested with the BDA gpu solvers, opencl, cusparse and amgcl (vexcl and cuda backends) and dune cpu solvers. It seems to work although there is non-uniform results (opencl seems to do better than cusparse for some reason).
okay, I have pushed a bisectable version (ie it builds at each step) incorporating your suggestions. I guess this is ready for review now.
umfpack might support single precision in the future, see DrTimothyAldenDavis/SuiteSparse#446