Skip to content

Commit

Permalink
Fix parameter setting in call_lib example
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Mar 10, 2015
1 parent 9d3687a commit 7db7296
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/call_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ int main() {
int n = sample_problem(128l, val, col, ptr, rhs);

amgclHandle prm = amgcl_params_create();
amgcl_params_seti(prm, "coarse_enough", 1000);
amgcl_params_setf(prm, "coarsening.aggr.eps_strong", 1e-3);
amgcl_params_seti(prm, "L", 1);
amgcl_params_seti(prm, "amg.coarse_enough", 1000);
amgcl_params_setf(prm, "amg.coarsening.aggr.eps_strong", 1e-3);
amgcl_params_seti(prm, "solver.L", 1);
amgcl_params_seti(prm, "solver.maxiter", 100);

amgclHandle solver = amgcl_solver_create(
amgclCoarseningSmoothedAggregation,
Expand Down

0 comments on commit 7db7296

Please sign in to comment.