Lines Matching refs:dmAdapt

158 PetscErrorCode DMAdaptLabel(DM dm, DMLabel label, DM *dmAdapt)  in DMAdaptLabel()  argument
169 PetscAssertPointer(dmAdapt, 3); in DMAdaptLabel()
170 *dmAdapt = NULL; in DMAdaptLabel()
181 PetscCall((*fl->adapt)(dm, NULL, label, NULL, dmAdapt)); in DMAdaptLabel()
187 if (*dmAdapt) { in DMAdaptLabel()
190 (*dmAdapt)->prealloc_only = dm->prealloc_only; /* maybe this should go .... */ in DMAdaptLabel()
191 PetscCall(PetscFree((*dmAdapt)->vectype)); in DMAdaptLabel()
192 PetscCall(PetscStrallocpy(dm->vectype, (char **)&(*dmAdapt)->vectype)); in DMAdaptLabel()
193 PetscCall(PetscFree((*dmAdapt)->mattype)); in DMAdaptLabel()
194 PetscCall(PetscStrallocpy(dm->mattype, (char **)&(*dmAdapt)->mattype)); in DMAdaptLabel()
196 PetscCall(DMSetApplicationContext(*dmAdapt, ctx)); in DMAdaptLabel()
220 PetscErrorCode DMAdaptMetric(DM dm, Vec metric, DMLabel bdLabel, DMLabel rgLabel, DM *dmAdapt) in DMAdaptMetric() argument
234 PetscAssertPointer(dmAdapt, 5); in DMAdaptMetric()
235 *dmAdapt = NULL; in DMAdaptMetric()
255 PetscCall((*fl->adapt)(dm, metric, bdLabel, rgLabel, dmAdapt)); in DMAdaptMetric()
261 if (*dmAdapt) { in DMAdaptMetric()
262 (*dmAdapt)->prealloc_only = dm->prealloc_only; /* maybe this should go .... */ in DMAdaptMetric()
263 PetscCall(PetscFree((*dmAdapt)->vectype)); in DMAdaptMetric()
264 PetscCall(PetscStrallocpy(dm->vectype, (char **)&(*dmAdapt)->vectype)); in DMAdaptMetric()
265 PetscCall(PetscFree((*dmAdapt)->mattype)); in DMAdaptMetric()
266 PetscCall(PetscStrallocpy(dm->mattype, (char **)&(*dmAdapt)->mattype)); in DMAdaptMetric()