SAWs is a software library that uses threads, sockets, and locks to allow a client program to read (and change when desired) variables in the server (PETSc) application).
Requirements and installation of the SAWs (if not using the --download-saws PETSc ./configure option)
-
A current version of SAWs available from
https://bitbucket.org/saws/saws
Usage from PETSc
-
./configure PETSc with the option --with-saws-dir=/directorywhereamsisinstalled (or --download-saws we always recommend this option)
-
To examine options in a browser, run PETSc applications with
-saws_view saws -ts_view_pre saws
and point your brower tohttp://localhost:8080
or if you are running your application on a different machine pass the name of that machine to the browser.