Skip to content

Commit

Permalink
Remove unneeded scope block
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Feb 27, 2024
1 parent 8e4148a commit f3ef607
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions palace/linalg/rap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ void ParOperator::EliminateRHS(const Vector &x, Vector &b) const
auto ly = workspace::NewVector<Vector>(test_fespace.GetVSize());
A->Mult(lx, ly);

{
auto ty = workspace::NewVector<Vector>(test_fespace.GetTrueVSize());
RestrictionMatrixMult(ly, ty);
b.Add(-1.0, ty);
}
auto ty = workspace::NewVector<Vector>(test_fespace.GetTrueVSize());
RestrictionMatrixMult(ly, ty);
b.Add(-1.0, ty);
if (diag_policy == DiagonalPolicy::DIAG_ONE)
{
linalg::SetSubVector(b, dbc_tdof_list, x);
Expand Down

0 comments on commit f3ef607

Please sign in to comment.