petsc-3.3-p7 2013-05-11

PetscViewerAMSOpen

Opens an AMS memory snooper PetscViewer.

Synopsis

#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.

Notes

This PetscViewer can be destroyed with PetscViewerDestroy().

Information about the AMS is available via http://www.mcs.anl.gov/ams.

See Also

PetscObjectAMSPublish(), PetscViewerDestroy(), PetscViewerStringSPrintf()

Level:advanced
Location:
src/sys/viewer/impls/ams/amsopen.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages