PETSc

Documentation:  Zope


Zope can be used to generate a webpage containing all output of a PETSc program. This output is organized on the webpage, and can be saved for later review.

All commands are from the toplevel PETSc directory [using bash shell]

Requirements and installation

  • A current version of Zope, download information can be found at www.zope.org
  • Python2.4, at the time of writing this Zope is not compatible with python2.5 or higher
  • The ZOPE_HOME environmental variable must be set to the Zope home directory. For example /usr/lib/zope2.9
  • run python ./zope/configure.py to verify correct directories

Usage

  • To start the Zope server automatically, run ./zope/zope
  • The Zope server can also be started manually with the following commands if a problem occurs:
  • cp ./zope/var/data.fs.hg ./zope/var/Data.fs
  • ./zope/zopemanual
  • point your browser to http://localhost:9673/PETSc/startserver, it will display "TCP server started" if the startup was successful
  • View the webpage at http://localhost:9673/PETSc/
  • On your first visit to the site, you will be prompted for your username. This is the username that you will be running your PETSc code under.
  • Run your PETSc program with the -zope option to have output sent to stdout and Zope.
  • An argument to the -zope option can be given to specify a machine Zope is currently running on, otherwise it defaults to localhost
  • Add the -nostdout option to have PETSc print only to Zope