Actual source code: vecnestimpl.h
1: #ifndef PETSC_VECNESTIMPL_H
2: #define PETSC_VECNESTIMPL_H
4: #include <petsc/private/vecimpl.h>
6: typedef struct {
7: PetscInt nb; /* n blocks */
8: Vec *v;
9: IS *is;
10: PetscBool setup_called;
11: } Vec_Nest;
13: #if !defined(PETSC_CLANG_STATIC_ANALYZER)
14: #define VecNestCheckCompatible2(x, xarg, y, yarg) \
15: do { \
22: } while (0)
24: #define VecNestCheckCompatible3(x, xarg, y, yarg, z, zarg) \
25: do { \
36: } while (0)
37: #else
38: template <typename Tv>
39: void VecNestCheckCompatible2(Tv, int, Tv, int);
40: template <typename Tv>
41: void VecNestCheckCompatible3(Tv, int, Tv, int, Tv, int);
42: #endif
44: #endif // PETSC_VECNESTIMPL_H