petsc-3.3-p7 2013-05-11


Opens an AMS memory snooper PetscViewer.


#include "petsc.h"  */
PetscErrorCode PetscViewerAMSOpen(MPI_Comm comm,const char name[],PetscViewer *lab)
Collective on MPI_Comm

Input Parameters

comm - the MPI communicator
name - name of AMS communicator being created

Output Parameter

lab -the PetscViewer

Options Database Keys

-ams_port <port number> - port number where you are running AMS client
-ams_publish_objects - publish all PETSc objects to be visible to the AMS memory snooper, use PetscObjectAMSPublish() to publish individual objects
-ams_java - open JAVA AMS client

Fortran Note

This routine is not supported in Fortran.

See the matlab/petsc directory in the AMS installation for one example of external tools that can monitor PETSc objects that have been published.


This PetscViewer can be destroyed with PetscViewerDestroy().

Information about the AMS is available via

See Also

PetscObjectAMSPublish(), PetscViewerDestroy(), PetscViewerStringSPrintf()

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages