Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/tests/
H A Dex101.c105 DM dm_read, dm_read_output; in main()
115 PetscCall(DMPlexCreateFromFile(comm, filename, "ex101_dm_read", PETSC_TRUE, &dm_read)); in main()
116 PetscCall(DMSetFromOptions(dm_read)); in main()
117 PetscCall(DMViewFromOptions(dm_read, NULL, "-dm_view")); in main()
122 PetscCall(DMGetGlobalSection(dm_read, &unused_section)); in main()
124 PetscCall(CreateFEField(dm_read, PETSC_TRUE, num_comps)); in main()
127 PetscCall(DMGetOutputDM(dm_read, &dm_read_output)); in main()
128 PetscCall(DMGetLocalVector(dm_read, &V_read_project2local)); in main()
129 PetscCall(DMGetLocalVector(dm_read, &V_read_output2local)); in main()
153 PetscCall(DMRestoreLocalVector(dm_read, &V_read_project2local)); in main()
[all …]
H A Dex100.c21 DM dm_create, dm_read; in main() local
73 PetscCall(DMPlexCreateFromFile(comm, file, "ex100_plex", PETSC_TRUE, &dm_read)); in main()
74 PetscCall(DMViewFromOptions(dm_read, NULL, "-dm_read_view")); in main()
75 PetscCall(DMGetCoordinateDim(dm_read, &cdim)); in main()
76 PetscCall(DMGetCoordinateSection(dm_read, &coord_section)); in main()
77 PetscCall(DMGetCoordinates(dm_read, &coords)); in main()
78 PetscCall(DMPlexGetHeightStratum(dm_read, 0, &cStart, &cEnd)); in main()
86 … PetscCall(DMPlexVecGetClosure(dm_read, coord_section, coords, cell, &num_closure, &cell_coords)); in main()
103 …PetscCall(DMPlexVecRestoreClosure(dm_read, coord_section, coords, cell, &num_closure, &cell_coords… in main()
105 PetscCall(DMDestroy(&dm_read)); in main()