Lines Matching refs:subdm

112 static PetscErrorCode CreateSubdomainMesh(DM dm, DMLabel *domLabel, DM *subdm, AppCtx *user)  in CreateSubdomainMesh()  argument
123 …PlexFilter(dm, label, 1, PETSC_FALSE, PETSC_FALSE, PetscObjectComm((PetscObject)dm), NULL, subdm)); in CreateSubdomainMesh()
124 PetscCall(DMGetDimension(*subdm, &dim)); in CreateSubdomainMesh()
125 PetscCall(SetupDiscretization(*subdm, dim, simplex, user)); in CreateSubdomainMesh()
126 PetscCall(PetscObjectSetName((PetscObject)*subdm, "subdomain")); in CreateSubdomainMesh()
127 PetscCall(DMViewFromOptions(*subdm, NULL, "-sub_dm_view")); in CreateSubdomainMesh()
133 static PetscErrorCode CreateBoundaryMesh(DM dm, DMLabel *bdLabel, DM *subdm, AppCtx *user) in CreateBoundaryMesh() argument
144 PetscCall(DMPlexCreateSubmesh(dm, label, 1, PETSC_TRUE, subdm)); in CreateBoundaryMesh()
145 PetscCall(DMGetDimension(*subdm, &dim)); in CreateBoundaryMesh()
146 PetscCall(SetupDiscretization(*subdm, dim, simplex, user)); in CreateBoundaryMesh()
147 PetscCall(PetscObjectSetName((PetscObject)*subdm, "boundary")); in CreateBoundaryMesh()
148 PetscCall(DMViewFromOptions(*subdm, NULL, "-sub_dm_view")); in CreateBoundaryMesh()
286 DM dm, subdm, auxdm; in main() local
328 PetscCall(CreateSubdomainMesh(dm, &domLabel, &subdm, &user)); in main()
329 PetscCall(TestFunctionProjection(subdm, NULL, NULL, NULL, "Subdomain Primary", &user)); in main()
330 PetscCall(TestFieldProjection(subdm, NULL, NULL, NULL, "Subdomain Primary", &user)); in main()
333 PetscCall(CreateAuxiliaryVec(subdm, &auxdm, &la, &user)); in main()
334 …PetscCall(TestFunctionProjection(subdm, auxdm, NULL, la, "Subdomain Primary and Subdomain Auxiliar… in main()
335 …PetscCall(TestFieldProjection(subdm, auxdm, NULL, la, "Subdomain Primary and Subdomain Auxiliary",… in main()
340 …PetscCall(TestFunctionProjection(subdm, auxdm, NULL, la, "Subdomain Primary and Volumetric Auxilia… in main()
341 …PetscCall(TestFieldProjection(subdm, auxdm, NULL, la, "Subdomain Primary and Volumetric Auxiliary"… in main()
345 PetscCall(CreateAuxiliaryVec(subdm, &auxdm, &la, &user)); in main()
346 …PetscCall(TestFunctionProjection(subdm, auxdm, domLabel, la, "Volumetric Primary and Subdomain Aux… in main()
347 …PetscCall(TestFieldProjection(subdm, auxdm, domLabel, la, "Volumetric Primary and Subdomain Auxili… in main()
351 PetscCall(DMDestroy(&subdm)); in main()
358 PetscCall(CreateBoundaryMesh(dm, &bdLabel, &subdm, &user)); in main()
359 PetscCall(TestFunctionProjection(subdm, NULL, NULL, NULL, "Boundary Primary", &user)); in main()
360 PetscCall(TestFieldProjection(subdm, NULL, NULL, NULL, "Boundary Primary", &user)); in main()
363 PetscCall(CreateAuxiliaryVec(subdm, &auxdm, &la, &user)); in main()
364 …PetscCall(TestFunctionProjection(subdm, auxdm, NULL, la, "Boundary Primary and Boundary Auxiliary"… in main()
365 …PetscCall(TestFieldProjection(subdm, auxdm, NULL, la, "Boundary Primary and Boundary Auxiliary", &… in main()
369 PetscCall(CreateAuxiliaryVec(subdm, &auxdm, &la, &user)); in main()
376 PetscCall(DMDestroy(&subdm)); in main()