Lines Matching refs:surface
32 double surface = 0., volume = 0., vol; in ComputeVolume() local
56 surface += vol; in ComputeVolume()
61 …ObjectComm(obj), "DM %s: Surface Area = %.6e Volume = %.6e\n", name ? name : "", surface, volume)); in ComputeVolume()
67 DM surface, dm; in main() local
73 …PetscCall(DMPlexCreateFromFile(PETSC_COMM_WORLD, ctx.filename, "ex37_plex", PETSC_TRUE, &surface)); in main()
74 PetscCall(PetscObjectSetName((PetscObject)surface, "CAD Surface")); in main()
75 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)surface, "sur_")); in main()
76 PetscCall(DMSetFromOptions(surface)); in main()
77 PetscCall(DMViewFromOptions(surface, NULL, "-dm_view")); in main()
78 PetscCall(ComputeVolume(surface)); in main()
81 PetscCall(DMPlexGenerate(surface, "tetgen", PETSC_TRUE, &dm)); in main()
94 PetscCall(DMDestroy(&surface)); in main()