mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unnecessary release()
This commit is contained in:
parent
3055c0e921
commit
5dea01b9dc
@ -51,11 +51,6 @@ rocalutionSolverBackend<block_size>::rocalutionSolverBackend(int verbosity_, int
|
||||
template <unsigned int block_size>
|
||||
rocalutionSolverBackend<block_size>::~rocalutionSolverBackend() {
|
||||
rocalution::stop_rocalution();
|
||||
|
||||
// these should be automatically release when rocalutionSolverBackend is destroyed
|
||||
// however, without these, the test_rocalutionSolver segfaults
|
||||
roc_solver.release();
|
||||
roc_prec.release();
|
||||
}
|
||||
|
||||
|
||||
|
@ -60,8 +60,9 @@ private:
|
||||
int *tmp_colindices; // store matrix on host, this pointer is given to and freed by rocalution
|
||||
double *tmp_nnzvalues; // store matrix on host, this pointer is given to and freed by rocalution
|
||||
|
||||
std::unique_ptr<rocalution::BiCGStab<rocalution::LocalMatrix<double>, rocalution::LocalVector<double>, double> > roc_solver;
|
||||
// must be declared in this order, to prevent a segfault during the test
|
||||
std::unique_ptr<rocalution::ILU<rocalution::LocalMatrix<double>, rocalution::LocalVector<double>, double> > roc_prec;
|
||||
std::unique_ptr<rocalution::BiCGStab<rocalution::LocalMatrix<double>, rocalution::LocalVector<double>, double> > roc_solver;
|
||||
|
||||
/// Initialize sizes and allocate memory
|
||||
/// \param[in] matrix matrix A
|
||||
|
Loading…
Reference in New Issue
Block a user