:orphan: # TaoDestroy Destroys the `Tao` context that was created with `TaoCreate()` ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoDestroy(Tao *tao) ``` Collective ## Input Parameter - ***tao -*** the `Tao` context ## See Also [](ch_tao), `Tao`, `TaoCreate()`, `TaoSolve()` ## Level beginner ## Location src/tao/interface/taosolver.c ## Examples src/tao/bound/tutorials/jbearing2.c
src/tao/bound/tutorials/plate2.c
src/tao/bound/tutorials/plate2f.F90
src/tao/complementarity/tutorials/blackscholes.c
src/tao/complementarity/tutorials/minsurf1.c
src/tao/constrained/tutorials/ex1.c
src/tao/constrained/tutorials/maros.c
src/tao/constrained/tutorials/tomographyADMM.c
src/tao/leastsquares/tutorials/chwirut1.c
src/tao/leastsquares/tutorials/chwirut1f.F90
src/tao/leastsquares/tutorials/chwirut2.c
## Implementations TaoDestroy_BLMVM in src/tao/bound/impls/blmvm/blmvm.c
TaoDestroy_BNCG in src/tao/bound/impls/bncg/bncg.c
TaoDestroy_BNK in src/tao/bound/impls/bnk/bnk.c
TaoDestroy_BQNK in src/tao/bound/impls/bqnk/bqnk.c
TaoDestroy_TRON in src/tao/bound/impls/tron/tron.c
TaoDestroy_ASFLS in src/tao/complementarity/impls/asls/asfls.c
TaoDestroy_ASILS in src/tao/complementarity/impls/asls/asils.c
TaoDestroy_SSFLS in src/tao/complementarity/impls/ssls/ssfls.c
TaoDestroy_SSILS in src/tao/complementarity/impls/ssls/ssils.c
TaoDestroy_ADMM in src/tao/constrained/impls/admm/admm.c
TaoDestroy_ALMM in src/tao/constrained/impls/almm/almm.c
TaoDestroy_IPM in src/tao/constrained/impls/ipm/ipm.c
TaoDestroy_PDIPM in src/tao/constrained/impls/ipm/pdipm.c
TaoDestroy_BRGN in src/tao/leastsquares/impls/brgn/brgn.c
TaoDestroy_POUNDERS in src/tao/leastsquares/impls/pounders/pounders.c
TaoDestroy_LCL in src/tao/pde_constrained/impls/lcl/lcl.c
TaoDestroy_BQPIP in src/tao/quadratic/impls/bqpip/bqpip.c
TaoDestroy_GPCG in src/tao/quadratic/impls/gpcg/gpcg.c
TaoDestroy_BMRM in src/tao/unconstrained/impls/bmrm/bmrm.c
TaoDestroy_CG in src/tao/unconstrained/impls/cg/taocg.c
TaoDestroy_LMVM in src/tao/unconstrained/impls/lmvm/lmvm.c
TaoDestroy_NM in src/tao/unconstrained/impls/neldermead/neldermead.c
TaoDestroy_NLS in src/tao/unconstrained/impls/nls/nls.c
TaoDestroy_NTL in src/tao/unconstrained/impls/ntl/ntl.c
TaoDestroy_NTR in src/tao/unconstrained/impls/ntr/ntr.c
TaoDestroy_OWLQN in src/tao/unconstrained/impls/owlqn/owlqn.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver.c) [Index of all Tao routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)