Lines Matching refs:dmCell
103 DM dmCell; /* A DM with piecewise constant discretization */ member
1126 options->dmCell = NULL; in ProcessOptions()
1438 PetscCall(DMDestroy(&user->dmCell)); in CreateCellDM()
1439 PetscCall(DMClone(dm, &user->dmCell)); in CreateCellDM()
1440 PetscCall(DMSetField(user->dmCell, 0, NULL, (PetscObject)fediv)); in CreateCellDM()
1441 PetscCall(DMCreateDS(user->dmCell)); in CreateCellDM()
1446 static PetscErrorCode GetCellDM(DM dm, AppCtx *user, DM *dmCell) in GetCellDM() argument
1452 if (user->dmCell) PetscCall(DMPlexGetSimplexOrBoxCells(user->dmCell, 0, &cellStart, &cellEnd)); in GetCellDM()
1454 *dmCell = user->dmCell; in GetCellDM()
1584 DM dm, dmCell = NULL; in MonitorError() local
1596 PetscCall(GetCellDM(dm, (AppCtx *)ctx, &dmCell)); in MonitorError()
1597 PetscCall(DMGetGlobalVector(dmCell, &divu)); in MonitorError()
1598 PetscCall(DMProjectField(dmCell, crtime, u, diagnostics, INSERT_VALUES, divu)); in MonitorError()
1612 PetscCall(DMRestoreGlobalVector(dmCell, &divu)); in MonitorError()
1659 PetscCall(DMDestroy(&user.dmCell)); in main()