Marked constructor as explicit.

This commit is contained in:
Kjetil Olsen Lye 2023-03-31 14:02:16 +02:00
parent 84305a7a8d
commit dfc5331696

View File

@ -117,7 +117,7 @@ public:
//! \note After the PreconditionerConvertFieldTypeAdapter you can get the converted matrix //! \note After the PreconditionerConvertFieldTypeAdapter you can get the converted matrix
//! by calling getConvertedMatrix(), which in turn can be used to create the underlying preconditioner. //! by calling getConvertedMatrix(), which in turn can be used to create the underlying preconditioner.
//! Once the underlying precondtioner has been called, this must be supplied to setUnderlyingPreconditioner. //! Once the underlying precondtioner has been called, this must be supplied to setUnderlyingPreconditioner.
PreconditionerConvertFieldTypeAdapter(const M& matrix) explicit PreconditionerConvertFieldTypeAdapter(const M& matrix)
: m_matrix(matrix) : m_matrix(matrix)
, m_convertedMatrix(createConvertedMatrix()) , m_convertedMatrix(createConvertedMatrix())
{ {