Lines Matching refs:vdm

383     DM            vdm;  in SetupContext()  local
392 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in SetupContext()
393 PetscCall(DMGetDimension(vdm, &dim)); in SetupContext()
394 PetscCall(DMGetBoundingBox(vdm, dmboxlower, dmboxupper)); in SetupContext()
618 DM vdm; in computeVelocityFEMMoments() local
625 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in computeVelocityFEMMoments()
626 PetscCall(DMGetGlobalVector(vdm, &u[0])); in computeVelocityFEMMoments()
627 PetscCall(DMSwarmProjectFields(sw, vdm, 1, fields, u, SCATTER_FORWARD)); in computeVelocityFEMMoments()
628 PetscCall(DMPlexComputeMoments(vdm, u[0], moments)); in computeVelocityFEMMoments()
629 PetscCall(DMRestoreGlobalVector(vdm, &u[0])); in computeVelocityFEMMoments()
1728 static PetscErrorCode CreateVelocityDM(DM sw, DM *vdm) in CreateVelocityDM() argument
1736 PetscCall(DMCreate(PETSC_COMM_SELF, vdm)); in CreateVelocityDM()
1737 PetscCall(DMSetType(*vdm, DMPLEX)); in CreateVelocityDM()
1738 PetscCall(DMPlexSetOptionsPrefix(*vdm, prefix)); in CreateVelocityDM()
1739 PetscCall(DMSetFromOptions(*vdm)); in CreateVelocityDM()
1740 PetscCall(PetscObjectSetName((PetscObject)*vdm, "velocity")); in CreateVelocityDM()
1741 PetscCall(DMViewFromOptions(*vdm, NULL, "-dm_view")); in CreateVelocityDM()
1743 PetscCall(DMGetDimension(*vdm, &dim)); in CreateVelocityDM()
1744 PetscCall(DMPlexGetHeightStratum(*vdm, 0, &cStart, NULL)); in CreateVelocityDM()
1745 PetscCall(DMPlexGetCellType(*vdm, cStart, &ct)); in CreateVelocityDM()
1748 PetscCall(DMSetField(*vdm, 0, NULL, (PetscObject)fe)); in CreateVelocityDM()
1749 PetscCall(DMCreateDS(*vdm)); in CreateVelocityDM()
1771 DM xdm, vdm; in InitializeParticles_Centroid() local
1797 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in InitializeParticles_Centroid()
1798 PetscCall(DMPlexGetHeightStratum(vdm, 0, &vcStart, &vcEnd)); in InitializeParticles_Centroid()
1833 PetscCall(DMGetBoundingBox(vdm, vmin, vmax)); in InitializeParticles_Centroid()
1890 DM xdm, vdm; in InitializeWeights() local
1911 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in InitializeWeights()
1912 PetscCall(DMPlexGetHeightStratum(vdm, 0, &vcStart, &vcEnd)); in InitializeWeights()
1920 PetscCall(DMGetCoordinatesLocalSetUp(vdm)); in InitializeWeights()
1962 PetscCall(DMPlexGetCellCoordinates(vdm, vc, &visDG, &vNc, &varray, &vcoords)); in InitializeWeights()
1971 PetscCall(DMPlexRestoreCellCoordinates(vdm, vc, &visDG, &vNc, &varray, &vcoords)); in InitializeWeights()
2074 DM vdm; in CreateSwarm() local
2099 PetscCall(CreateVelocityDM(*sw, &vdm)); in CreateSwarm()
2100 PetscCall(DMSwarmCellDMCreate(vdm, 1, vfieldnames, 1, &fieldnames[1], &celldm)); in CreateSwarm()
2103 PetscCall(DMDestroy(&vdm)); in CreateSwarm()