:orphan: # PetscStackCopy Copy the information from one PETSc stack to another ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscStackCopy(PetscStack *sint, PetscStack *sout) ``` Not Collective ## Input Parameter - ***sint -*** the stack to be copied from ## Output Parameter - ***sout -*** the stack to be copied to, this stack must already exist ## Note In debug mode PETSc maintains a stack of the current function calls that can be used to help to quickly see where a problem has occurred, for example, when a signal is received. It is recommended to use the debugger if extensive information is needed to help debug the problem. ## See Also `PetscAttachDebugger()`, `PetscStackView()` ## Level developer ## Location src/sys/error/pstack.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/error/pstack.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)