| /petsc/src/snes/tutorials/ |
| H A D | ex27.c | 638 PetscErrorCode SetupMixed(DMAdaptor adaptor, DM mdm) in SetupMixed() argument 643 PetscCall(DMGetApplicationContext(mdm, &ctx)); in SetupMixed() 644 PetscCall(SetupMixedDiscretization(mdm, ctx)); in SetupMixed() 645 PetscCall(SetupMixedProblem(mdm, ctx)); in SetupMixed() 651 DM dm, mdm; /* problem specification */ in main() local 697 PetscCall(DMClone(dm, &mdm)); in main() 700 PetscCall(SNESSetDM(msnes, mdm)); in main() 702 PetscCall(SetupMixedDiscretization(mdm, &user)); in main() 703 PetscCall(SetupMixedProblem(mdm, &user)); in main() 704 PetscCall(DMCreateGlobalVector(mdm, &mu)); in main() [all …]
|
| /petsc/src/snes/utils/dm/ |
| H A D | dmadapt.c | 959 DM dm, mdm; in DMAdaptorComputeErrorIndicator_Flux() local 969 PetscCall(DMClone(dm, &mdm)); in DMAdaptorComputeErrorIndicator_Flux() 970 PetscCall(SNESCreate(PetscObjectComm((PetscObject)mdm), &msnes)); in DMAdaptorComputeErrorIndicator_Flux() 971 PetscCall(SNESSetDM(msnes, mdm)); in DMAdaptorComputeErrorIndicator_Flux() 976 PetscTryTypeMethod(adaptor, mixedsetup, mdm); in DMAdaptorComputeErrorIndicator_Flux() 978 PetscCall(DMPlexSetSNESLocalFEM(mdm, PETSC_FALSE, ctx)); in DMAdaptorComputeErrorIndicator_Flux() 981 PetscCall(DMCreateGlobalVector(mdm, &mu)); in DMAdaptorComputeErrorIndicator_Flux() 987 PetscCall(DMGetLocalVector(mdm, &lmu)); in DMAdaptorComputeErrorIndicator_Flux() 988 PetscCall(DMGlobalToLocal(mdm, mu, INSERT_VALUES, lmu)); in DMAdaptorComputeErrorIndicator_Flux() 989 PetscCall(DMPlexInsertBoundaryValues(mdm, PETSC_TRUE, lmu, 0.0, NULL, NULL, NULL)); in DMAdaptorComputeErrorIndicator_Flux() [all …]
|
| /petsc/src/dm/impls/shell/ |
| H A D | dmshell.c | 342 DM mdm; in DMShellSetMatrix() local 350 PetscCall(MatGetDM(J, &mdm)); in DMShellSetMatrix() 353 if (mdm == dm) { in DMShellSetMatrix()
|
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex3.c | 954 DM mdm; in CreateSwarm() local 956 PetscCall(DMClone(dm, &mdm)); in CreateSwarm() 957 PetscCall(PetscObjectSetName((PetscObject)mdm, "moments")); in CreateSwarm() 958 PetscCall(DMCopyDisc(dm, mdm)); in CreateSwarm() 959 PetscCall(DMSwarmCellDMCreate(mdm, 1, vfieldnames, 1, fieldnames, &celldm)); in CreateSwarm() 960 PetscCall(DMDestroy(&mdm)); in CreateSwarm()
|
| H A D | ex2.c | 1491 DM mdm; in CreateSwarm() local 1493 PetscCall(DMClone(dm, &mdm)); in CreateSwarm() 1494 PetscCall(PetscObjectSetName((PetscObject)mdm, "moments")); in CreateSwarm() 1495 PetscCall(DMCopyDisc(dm, mdm)); in CreateSwarm() 1496 PetscCall(DMSwarmCellDMCreate(mdm, 1, vfieldnames, 1, fieldnames, &celldm)); in CreateSwarm() 1497 PetscCall(DMDestroy(&mdm)); in CreateSwarm()
|
| H A D | ex4.c | 2105 DM mdm; in CreateSwarm() local 2107 PetscCall(DMClone(dm, &mdm)); in CreateSwarm() 2108 PetscCall(PetscObjectSetName((PetscObject)mdm, "moments")); in CreateSwarm() 2109 PetscCall(DMCopyDisc(dm, mdm)); in CreateSwarm() 2110 PetscCall(DMSwarmCellDMCreate(mdm, 1, vfieldnames, 1, fieldnames, &celldm)); in CreateSwarm() 2111 PetscCall(DMDestroy(&mdm)); in CreateSwarm()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 2004 DM dm, mdm, edm; in DMPlexComputeL2FluxDiffVecLocal() local 2016 PetscCall(VecGetDM(lmu, &mdm)); in DMPlexComputeL2FluxDiffVecLocal() 2023 PetscCall(DMGetCoordinateDim(mdm, &mcdim)); in DMPlexComputeL2FluxDiffVecLocal() 2028 PetscCall(DMGetField(mdm, mf, NULL, (PetscObject *)&mfe)); in DMPlexComputeL2FluxDiffVecLocal() 2046 PetscCall(DMPlexVecGetClosure(mdm, NULL, lmu, c, NULL, &mx)); in DMPlexComputeL2FluxDiffVecLocal() 2068 PetscCall(DMPlexVecRestoreClosure(mdm, NULL, lmu, c, NULL, &mx)); in DMPlexComputeL2FluxDiffVecLocal() 2106 DM dm, mdm; in DMPlexComputeL2FluxDiffVec() local 2115 PetscCall(VecGetDM(mu, &mdm)); in DMPlexComputeL2FluxDiffVec() 2116 PetscCall(DMGetLocalVector(mdm, &lmu)); in DMPlexComputeL2FluxDiffVec() 2117 PetscCall(DMGlobalToLocal(mdm, mu, INSERT_VALUES, lmu)); in DMPlexComputeL2FluxDiffVec() [all …]
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 1535 DM mdm; in DMCreateMatrix() local 1537 PetscCall(MatGetDM(*mat, &mdm)); in DMCreateMatrix() 1538 …PetscCheck(mdm, PETSC_COMM_SELF, PETSC_ERR_PLIB, "DM type '%s' did not attach the DM to the matrix… in DMCreateMatrix()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 248 (ablation/mdm-auto? #t) 2036 (dpm/erosion/couple-with-mdm #f) 2247 (dpm/relocate-unsteady-particles-for-mdm? #t) 2404 (dpm/surface-injection/allow-non-bnd-surf-with-mdm? #f) 5723 (mdm-press-work-correct? #t) 5758 (pressure/mdm-unsteady-rc? #f) 6401 (dynamesh/mdm-solver-options? #t)
|