mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
avoid unnecessary copy of jacobian
This commit is contained in:
parent
4577469e19
commit
66747886c6
@ -68,8 +68,9 @@ set_context(rocsparse_handle handle_,
|
|||||||
|
|
||||||
template <class Scalar, unsigned int block_size>
|
template <class Scalar, unsigned int block_size>
|
||||||
void rocsparsePreconditioner<Scalar, block_size>::
|
void rocsparsePreconditioner<Scalar, block_size>::
|
||||||
setJacMat(BlockedMatrix<Scalar> jacMat) {
|
setJacMat(const BlockedMatrix<Scalar>& jMat)
|
||||||
this->jacMat = std::make_shared<BlockedMatrix<Scalar>>(jacMat);
|
{
|
||||||
|
this->jacMat = std::make_shared<BlockedMatrix<Scalar>>(jMat);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define INSTANTIATE_TYPE(T) \
|
#define INSTANTIATE_TYPE(T) \
|
||||||
|
@ -84,7 +84,7 @@ public:
|
|||||||
rocsparse_operation operation,
|
rocsparse_operation operation,
|
||||||
hipStream_t stream);
|
hipStream_t stream);
|
||||||
|
|
||||||
void setJacMat(BlockedMatrix<Scalar> jacMat);
|
void setJacMat(const BlockedMatrix<Scalar>& jacMat);
|
||||||
};
|
};
|
||||||
} //namespace Opm
|
} //namespace Opm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user