petsc-3.14.5 2021-03-03
Report Typos and Errors

# TaoShellSetContext

sets the context for a shell Tao

### Synopsis

    #include "petsctao.h"
    PetscErrorCode  TaoShellSetContext(Tao tao,void *ctx)

Logically Collective on Tao

### Input Parameters

| tao | - the shell Tao
| ctx | - the context

### Fortran Notes

The context can only be an integer or a PetscObject unfortunately it cannot be a Fortran array or derived type.

### See Also

TaoCreateShell(), TaoShellGetContext()

### Level

advanced

### Location

src/tao/unconstrained/impls/cg/taoshell.c

### Examples

src/tao/constrained/tutorials/tomographyADMM.c.html
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages