Lines Matching refs:nDM

86     PetscCall(PetscViewerASCIIPrintf(v, "  contains %" PetscInt_FMT " DMs\n", com->nDM));  in DMView_Composite()
149 PetscErrorCode DMCompositeGetNumberDM(DM dm, PetscInt *nDM) in DMCompositeGetNumberDM() argument
158 *nDM = com->nDM; in DMCompositeGetNumberDM()
769 com->nDM++; in DMCompositeAddDM()
888 PetscCall(PetscMalloc1(com->nDM, ltogs)); in DMCompositeGetISLocalToGlobalMappings()
1031 PetscCall(PetscMalloc1(com->nDM, is)); in DMCompositeGetGlobalISs()
1066 PetscInt nDM; in DMCreateFieldIS_Composite() local
1071 PetscCall(DMCompositeGetNumberDM(dm, &nDM)); in DMCreateFieldIS_Composite()
1072 if (numFields) *numFields = nDM; in DMCreateFieldIS_Composite()
1075 PetscCall(PetscMalloc1(nDM, &dms)); in DMCreateFieldIS_Composite()
1076 PetscCall(PetscMalloc1(nDM, fieldNames)); in DMCreateFieldIS_Composite()
1078 for (i = 0; i < nDM; i++) { in DMCreateFieldIS_Composite()
1113 PetscInt nDM; in DMCreateFieldDecomposition_Composite() local
1119 PetscCall(DMCompositeGetNumberDM(dm, &nDM)); in DMCreateFieldDecomposition_Composite()
1120 PetscCall(PetscMalloc1(nDM, dmlist)); in DMCreateFieldDecomposition_Composite()
1122 for (i = 0; i < nDM; i++) PetscCall(PetscObjectReference((PetscObject)((*dmlist)[i]))); in DMCreateFieldDecomposition_Composite()
1425 PetscInt m, n, M, N, nDM, i; in DMCreateInterpolation_Composite() local
1448 nDM = comfine->nDM; in DMCreateInterpolation_Composite()
1449nDM == comcoarse->nDM, PetscObjectComm((PetscObject)fine), PETSC_ERR_ARG_INCOMP, "Fine DMComposite… in DMCreateInterpolation_Composite()
1450 PetscCall(PetscCalloc1(nDM * nDM, &mats)); in DMCreateInterpolation_Composite()
1451 if (v) PetscCall(PetscCalloc1(nDM, &vecs)); in DMCreateInterpolation_Composite()
1455 if (!v) PetscCall(DMCreateInterpolation(nextc->dm, nextf->dm, &mats[i * nDM + i], NULL)); in DMCreateInterpolation_Composite()
1456 else PetscCall(DMCreateInterpolation(nextc->dm, nextf->dm, &mats[i * nDM + i], &vecs[i])); in DMCreateInterpolation_Composite()
1458 PetscCall(MatCreateNest(PetscObjectComm((PetscObject)fine), nDM, NULL, nDM, NULL, mats, A)); in DMCreateInterpolation_Composite()
1459 if (v) PetscCall(VecCreateNest(PetscObjectComm((PetscObject)fine), nDM, NULL, vecs, v)); in DMCreateInterpolation_Composite()
1460 for (i = 0; i < nDM * nDM; i++) PetscCall(MatDestroy(&mats[i])); in DMCreateInterpolation_Composite()
1463 for (i = 0; i < nDM; i++) PetscCall(VecDestroy(&vecs[i])); in DMCreateInterpolation_Composite()
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()
1703 com->nDM = 0; in DMCreate_Composite()