Lines Matching refs:ltog

288 PetscErrorCode ISLocalToGlobalMappingDuplicate(ISLocalToGlobalMapping ltog, ISLocalToGlobalMapping …  in ISLocalToGlobalMappingDuplicate()  argument
293 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingDuplicate()
294 …ll(ISLocalToGlobalMappingCreate(PetscObjectComm((PetscObject)ltog), ltog->bs, ltog->n, ltog->indic… in ISLocalToGlobalMappingDuplicate()
295 PetscCall(ISLocalToGlobalMappingGetType(ltog, &l2gtype)); in ISLocalToGlobalMappingDuplicate()
555 PetscInt i, maxlocal, nroots, nleaves, *globals, *ltog; in ISLocalToGlobalMappingCreateSF() local
570 PetscCall(PetscMalloc1(maxlocal, &ltog)); in ISLocalToGlobalMappingCreateSF()
572 for (i = 0; i < maxlocal; i++) ltog[i] = -1; in ISLocalToGlobalMappingCreateSF()
573 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, globals, ltog, MPI_REPLACE)); in ISLocalToGlobalMappingCreateSF()
574 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, globals, ltog, MPI_REPLACE)); in ISLocalToGlobalMappingCreateSF()
575 PetscCall(ISLocalToGlobalMappingCreate(comm, 1, maxlocal, ltog, PETSC_OWN_POINTER, mapping)); in ISLocalToGlobalMappingCreateSF()
1617 PetscErrorCode ISLocalToGlobalMappingGetIndices(ISLocalToGlobalMapping ltog, const PetscInt *array[… in ISLocalToGlobalMappingGetIndices() argument
1620 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingGetIndices()
1622 if (ltog->bs == 1) { in ISLocalToGlobalMappingGetIndices()
1623 *array = ltog->indices; in ISLocalToGlobalMappingGetIndices()
1625 PetscInt *jj, k, i, j, n = ltog->n, bs = ltog->bs; in ISLocalToGlobalMappingGetIndices()
1631 ii = ltog->indices; in ISLocalToGlobalMappingGetIndices()
1651 PetscErrorCode ISLocalToGlobalMappingRestoreIndices(ISLocalToGlobalMapping ltog, const PetscInt *ar… in ISLocalToGlobalMappingRestoreIndices() argument
1654 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingRestoreIndices()
1656 …PetscCheck(ltog->bs != 1 || *array == ltog->indices, PETSC_COMM_SELF, PETSC_ERR_ARG_BADPTR, "Tryin… in ISLocalToGlobalMappingRestoreIndices()
1657 if (ltog->bs > 1) PetscCall(PetscFree(*(void **)array)); in ISLocalToGlobalMappingRestoreIndices()
1677 PetscErrorCode ISLocalToGlobalMappingGetBlockIndices(ISLocalToGlobalMapping ltog, const PetscInt *a… in ISLocalToGlobalMappingGetBlockIndices() argument
1680 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingGetBlockIndices()
1682 *array = ltog->indices; in ISLocalToGlobalMappingGetBlockIndices()
1699 PetscErrorCode ISLocalToGlobalMappingRestoreBlockIndices(ISLocalToGlobalMapping ltog, const PetscIn… in ISLocalToGlobalMappingRestoreBlockIndices() argument
1702 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingRestoreBlockIndices()
1704 …PetscCheck(*array == ltog->indices, PETSC_COMM_SELF, PETSC_ERR_ARG_BADPTR, "Trying to return misma… in ISLocalToGlobalMappingRestoreBlockIndices()
1772 PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingCreate_Basic(ISLocalToGlobalMapping ltog) in ISLocalToGlobalMappingCreate_Basic() argument
1775 ltog->ops->globaltolocalmappingapply = ISGlobalToLocalMappingApply_Basic; in ISLocalToGlobalMappingCreate_Basic()
1776 ltog->ops->globaltolocalmappingsetup = ISGlobalToLocalMappingSetUp_Basic; in ISLocalToGlobalMappingCreate_Basic()
1777 ltog->ops->globaltolocalmappingapplyblock = ISGlobalToLocalMappingApplyBlock_Basic; in ISLocalToGlobalMappingCreate_Basic()
1778 ltog->ops->destroy = ISLocalToGlobalMappingDestroy_Basic; in ISLocalToGlobalMappingCreate_Basic()
1796 PETSC_EXTERN PetscErrorCode ISLocalToGlobalMappingCreate_Hash(ISLocalToGlobalMapping ltog) in ISLocalToGlobalMappingCreate_Hash() argument
1799 ltog->ops->globaltolocalmappingapply = ISGlobalToLocalMappingApply_Hash; in ISLocalToGlobalMappingCreate_Hash()
1800 ltog->ops->globaltolocalmappingsetup = ISGlobalToLocalMappingSetUp_Hash; in ISLocalToGlobalMappingCreate_Hash()
1801 ltog->ops->globaltolocalmappingapplyblock = ISGlobalToLocalMappingApplyBlock_Hash; in ISLocalToGlobalMappingCreate_Hash()
1802 ltog->ops->destroy = ISLocalToGlobalMappingDestroy_Hash; in ISLocalToGlobalMappingCreate_Hash()
1872 PetscErrorCode ISLocalToGlobalMappingSetType(ISLocalToGlobalMapping ltog, ISLocalToGlobalMappingTyp… in ISLocalToGlobalMappingSetType() argument
1878 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingSetType()
1881 PetscCall(PetscObjectTypeCompare((PetscObject)ltog, type, &match)); in ISLocalToGlobalMappingSetType()
1887 …PetscCheck(r, PetscObjectComm((PetscObject)ltog), PETSC_ERR_ARG_UNKNOWN_TYPE, "Unable to find requ… in ISLocalToGlobalMappingSetType()
1890 PetscTryTypeMethod(ltog, destroy); in ISLocalToGlobalMappingSetType()
1891 ltog->ops->destroy = NULL; in ISLocalToGlobalMappingSetType()
1893 PetscCall(PetscObjectChangeTypeName((PetscObject)ltog, type)); in ISLocalToGlobalMappingSetType()
1894 if (r) PetscCall((*r)(ltog)); in ISLocalToGlobalMappingSetType()
1913 PetscErrorCode ISLocalToGlobalMappingGetType(ISLocalToGlobalMapping ltog, ISLocalToGlobalMappingTyp… in ISLocalToGlobalMappingGetType() argument
1916 PetscValidHeaderSpecific(ltog, IS_LTOGM_CLASSID, 1); in ISLocalToGlobalMappingGetType()
1918 *type = ((PetscObject)ltog)->type_name; in ISLocalToGlobalMappingGetType()