Skip to content

Commit

Permalink
Don't use the data member of Teuchos::Array
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbte committed Jan 11, 2020
1 parent fe4ac93 commit 863da99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testSuite/unit_tests/HYMLS_SparseDirectSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Teuchos::RCP<Epetra_CrsMatrix> createStokesMatrix(int nx, char grid_type='C')
for (int i = 0; i < A->NumMyRows(); i++)
{
int len;
CHECK_ZERO(A->ExtractGlobalRowCopy(i, maxlen, len, values.data(), indices.data()));
CHECK_ZERO(A->ExtractGlobalRowCopy(i, maxlen, len, &values[0], &indices[0]));
if (std::find(pvars.begin(), pvars.end(), i) != pvars.end())
{
for (int j = 0; j < len; j++)
Expand All @@ -54,7 +54,7 @@ Teuchos::RCP<Epetra_CrsMatrix> createStokesMatrix(int nx, char grid_type='C')
values[j] = 0.0;
}
}
CHECK_ZERO(A->ReplaceGlobalValues(i, len, values.data(), indices.data()));
CHECK_ZERO(A->ReplaceGlobalValues(i, len, &values[0], &indices[0]));
}
return HYMLS::MatrixUtils::DropByValue(A, HYMLS_SMALL_ENTRY, HYMLS::MatrixUtils::RelDropDiag);
}
Expand Down

0 comments on commit 863da99

Please sign in to comment.