PyTrilinos Logo PyTrilinos.New_Package

PyTrilinos.New_Package

The Print() methods of the Newp_Hello and Newp_Jambo classes are ignored, because they take an ostream argument, and streams are not directly supported in python. These are replaced with __str__() methods which return strings produced by the underlying Print() methods. Therefore, you can do the following:

>>> from PyTrilinos import Epetra, New_Package
>>> comm = Epetra.PyComm()
>>> hello = New_Package.Newp_Hello(comm)
>>> print hello
This will print out one line for each of the 1 processes

Hello.  I am process 0