Commits

Jed Brown  committed 72e34b0 Merge

Merge branch 'barry/ams'

* barry/ams:
PetscStackAMS: define dummy stubs for AMS stack viewing in optimized builds

  • Participants
  • Parent commits 993574e, 6eb7abf

Comments (0)

Files changed (1)

File src/sys/error/pstack.c

   PetscFunctionReturn(0);
 }
 
+#if defined(PETSC_HAVE_AMS)     /* AMS stack functions do nothing in optimized mode */
+void PetscStackAMSGrantAccess(void) {}
+void PetscStackAMSTakeAccess(void) {}
+
+PetscErrorCode PetscStackViewAMS(void)
+{
+  return 0;
+}
+
+#undef __FUNCT__
+#define __FUNCT__ "PetscStackAMSViewOff"
+PetscErrorCode  PetscStackAMSViewOff(void)
+{
+  PetscFunctionBegin;
+  PetscFunctionReturn(0);
+}
+#endif
+
 #endif