Searched refs:dmVelAvg (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 822 DM dmVelAvg; in DumpVelocity() local 831 …PetscCall(DMStagCreateCompatibleDMStag(ctx->dm_velocity, 0, 0, 2, 0, &dmVelAvg)); /* 2 dof per ele… in DumpVelocity() 833 …PetscCall(DMStagCreateCompatibleDMStag(ctx->dm_velocity, 0, 0, 0, 3, &dmVelAvg)); /* 3 dof per ele… in DumpVelocity() 835 PetscCall(DMSetUp(dmVelAvg)); in DumpVelocity() 836 …PetscCall(DMStagSetUniformCoordinatesProduct(dmVelAvg, ctx->xmin, ctx->xmax, ctx->ymin, ctx->ymax,… in DumpVelocity() 837 PetscCall(DMCreateGlobalVector(dmVelAvg, &velAvg)); in DumpVelocity() 840 PetscCall(DMStagGetCorners(dmVelAvg, &startx, &starty, &startz, &nx, &ny, &nz, NULL, NULL, NULL)); in DumpVelocity() 874 PetscCall(DMStagVecSetValuesStencil(dmVelAvg, velAvg, 2, to, valTo, INSERT_VALUES)); in DumpVelocity() 933 PetscCall(DMStagVecSetValuesStencil(dmVelAvg, velAvg, 3, to, valTo, INSERT_VALUES)); in DumpVelocity() 942 …PetscCall(DMStagVecSplitToDMDA(dmVelAvg, velAvg, DMSTAG_ELEMENT, -3, &daVelAvg, &vecVelAvg)); /* n… in DumpVelocity() [all …]
|