Date: 2022-03-31T04:47:33+00:00

Actual source code: mmgcommon.h

      1: #ifndef PETSC_DM_PLEX_MMGCOMMON_H
      2: #define PETSC_DM_PLEX_MMGCOMMON_H

      4: #include <petsc/private/dmpleximpl.h>

      6: #define PetscCallMMG_Private(ret,...) do {                                                        \
      7:     PetscStackPush(PetscStringize(__VA_ARGS__));                                               \
      8:     PetscErrorCode PETSC_UNUSED mmg_ierr_ = __VA_ARGS__;                                       \
      9:     PetscStackPop;                                                                             \
     11:   } while (0)

     13: // MMG sometimes returns 1, sometimes 0 when an error has occurred
     14: #define PetscCallMMG(...)             PetscCallMMG_Private(MMG5_SUCCESS,__VA_ARGS__)
     15: #define PetscCallMMG_NONSTANDARD(...) PetscCallMMG_Private(1,__VA_ARGS__)
     16: #endif // PETSC_DM_PLEX_MMGCOMMON_H