Commit 1ed52d99 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#984 Remove a Petsc wrapped function that was unused... and would be of no use...

#984 Remove a Petsc wrapped function that was unused... and would be of no use in HappyHeart anyway.
parent 12b236aa
......@@ -280,25 +280,6 @@ namespace HappyHeart
}
void Matrix::SetValuesBlocked(const std::vector<PetscInt>& row_indexing,
const std::vector<PetscInt>& column_indexing,
const PetscScalar* values, InsertMode insertOrAppend,
const char* invoking_file, int invoking_line)
{
int error_code = MatSetValuesBlocked(Internal(),
static_cast<PetscInt>(row_indexing.size()),
row_indexing.data(),
static_cast<PetscInt>(column_indexing.size()),
column_indexing.data(),
values,
insertOrAppend);
if (error_code)
throw ExceptionNS::Exception(error_code, "MatSetValuesBlocked", invoking_file, invoking_line);
}
void Matrix::SetValuesRow(PetscInt row_index,
const PetscScalar* values,
const char* invoking_file, int invoking_line)
......
......@@ -347,31 +347,6 @@ namespace HappyHeart
const PetscScalar* values,
const char* invoking_file, int invoking_line);
/*!
* \brief Add or modify a block of values into a Petsc matrix.
*
* According to Petsc documentation, it is likely more efficient than \a SetValues().
*
* \warning Assembly() must be called afterwards!
*
* \param[in] row_indexing Program-wise index of the rows which values will be set.
* \param[in] column_indexing Program-wise index of the columns which values will be set.
* Should be the same size as \a row_indexing.
* \param[in] values Values to put in the matrix. This array should be the same size as \a row_indexing
* (unfortunately we can't check that here as it is a C array).
* \param [in] insertOrAppend Petsc ADD_VALUES or INSERT_VALUES (see Petsc documentation).
* \param[in] invoking_file File that invoked the function or class; usually __FILE__.
* \param[in] invoking_line File that invoked the function or class; usually __LINE__.
*/
void SetValuesBlocked(const std::vector<PetscInt>& row_indexing,
const std::vector<PetscInt>& column_indexing,
const PetscScalar* values,
InsertMode insertOrAppend,
const char* invoking_file, int invoking_line);
/*!
* \brief Set a single entry into a Petsc matrix.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment