2: #include "petscdmmg.h" 4: typedef struct { 5: PetscScalar u,v,omega; 6: } Field1; 8: typedef struct { 9: PetscScalar temp; 10: } Field2; 12: typedef struct { 13: PassiveReal lidvelocity,prandtl,grashof; /* physical parameters */ 14: } AppCtx;