Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/tests/
H A Dex52.c6 PetscErrorCode CloneDMWithNewSection(DM OriginalDM, DM *NewDM, PetscInt NFields) in CloneDMWithNewSection() argument
12 PetscCall(DMClone(OriginalDM, NewDM)); in CloneDMWithNewSection()
13 PetscCall(DMPlexDistributeSetDefault(*NewDM, PETSC_FALSE)); in CloneDMWithNewSection()
14 PetscCall(DMClearDS(*NewDM)); in CloneDMWithNewSection()
18 PetscCall(DMSetNumFields(*NewDM, 1)); in CloneDMWithNewSection()
19 PetscCall(DMSetFromOptions(*NewDM)); in CloneDMWithNewSection()
20 …PetscCall(DMPlexCreateSection(*NewDM, NULL, NumComp, NumDof, 0, NULL, NULL, NULL, NULL, &section)); in CloneDMWithNewSection()
21 PetscCall(DMSetLocalSection(*NewDM, section)); in CloneDMWithNewSection()
26 PetscCall(DMSetField(*NewDM, 0, NULL, (PetscObject)fe)); in CloneDMWithNewSection()
28 PetscCall(DMCreateDS(*NewDM)); in CloneDMWithNewSection()
[all …]