dmgenerate.c (cfd92c66bdae16b66d27a6336fb90fa54c459cc4) dmgenerate.c (a4e35b1925eceef64945ea472b84f2bf06a67b5e)
1#include <petsc/private/dmimpl.h> /*I "petscdm.h" I*/
2
3PETSC_EXTERN PetscErrorCode DMIsForest(DM, PetscBool *);
4
5DMGeneratorFunctionList DMGenerateList = NULL;
6PetscBool DMGenerateRegisterAllCalled = PETSC_FALSE;
7
8#if defined(PETSC_HAVE_TRIANGLE)

--- 190 unchanged lines hidden (view full) ---

199+ dm - The DM object
200. metric - The metric to which the mesh is adapted, defined vertex-wise.
201. bdLabel - Label for boundary tags, which will be preserved in the output mesh. bdLabel should be NULL if there is no such label, and should be different from "_boundary_".
202- rgLabel - Label for cell tags, which will be preserved in the output mesh. rgLabel should be NULL if there is no such label, and should be different from "_regions_".
203
204 Output Parameter:
205. dmAdapt - Pointer to the DM object containing the adapted mesh
206
1#include <petsc/private/dmimpl.h> /*I "petscdm.h" I*/
2
3PETSC_EXTERN PetscErrorCode DMIsForest(DM, PetscBool *);
4
5DMGeneratorFunctionList DMGenerateList = NULL;
6PetscBool DMGenerateRegisterAllCalled = PETSC_FALSE;
7
8#if defined(PETSC_HAVE_TRIANGLE)

--- 190 unchanged lines hidden (view full) ---

199+ dm - The DM object
200. metric - The metric to which the mesh is adapted, defined vertex-wise.
201. bdLabel - Label for boundary tags, which will be preserved in the output mesh. bdLabel should be NULL if there is no such label, and should be different from "_boundary_".
202- rgLabel - Label for cell tags, which will be preserved in the output mesh. rgLabel should be NULL if there is no such label, and should be different from "_regions_".
203
204 Output Parameter:
205. dmAdapt - Pointer to the DM object containing the adapted mesh
206
207 Note: The label in the adapted mesh will be registered under the name of the input DMLabel object
207 Note:
208 The label in the adapted mesh will be registered under the name of the input `DMLabel` object
208
209 Level: advanced
210
211.seealso: `DMAdaptLabel()`, `DMCoarsen()`, `DMRefine()`
212@*/
213PetscErrorCode DMAdaptMetric(DM dm, Vec metric, DMLabel bdLabel, DMLabel rgLabel, DM *dmAdapt)
214{
215 DMGeneratorFunctionList fl;

--- 47 unchanged lines hidden ---
209
210 Level: advanced
211
212.seealso: `DMAdaptLabel()`, `DMCoarsen()`, `DMRefine()`
213@*/
214PetscErrorCode DMAdaptMetric(DM dm, Vec metric, DMLabel bdLabel, DMLabel rgLabel, DM *dmAdapt)
215{
216 DMGeneratorFunctionList fl;

--- 47 unchanged lines hidden ---