Lines Matching refs:coloring
545 PetscErrorCode MatFDColoringGetPerturbedColumns(MatFDColoring coloring, PetscInt *n, const PetscInt… in MatFDColoringGetPerturbedColumns() argument
548 if (coloring->currentcolor >= 0) { in MatFDColoringGetPerturbedColumns()
549 *n = coloring->ncolumns[coloring->currentcolor]; in MatFDColoringGetPerturbedColumns()
550 *cols = coloring->columns[coloring->currentcolor]; in MatFDColoringGetPerturbedColumns()
579 PetscErrorCode MatFDColoringApply(Mat J, MatFDColoring coloring, Vec x1, void *sctx) in MatFDColoringApply() argument
585 PetscValidHeaderSpecific(coloring, MAT_FDCOLORING_CLASSID, 2); in MatFDColoringApply()
587 PetscCall(PetscObjectCompareId((PetscObject)J, coloring->matid, &eq)); in MatFDColoringApply()
589 …PetscCheck(coloring->f, PetscObjectComm((PetscObject)J), PETSC_ERR_ARG_WRONGSTATE, "Must call MatF… in MatFDColoringApply()
590 …PetscCheck(coloring->setupcalled, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Must call MatFDColor… in MatFDColoringApply()
593 PetscCall(PetscLogEventBegin(MAT_FDColoringApply, coloring, J, x1, 0)); in MatFDColoringApply()
594 PetscUseTypeMethod(J, fdcoloringapply, coloring, x1, sctx); in MatFDColoringApply()
595 PetscCall(PetscLogEventEnd(MAT_FDColoringApply, coloring, J, x1, 0)); in MatFDColoringApply()
596 if (!coloring->viewed) { in MatFDColoringApply()
597 PetscCall(MatFDColoringViewFromOptions(coloring, NULL, "-mat_fd_coloring_view")); in MatFDColoringApply()
598 coloring->viewed = PETSC_TRUE; in MatFDColoringApply()