AMS is a software library that uses threads, sockets, and locks to allow a running program (called the accessor) to read (and change when desired) variables in another running code (called the publisher application).
Requirements and installation of the AMS (if not using the --download-ams PETSc ./configure option)
- This is currently only supported with petsc-dev
A current version of AMS available from
- Edit the file makeinc and set the compiler, linker etc.
- Run make
Usage from PETSc
./configure PETSc with the option --with-ams-dir=/directorywhereamsisinstalled (or --download-ams) --with-java [--java=/usr/bin/java -d32 --javac=/usr/bin/javac]
- To change variables in the options database run PETSc applications with the additional options -options_gui and -ams_java and you will see something like depicted in this movie
To examine options in a browser, run PETSc applications with
-server <port> -ams_publish_objectsand point your brower to