mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Bugfix: wrong size when copying matrix to GPU row-by-row
This commit is contained in:
parent
5c4d1a3f65
commit
38f67ffa57
@ -432,7 +432,7 @@ void openclSolverBackend<block_size>::initialize(std::shared_ptr<BlockedMatrix>
|
||||
prec->setOpencl(context, queue);
|
||||
|
||||
#if COPY_ROW_BY_ROW
|
||||
vals_contiguous = new double[N];
|
||||
vals_contiguous.resize(nnz);
|
||||
#endif
|
||||
mat = matrix;
|
||||
jacMat = jacMatrix;
|
||||
|
Loading…
Reference in New Issue
Block a user