Lines Matching refs:mesh
53 DM_Patch *mesh; in DMCreate_Patch() local
57 PetscCall(PetscNew(&mesh)); in DMCreate_Patch()
58 dm->data = mesh; in DMCreate_Patch()
60 mesh->refct = 1; in DMCreate_Patch()
61 mesh->dmCoarse = NULL; in DMCreate_Patch()
62 mesh->patchSize.i = 0; in DMCreate_Patch()
63 mesh->patchSize.j = 0; in DMCreate_Patch()
64 mesh->patchSize.k = 0; in DMCreate_Patch()
65 mesh->patchSize.c = 0; in DMCreate_Patch()
91 PetscErrorCode DMPatchCreate(MPI_Comm comm, DM *mesh) in DMPatchCreate() argument
94 PetscAssertPointer(mesh, 2); in DMPatchCreate()
95 PetscCall(DMCreate(comm, mesh)); in DMPatchCreate()
96 PetscCall(DMSetType(*mesh, DMPATCH)); in DMPatchCreate()
102 DM_Patch *mesh; in DMPatchCreateGrid() local
108 mesh = (DM_Patch *)(*dm)->data; in DMPatchCreateGrid()
126 mesh->dmCoarse = da; in DMPatchCreateGrid()