Lines Matching refs:com

44   DM_Composite *com = (DM_Composite *)dm->data;  in DMCompositeSetCoupling()  local
50 com->FormCoupleLocations = FormCoupleLocations; in DMCompositeSetCoupling()
57 DM_Composite *com = (DM_Composite *)dm->data; in DMDestroy_Composite() local
60 next = com->next; in DMDestroy_Composite()
70 PetscCall(PetscFree(com)); in DMDestroy_Composite()
77 DM_Composite *com = (DM_Composite *)dm->data; in DMView_Composite() local
82 struct DMCompositeLink *lnk = com->next; in DMView_Composite()
86 PetscCall(PetscViewerASCIIPrintf(v, " contains %" PetscInt_FMT " DMs\n", com->nDM)); in DMView_Composite()
103 DM_Composite *com = (DM_Composite *)dm->data; in DMSetUp_Composite() local
104 struct DMCompositeLink *next = com->next; in DMSetUp_Composite()
108 …PetscCheck(!com->setup, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "Packer has al… in DMSetUp_Composite()
110 PetscCall(PetscLayoutSetLocalSize(map, com->n)); in DMSetUp_Composite()
114 PetscCall(PetscLayoutGetSize(map, &com->N)); in DMSetUp_Composite()
115 PetscCall(PetscLayoutGetRange(map, &com->rstart, NULL)); in DMSetUp_Composite()
124 next->grstart = com->rstart + next->rstart; in DMSetUp_Composite()
129 com->setup = PETSC_TRUE; in DMSetUp_Composite()
151 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetNumberDM() local
158 *nDM = com->nDM; in DMCompositeGetNumberDM()
186 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetAccess() local
195 next = com->next; in DMCompositeGetAccess()
196 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeGetAccess()
251 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetAccessArray() local
260 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeGetAccessArray()
263 for (i = 0, wnum = 0, link = com->next; link && wnum < nwanted; i++, link = link->next) { in DMCompositeGetAccessArray()
313 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetLocalAccessArray() local
323 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeGetLocalAccessArray()
326 for (i = 0, wnum = 0, link = com->next; link && wnum < nwanted; i++, link = link->next) { in DMCompositeGetLocalAccessArray()
372 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeRestoreAccess() local
381 next = com->next; in DMCompositeRestoreAccess()
382 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeRestoreAccess()
421 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeRestoreAccessArray() local
430 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeRestoreAccessArray()
433 for (i = 0, wnum = 0, link = com->next; link && wnum < nwanted; i++, link = link->next) { in DMCompositeRestoreAccessArray()
470 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeRestoreLocalAccessArray() local
479 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeRestoreLocalAccessArray()
482 for (i = 0, wnum = 0, link = com->next; link && wnum < nwanted; i++, link = link->next) { in DMCompositeRestoreLocalAccessArray()
519 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeScatter() local
527 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeScatter()
531 for (cnt = 3, next = com->next; next; cnt++, next = next->next) { in DMCompositeScatter()
575 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeScatterArray() local
583 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeScatterArray()
586 for (i = 0, next = com->next; next; next = next->next, i++) { in DMCompositeScatterArray()
628 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGather() local
637 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeGather()
641 for (cnt = 3, next = com->next; next; cnt++, next = next->next) { in DMCompositeGather()
685 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGatherArray() local
694 if (!com->setup) PetscCall(DMSetUp(dm)); in DMCompositeGatherArray()
697 for (next = com->next, i = 0; next; next = next->next, i++) { in DMCompositeGatherArray()
735 DM_Composite *com = (DM_Composite *)dmc->data; in DMCompositeAddDM() local
743 next = com->next; in DMCompositeAddDM()
744 …PetscCheck(!com->setup, PetscObjectComm((PetscObject)dmc), PETSC_ERR_ARG_WRONGSTATE, "Cannot add a… in DMCompositeAddDM()
760 com->n += n; in DMCompositeAddDM()
761 com->nghost += nlocal; in DMCompositeAddDM()
764 if (!next) com->next = mine; in DMCompositeAddDM()
769 com->nDM++; in DMCompositeAddDM()
770 com->nmine++; in DMCompositeAddDM()
782 DM_Composite *com; in VecView_DMComposite() local
787 com = (DM_Composite *)dm->data; in VecView_DMComposite()
788 next = com->next; in VecView_DMComposite()
823 DM_Composite *com = (DM_Composite *)dm->data; in DMCreateGlobalVector_Composite() local
831 PetscCall(VecSetSizes(*gvec, com->n, com->N)); in DMCreateGlobalVector_Composite()
839 DM_Composite *com = (DM_Composite *)dm->data; in DMCreateLocalVector_Composite() local
843 if (!com->setup) { in DMCreateLocalVector_Composite()
849 PetscCall(VecSetSizes(*lvec, com->nghost, PETSC_DECIDE)); in DMCreateLocalVector_Composite()
880 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetISLocalToGlobalMappings() local
888 PetscCall(PetscMalloc1(com->nDM, ltogs)); in DMCompositeGetISLocalToGlobalMappings()
889 next = com->next; in DMCompositeGetISLocalToGlobalMappings()
969 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetLocalISs() local
979 PetscCall(PetscMalloc1(com->nmine, is)); in DMCompositeGetLocalISs()
980 …for (cnt = 0, start = 0, link = com->next; link; start += link->nlocal, cnt++, link = link->next) { in DMCompositeGetLocalISs()
1023 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetGlobalISs() local
1031 PetscCall(PetscMalloc1(com->nDM, is)); in DMCompositeGetGlobalISs()
1032 next = com->next; in DMCompositeGetGlobalISs()
1149 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetLocalVectors() local
1156 next = com->next; in DMCompositeGetLocalVectors()
1190 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeRestoreLocalVectors() local
1197 next = com->next; in DMCompositeRestoreLocalVectors()
1234 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetEntries() local
1241 next = com->next; in DMCompositeGetEntries()
1274 DM_Composite *com = (DM_Composite *)dm->data; in DMCompositeGetEntriesArray() local
1283 for (next = com->next, i = 0; next; next = next->next, i++) dms[i] = next->dm; in DMCompositeGetEntriesArray()
1380 DM_Composite *com = (DM_Composite *)dmi->data; in DMRefine_Composite() local
1387 next = com->next; in DMRefine_Composite()
1403 DM_Composite *com = (DM_Composite *)dmi->data; in DMCoarsen_Composite() local
1410 next = com->next; in DMCoarsen_Composite()
1471 DM_Composite *com = (DM_Composite *)dm->data; in DMGetLocalToGlobalMapping_Composite() local
1478 …PetscCall(ISLocalToGlobalMappingConcatenate(PetscObjectComm((PetscObject)dm), com->nDM, ltogs, &dm… in DMGetLocalToGlobalMapping_Composite()
1479 for (i = 0; i < com->nDM; i++) PetscCall(ISLocalToGlobalMappingDestroy(&ltogs[i])); in DMGetLocalToGlobalMapping_Composite()
1490 DM_Composite *com = (DM_Composite *)dm->data; in DMCreateColoring_Composite() local
1496 n = com->n; in DMCreateColoring_Composite()
1501 PetscCall(ISColoringValueCast(com->N, &maxcol)); in DMCreateColoring_Composite()
1502 for (i = 0; i < n; i++) PetscCall(ISColoringValueCast(com->rstart + i, colors + i)); in DMCreateColoring_Composite()
1504 struct DMCompositeLink *next = com->next; in DMCreateColoring_Composite()
1528 DM_Composite *com = (DM_Composite *)dm->data; in DMGlobalToLocalBegin_Composite() local
1534 if (!com->setup) PetscCall(DMSetUp(dm)); in DMGlobalToLocalBegin_Composite()
1542 next = com->next; in DMGlobalToLocalBegin_Composite()
1582 DM_Composite *com = (DM_Composite *)dm->data; in DMLocalToGlobalBegin_Composite() local
1589 if (!com->setup) PetscCall(DMSetUp(dm)); in DMLocalToGlobalBegin_Composite()
1597 next = com->next; in DMLocalToGlobalBegin_Composite()
1636 DM_Composite *com = (DM_Composite *)dm->data; in DMLocalToLocalBegin_Composite() local
1643 if (!com->setup) PetscCall(DMSetUp(dm)); in DMLocalToLocalBegin_Composite()
1651 next = com->next; in DMLocalToLocalBegin_Composite()
1695 DM_Composite *com; in DMCreate_Composite() local
1698 PetscCall(PetscNew(&com)); in DMCreate_Composite()
1699 p->data = com; in DMCreate_Composite()
1700 com->n = 0; in DMCreate_Composite()
1701 com->nghost = 0; in DMCreate_Composite()
1702 com->next = NULL; in DMCreate_Composite()
1703 com->nDM = 0; in DMCreate_Composite()