pratikvn / schwarz-lib

Repository for testing asynchronous schwarz methods.
https://pratikvn.github.io/schwarz-lib/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Two sided communication fails to converge #27

Closed soumyadipghosh closed 4 years ago

soumyadipghosh commented 4 years ago

The following execution after compiling with develop branch does not converge in 500 iterations:

mpirun -np 4 ./benchmarking/bench_ras --num_iters=500 --explicit_laplacian --set_1d_laplacian_size=64 --set_tol=1e-6 --local_tol=1e-12 --partition=regular2d --local_solver=iterative_ginkgo --enable_twosided

However, when the twosided is changed to onesided, it converges!

pratikvn commented 4 years ago

Yes, for twosided, you need to add the --enable_global_check flag which allows it to test for convergence. Otherwise, it just runs until the number of iterations.

pratikvn commented 4 years ago

Closing as I believe it is resolved now.