Home
last modified time | relevance | path

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

/petsc/src/dm/impls/stag/tutorials/
H A Dex6.c41 DM dm_velocity, dm_stress; member
100 …, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_BOX, stencilWidth, NULL, NULL, &ctx.dm_velocity)); in main()
107 …DE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX, stencilWidth, NULL, NULL, NULL, &ctx.dm_velocity)); in main()
113 PetscCall(DMSetFromOptions(ctx.dm_velocity)); /* Options control velocity DM */ in main()
114 PetscCall(DMSetUp(ctx.dm_velocity)); in main()
115 …PetscCall(DMStagSetUniformCoordinatesProduct(ctx.dm_velocity, ctx.xmin, ctx.xmax, ctx.ymin, ctx.ym… in main()
121 PetscCall(DMStagCreateCompatibleDMStag(ctx.dm_velocity, 1, 0, 2, 0, &ctx.dm_stress)); in main()
125 PetscCall(DMStagCreateCompatibleDMStag(ctx.dm_velocity, 0, 1, 0, 3, &ctx.dm_stress)); in main()
137 PetscCall(DMStagCreateCompatibleDMStag(ctx.dm_velocity, 0, 1, 0, 0, &ctx.dm_buoyancy)); in main()
141 PetscCall(DMStagCreateCompatibleDMStag(ctx.dm_velocity, 0, 0, 1, 0, &ctx.dm_buoyancy)); in main()
[all …]