[petsc-users] Save images of ksp_monitor and ksp_view_eigenvaluses with user defined names
Zongze Yang
yangzongze at gmail.com
Wed Feb 8 04:09:55 CST 2023
Hi, PETSc group,
I was trying to save figures of the residual and eigenvalues with different
names but not default names.
The default name is used when I use `-draw_save .png`. All images are saved.
```
python test.py -N 16 -test1_ksp_type gmres -test1_pc_type jacobi
-test1_ksp_view_eigenvalues draw -test1_ksp_monitor draw::draw_lg
-draw_save .png
```
But when I use `-draw_save abc.png`, only the figure of eigenvalues is
saved.
```
python test.py -N 16 -test1_ksp_type gmres -test1_pc_type jacobi
-test1_ksp_view_eigenvalues draw -test1_ksp_monitor draw::draw_lg
-draw_save .png
```
How can I add the command line options, to specify different names for
those images?
Thanks,
Zongze
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230208/c54d32d2/attachment.html>
More information about the petsc-users
mailing list