Lines Matching refs:vdm

298     DM            vdm;  in SetupContext()  local
307 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in SetupContext()
308 PetscCall(DMGetDimension(vdm, &dim)); in SetupContext()
309 PetscCall(DMGetBoundingBox(vdm, dmboxlower, dmboxupper)); in SetupContext()
456 DM vdm; in computeVelocityFEMMoments() local
463 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in computeVelocityFEMMoments()
468 PetscCall(PetscObjectQuery((PetscObject)sw, "__vdm__", (PetscObject *)&vdm)); in computeVelocityFEMMoments()
480 PetscCall(DMGetBoundingBox(vdm, vmin, vmax)); in computeVelocityFEMMoments()
491 PetscCall(DMGetCoordinatesLocal(vdm, &coordinatesLocal)); in computeVelocityFEMMoments()
492 PetscCall(DMGetCoordinates(vdm, &coordinates)); in computeVelocityFEMMoments()
495 PetscCall(PetscGridHashDestroy(&((DM_Plex *)vdm->data)->lbox)); in computeVelocityFEMMoments()
498 PetscCall(DMGetGlobalVector(vdm, &u[0])); in computeVelocityFEMMoments()
499 PetscCall(DMSwarmProjectFields(sw, vdm, 1, fields, u, SCATTER_FORWARD)); in computeVelocityFEMMoments()
500 PetscCall(DMPlexComputeMoments(vdm, u[0], moments)); in computeVelocityFEMMoments()
501 PetscCall(DMRestoreGlobalVector(vdm, &u[0])); in computeVelocityFEMMoments()
1114 static PetscErrorCode CreateVelocityDM(DM sw, DM *vdm) in CreateVelocityDM() argument
1122 PetscCall(DMCreate(PETSC_COMM_SELF, vdm)); in CreateVelocityDM()
1123 PetscCall(DMSetType(*vdm, DMPLEX)); in CreateVelocityDM()
1124 PetscCall(DMPlexSetOptionsPrefix(*vdm, prefix)); in CreateVelocityDM()
1125 PetscCall(DMSetFromOptions(*vdm)); in CreateVelocityDM()
1126 PetscCall(PetscObjectSetName((PetscObject)*vdm, "velocity")); in CreateVelocityDM()
1127 PetscCall(DMViewFromOptions(*vdm, NULL, "-dm_view")); in CreateVelocityDM()
1129 PetscCall(DMGetDimension(*vdm, &dim)); in CreateVelocityDM()
1130 PetscCall(DMPlexGetHeightStratum(*vdm, 0, &cStart, NULL)); in CreateVelocityDM()
1131 PetscCall(DMPlexGetCellType(*vdm, cStart, &ct)); in CreateVelocityDM()
1134 PetscCall(DMSetField(*vdm, 0, NULL, (PetscObject)fe)); in CreateVelocityDM()
1135 PetscCall(DMCreateDS(*vdm)); in CreateVelocityDM()
1157 DM xdm, vdm; in InitializeParticles_Centroid() local
1183 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in InitializeParticles_Centroid()
1184 PetscCall(DMPlexGetHeightStratum(vdm, 0, &vcStart, &vcEnd)); in InitializeParticles_Centroid()
1219 PetscCall(DMGetBoundingBox(vdm, vmin, vmax)); in InitializeParticles_Centroid()
1276 DM xdm, vdm; in InitializeWeights() local
1297 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in InitializeWeights()
1298 PetscCall(DMPlexGetHeightStratum(vdm, 0, &vcStart, &vcEnd)); in InitializeWeights()
1306 PetscCall(DMGetCoordinatesLocalSetUp(vdm)); in InitializeWeights()
1348 PetscCall(DMPlexGetCellCoordinates(vdm, vc, &visDG, &vNc, &varray, &vcoords)); in InitializeWeights()
1357 PetscCall(DMPlexRestoreCellCoordinates(vdm, vc, &visDG, &vNc, &varray, &vcoords)); in InitializeWeights()
1460 DM vdm; in CreateSwarm() local
1485 PetscCall(CreateVelocityDM(*sw, &vdm)); in CreateSwarm()
1486 PetscCall(DMSwarmCellDMCreate(vdm, 1, vfieldnames, 1, &fieldnames[1], &celldm)); in CreateSwarm()
1489 PetscCall(DMDestroy(&vdm)); in CreateSwarm()