Package tao4py
[hide private]
[frames] | no frames]

Package tao4py

This package is an interface to TAO libraries. TAO is based on PETSc and uses MPI.


Version: 2.1.1

Author: Lisandro Dalcin

Submodules [hide private]
  • tao4py.TAO: Tools for Advanced Optimization.
  • tao4py.help: Command line access to the TAO Options Database.
  • tao4py.lib: Extension modules for different TAO configurations.

Functions [hide private]
 
init(args=None, arch=None)
Initializes TAO.
 
get_include()
Return the directory in the package that contains header files.
Variables [hide private]
  __credits__ = 'TAO Team <tao-comments@mcs.anl.gov>'
  __package__ = None
Function Details [hide private]

init(args=None, arch=None)

 

Initializes TAO.

This function should be called only once, typically at the very beginning of the bootstrap script of an application.
Parameters:
  • args - command-line arguments, usually the 'sys.argv' list.
  • arch - specific configuration to use.

get_include()

 

Return the directory in the package that contains header files.

Extension modules that need to compile against tao4py should use this function to locate the appropriate include directory. Using Python distutils (or perhaps NumPy distutils):

import petsc4py, tao4py
Extension('extension_name', ...
          include_dirs=[...,
                        petsc4py.get_include(),
                        tao4py.get_include(),])