1: #pragma once 3: #include <petscdmproduct.h> 4: #include <petsc/private/dmimpl.h> 6: #define DMPRODUCT_MAX_DIM 3 8: typedef struct { 9: DM dm[DMPRODUCT_MAX_DIM]; 10: PetscInt dim[DMPRODUCT_MAX_DIM]; /* Which dimension in the sub DM for this slot? */ 11: } DM_Product;