Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Aug 7, 2024
1 parent baa9619 commit 9da6f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions core/distributed/preconditioner/schwarz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ void Schwarz<ValueType, LocalIndexType, GlobalIndexType>::apply_dense_impl(

restrict->apply(dense_b, this->csol_);
this->coarse_solver_->apply(this->csol_, this->csol_);
prolong->apply(this->half_.get(), this->csol_.get(), this->half_.get(),
dense_x);
prolong->apply(this->half_, this->csol_, this->half_, dense_x);
}
}

Expand Down
8 changes: 2 additions & 6 deletions examples/distributed-solver/distributed-solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ int main(int argc, char* argv[])
solver::build()
.with_preconditioner(
schwarz::build()
.with_local_solver_factory(local_solver)
.with_local_solver(local_solver)
.with_galerkin_ops_factory(pgm_fac)
.with_coarse_solver_factory(coarse_solver)
.on(exec))
Expand All @@ -228,11 +228,7 @@ int main(int argc, char* argv[])
Ainv =
solver::build()
.with_preconditioner(
schwarz::build()
.with_local_solver_factory(local_solver)
.with_galerkin_ops_factory(pgm_fac)
.with_coarse_solver_factory(coarse_solver)
.on(exec))
schwarz::build().with_local_solver(local_solver).on(exec))
.with_criteria(
gko::stop::Iteration::build().with_max_iters(num_iters).on(
exec),
Expand Down

0 comments on commit 9da6f53

Please sign in to comment.