Home
last modified time | relevance | path

Searched refs:petscstack (Results 1 – 6 of 6) sorted by relevance

/petsc/src/sys/error/
H A Dpstack.c4 PetscStack petscstack; variable
61 …PetscCallSAWs(SAWs_Register, ("/PETSc/Stack/functions", petscstack.function, 20, SAWs_READ, SAWs_S… in PetscStackViewSAWs()
62 …PetscCallSAWs(SAWs_Register, ("/PETSc/Stack/__current_size", &petscstack.currentsize, 1, SAWs_READ… in PetscStackViewSAWs()
81 petscstack.check = check; in PetscStackSetCheck()
87 memset(&petscstack, 0, sizeof(petscstack)); in PetscStackReset()
117 if (petscstack.currentsize < 0) { in PetscStackView()
121 … fprintf(file, "PetscStack is definitely corrupted with stack size %d\n", petscstack.currentsize); in PetscStackView()
122 } else if (petscstack.currentsize == 0) { in PetscStackView()
133 for (int i = petscstack.currentsize - 1, j = 1; i >= 0; --i, ++j) { in PetscStackView()
134petscstack.file[i]) PetscCall((*PetscErrorPrintf)("#%d %s() at %s:%d\n", j, petscstack.function[i]… in PetscStackView()
[all …]
H A Dcheckptr.c84 if (petscstack.hotdepth > 0 && petsc_checkpointer_intensity < 2) return PETSC_TRUE; in PetscCheckPointer()
/petsc/include/
H A Dpetscerror.h1404 PETSC_EXTERN PetscStack petscstack; variable
1514 PetscStackPush_Private(petscstack, __FILE__, funct, __LINE__, petsc_routine, hot); \
1545petscstack.currentsize > 0 && petscstack.currentsize < PETSCSTACKSIZE && petscstack.function[petsc…
1618 PetscStackPop_Private(petscstack, funct); \
1625 if (petscstack.currentsize > 0 && --petscstack.currentsize < PETSCSTACKSIZE) { \
1626 petscstack.function[petscstack.currentsize] = PETSC_NULLPTR; \
1627 petscstack.file[petscstack.currentsize] = PETSC_NULLPTR; \
1628 petscstack.line[petscstack.currentsize] = 0; \
1629 petscstack.petscroutine[petscstack.currentsize] = 0; \
1631 petscstack.hotdepth = PetscMax(petscstack.hotdepth - 1, 0); \
/petsc/src/sys/objects/device/interface/
H A Dmark_dcontext.cxx645 const auto index = petscstack.currentsize > 2 ? petscstack.currentsize - 2 : 0; in PetscDeviceContextMarkIntentFromID()
646 const auto file = petscstack.file[index]; in PetscDeviceContextMarkIntentFromID()
647 const auto function = petscstack.function[index]; in PetscDeviceContextMarkIntentFromID()
648 const auto line = petscstack.line[index]; in PetscDeviceContextMarkIntentFromID()
/petsc/src/sys/memory/
H A Dmtr.c204 PetscCall(PetscStackCopy(&petscstack, &head->stack)); in PetscTrMallocDefault()
412 PetscCall(PetscStackCopy(&petscstack, &head->stack)); in PetscTrReallocDefault()
/petsc/src/vec/vec/interface/
H A Drvector.c3808 if ((index = petscstack.currentsize - 2) < 0) { in VecLockReadPush()
3815 file = petscstack.file[index]; in VecLockReadPush()
3816 func = petscstack.function[index]; in VecLockReadPush()
3817 line = petscstack.line[index]; in VecLockReadPush()
3819 …PetscStackPush_Private(x->lockstack, file, func, line, petscstack.petscroutine[index], PETSC_FALSE… in VecLockReadPush()