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

Plot the residual over iterations for every PE #22

Open soumyadipghosh opened 4 years ago

soumyadipghosh commented 4 years ago

This would be useful to study convergence. There can be a struct similar to comm_data_struct which stores the residuals over iterations for every PE. After the solver converges, it can be printed to a file. A python script can then be used to plot data.

pratikvn commented 4 years ago

The object local_residual_vector_out already stores the local residual norms. You would just need to print it out.

soumyadipghosh commented 4 years ago

Did this using local_residual_norm defined here

pratikvn commented 4 years ago

local_residual_vector_out also stores local_residual_norm for all iterations and all subdomains.