Lines Matching refs:da

17   DM                da;  in test_3d()  local
24 …_STENCIL_STAR, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, NULL, &da)); in test_3d()
25 PetscCall(DMSetFromOptions(da)); in test_3d()
26 PetscCall(DMSetUp(da)); in test_3d()
28 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_3d()
29 PetscCall(DMDAGetLocalInfo(da, &info)); in test_3d()
30 PetscCall(DMCreateGlobalVector(da, &v)); in test_3d()
31 PetscCall(DMDAVecGetArray(da, v, &va)); in test_3d()
42 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_3d()
47 PetscCall(DMDestroy(&da)); in test_3d()
60 DM da; in test_2d() local
67 … DM_BOUNDARY_NONE, DMDA_STENCIL_STAR, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, &da)); in test_2d()
68 PetscCall(DMSetFromOptions(da)); in test_2d()
69 PetscCall(DMSetUp(da)); in test_2d()
70 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_2d()
71 PetscCall(DMDAGetLocalInfo(da, &info)); in test_2d()
72 PetscCall(DMCreateGlobalVector(da, &v)); in test_2d()
73 PetscCall(DMDAVecGetArray(da, v, &va)); in test_2d()
81 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_2d()
86 PetscCall(DMDestroy(&da)); in test_2d()
99 DM da; in test_2d_nocoord() local
106 … DM_BOUNDARY_NONE, DMDA_STENCIL_STAR, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, &da)); in test_2d_nocoord()
107 PetscCall(DMSetFromOptions(da)); in test_2d_nocoord()
108 PetscCall(DMSetUp(da)); in test_2d_nocoord()
109 PetscCall(DMDAGetLocalInfo(da, &info)); in test_2d_nocoord()
110 PetscCall(DMCreateGlobalVector(da, &v)); in test_2d_nocoord()
111 PetscCall(DMDAVecGetArray(da, v, &va)); in test_2d_nocoord()
119 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_2d_nocoord()
124 PetscCall(DMDestroy(&da)); in test_2d_nocoord()
137 DM da; in test_3d_nocoord() local
144 …_STENCIL_STAR, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, NULL, &da)); in test_3d_nocoord()
145 PetscCall(DMSetFromOptions(da)); in test_3d_nocoord()
146 PetscCall(DMSetUp(da)); in test_3d_nocoord()
148 PetscCall(DMDAGetLocalInfo(da, &info)); in test_3d_nocoord()
149 PetscCall(DMCreateGlobalVector(da, &v)); in test_3d_nocoord()
150 PetscCall(DMDAVecGetArray(da, v, &va)); in test_3d_nocoord()
161 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_3d_nocoord()
166 PetscCall(DMDestroy(&da)); in test_3d_nocoord()