Lines Matching refs:da
15 DM da; in test_3d() local
22 …_STENCIL_STAR, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, NULL, &da)); in test_3d()
23 PetscCall(DMSetFromOptions(da)); in test_3d()
24 PetscCall(DMSetUp(da)); in test_3d()
26 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_3d()
27 PetscCall(DMDAGetLocalInfo(da, &info)); in test_3d()
28 PetscCall(DMCreateGlobalVector(da, &v)); in test_3d()
29 PetscCall(DMDAVecGetArray(da, v, &va)); in test_3d()
40 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_3d()
45 PetscCall(DMDestroy(&da)); in test_3d()
58 DM da; in test_2d() local
65 … DM_BOUNDARY_NONE, DMDA_STENCIL_STAR, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, &da)); in test_2d()
66 PetscCall(DMSetFromOptions(da)); in test_2d()
67 PetscCall(DMSetUp(da)); in test_2d()
68 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_2d()
69 PetscCall(DMDAGetLocalInfo(da, &info)); in test_2d()
70 PetscCall(DMCreateGlobalVector(da, &v)); in test_2d()
71 PetscCall(DMDAVecGetArray(da, v, &va)); in test_2d()
79 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_2d()
84 PetscCall(DMDestroy(&da)); in test_2d()
97 DM da; in test_2d_nocoord() local
104 … DM_BOUNDARY_NONE, DMDA_STENCIL_STAR, M, N, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, &da)); in test_2d_nocoord()
105 PetscCall(DMSetFromOptions(da)); in test_2d_nocoord()
106 PetscCall(DMSetUp(da)); in test_2d_nocoord()
107 PetscCall(DMDAGetLocalInfo(da, &info)); in test_2d_nocoord()
108 PetscCall(DMCreateGlobalVector(da, &v)); in test_2d_nocoord()
109 PetscCall(DMDAVecGetArray(da, v, &va)); in test_2d_nocoord()
117 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_2d_nocoord()
122 PetscCall(DMDestroy(&da)); in test_2d_nocoord()
135 DM da; in test_3d_nocoord() local
142 …_STENCIL_STAR, M, N, P, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, sw, NULL, NULL, NULL, &da)); in test_3d_nocoord()
143 PetscCall(DMSetFromOptions(da)); in test_3d_nocoord()
144 PetscCall(DMSetUp(da)); in test_3d_nocoord()
146 PetscCall(DMDAGetLocalInfo(da, &info)); in test_3d_nocoord()
147 PetscCall(DMCreateGlobalVector(da, &v)); in test_3d_nocoord()
148 PetscCall(DMDAVecGetArray(da, v, &va)); in test_3d_nocoord()
159 PetscCall(DMDAVecRestoreArray(da, v, &va)); in test_3d_nocoord()
164 PetscCall(DMDestroy(&da)); in test_3d_nocoord()