Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/tutorials/
H A Dex8.c96 IS fieldIS; in main() local
100 PetscCall(DMGetRegionDS(dm, domain_label, &fieldIS, &ds, NULL)); in main()
102 PetscCall(ISGetIndices(fieldIS, &fields)); in main()
103 PetscCall(ISGetSize(fieldIS, &Nf)); in main()
110 PetscCall(ISRestoreIndices(fieldIS, &fields)); in main()
/petsc/src/snes/utils/
H A Dconvest.c160 IS fieldIS; in PetscConvEstSetUp() local
164 PetscCall(DMGetRegionNumDS(ce->idm, s, &label, &fieldIS, &ds, NULL)); in PetscConvEstSetUp()
166 if (fieldIS) PetscCall(ISGetIndices(fieldIS, &fields)); in PetscConvEstSetUp()
171 if (fieldIS) PetscCall(ISRestoreIndices(fieldIS, &fields)); in PetscConvEstSetUp()
H A Ddmplexsnes.c788 IS fieldIS; in DMSNESCheckDiscretization() local
792 PetscCall(DMGetRegionNumDS(dm, s, &label, &fieldIS, &ds, NULL)); in DMSNESCheckDiscretization()
794 PetscCall(ISGetIndices(fieldIS, &fields)); in DMSNESCheckDiscretization()
799 PetscCall(ISRestoreIndices(fieldIS, &fields)); in DMSNESCheckDiscretization()
/petsc/src/dm/impls/plex/tests/
H A Dex39.c434 IS *fieldIS; in main() local
455 PetscCall(DMCreateFieldIS(mesh, NULL, NULL, &fieldIS)); in main()
471 PetscCall(VecGetSubVector(computed, fieldIS[2], &divErr)); in main()
473 PetscCall(VecRestoreSubVector(computed, fieldIS[2], &divErr)); in main()
481 for (i = 0; i < 3; ++i) PetscCall(ISDestroy(&fieldIS[i])); in main()
482 PetscCall(PetscFree(fieldIS)); in main()
/petsc/src/dm/interface/
H A Ddm.c6008 IS fieldIS, allcellIS, defcellIS = NULL; in DMCreateDS() local
6040 PetscCall(ISCreate(PETSC_COMM_SELF, &fieldIS)); in DMCreateDS()
6041 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)fieldIS, "dm_fields_")); in DMCreateDS()
6042 PetscCall(ISSetType(fieldIS, ISGENERAL)); in DMCreateDS()
6043 PetscCall(ISGeneralSetIndices(fieldIS, nf, fields, PETSC_OWN_POINTER)); in DMCreateDS()
6046 PetscCall(DMSetRegionDS(dm, cellLabel, fieldIS, dsDef, NULL)); in DMCreateDS()
6050 PetscCall(ISDestroy(&fieldIS)); in DMCreateDS()
6278 IS fieldIS; in DMComputeExactSolution() local
6282 PetscCall(DMGetRegionNumDS(dm, s, &label, &fieldIS, &ds, NULL)); in DMComputeExactSolution()
6284 PetscCall(ISGetIndices(fieldIS, &fields)); in DMComputeExactSolution()
[all …]
/petsc/src/dm/impls/plex/
H A Dplexproject.c719 IS fieldIS; in DMProjectLocal_Generic_Plex() local
832 PetscCall(DMGetRegionNumDS(dm, regionNum, NULL, &fieldIS, NULL, NULL)); in DMProjectLocal_Generic_Plex()
1006 PetscCall(ISGetIndices(fieldIS, &fields)); in DMProjectLocal_Generic_Plex()
1009 PetscCall(ISRestoreIndices(fieldIS, &fields)); in DMProjectLocal_Generic_Plex()
H A Dplexfem.c1729 IS fieldIS, pointIS; in DMComputeL2FieldDiff_Plex() local
1739 PetscCall(DMGetRegionNumDS(dm, s, &label, &fieldIS, &ds, NULL)); in DMComputeL2FieldDiff_Plex()
1740 PetscCall(ISGetIndices(fieldIS, &fields)); in DMComputeL2FieldDiff_Plex()
1844 PetscCall(ISRestoreIndices(fieldIS, &fields)); in DMComputeL2FieldDiff_Plex()
/petsc/src/ts/tutorials/
H A Dex53.c2041 IS fieldIS; in SolutionMonitor() local
2045 PetscCall(DMGetRegionNumDS(dm, s, &label, &fieldIS, &ds, NULL)); in SolutionMonitor()
2047 PetscCall(ISGetIndices(fieldIS, &fields)); in SolutionMonitor()
2052 PetscCall(ISRestoreIndices(fieldIS, &fields)); in SolutionMonitor()