Home
last modified time | relevance | path

Searched refs:da_prop (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ksp/ksp/tutorials/
H A Dex49.c707 DM elas_da, da_prop; in solve_elasticity_2d() local
762 …ARY_NONE, DMDA_STENCIL_BOX, mx, my, cpu_x, cpu_y, prop_dof, prop_stencil_width, lx, ly, &da_prop)); in solve_elasticity_2d()
763 PetscCall(DMSetFromOptions(da_prop)); in solve_elasticity_2d()
764 PetscCall(DMSetUp(da_prop)); in solve_elasticity_2d()
770 PetscCall(DMDAGetInfo(da_prop, 0, &M, &N, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); in solve_elasticity_2d()
774 …PetscCall(DMDASetUniformCoordinates(da_prop, 0.0 + 0.5 * dx, 1.0 - 0.5 * dx, 0.0 + 0.5 * dy, 1.0 -… in solve_elasticity_2d()
779 PetscCall(DMCreateGlobalVector(da_prop, &properties)); in solve_elasticity_2d()
780 PetscCall(DMCreateLocalVector(da_prop, &l_properties)); in solve_elasticity_2d()
781 PetscCall(DMDAVecGetArray(da_prop, l_properties, &element_props)); in solve_elasticity_2d()
783 PetscCall(DMGetCoordinateDM(da_prop, &prop_cda)); in solve_elasticity_2d()
[all …]
H A Dex43.c1104 DM da_Stokes, da_prop; in solve_stokes_2d_coupled() local
1158 …ARY_NONE, DMDA_STENCIL_BOX, mx, my, cpu_x, cpu_y, prop_dof, prop_stencil_width, lx, ly, &da_prop)); in solve_stokes_2d_coupled()
1159 PetscCall(DMSetFromOptions(da_prop)); in solve_stokes_2d_coupled()
1160 PetscCall(DMSetUp(da_prop)); in solve_stokes_2d_coupled()
1165 PetscCall(DMDAGetInfo(da_prop, 0, &M, &N, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); in solve_stokes_2d_coupled()
1169 …PetscCall(DMDASetUniformCoordinates(da_prop, 0.0 + 0.5 * dx, 1.0 - 0.5 * dx, 0.0 + 0.5 * dy, 1.0 -… in solve_stokes_2d_coupled()
1174 PetscCall(DMCreateGlobalVector(da_prop, &properties)); in solve_stokes_2d_coupled()
1175 PetscCall(DMCreateLocalVector(da_prop, &l_properties)); in solve_stokes_2d_coupled()
1176 PetscCall(DMDAVecGetArray(da_prop, l_properties, &element_props)); in solve_stokes_2d_coupled()
1178 PetscCall(DMGetCoordinateDM(da_prop, &prop_cda)); in solve_stokes_2d_coupled()
[all …]