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 29, 2024
1 parent 60c1391 commit 025170d
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 025170d

Please sign in to comment.