Lines Matching refs:dmIn

4495   DM        dmIn, dmVecIn, base, basec, plex, coarseDM;  in DMForestTransferVecFromBase_pforest()  local
4552 dmIn = coarseDM; in DMForestTransferVecFromBase_pforest()
4554 PetscCall(DMSetUp(dmIn)); in DMForestTransferVecFromBase_pforest()
4555 PetscCall(DMIsForest(dmIn, &isforest)); in DMForestTransferVecFromBase_pforest()
4556 …ctComm((PetscObject)dmIn), PETSC_ERR_SUP, "Cannot currently transfer through a mixed hierarchy! Fo… in DMForestTransferVecFromBase_pforest()
4558 if (hiforest) PetscCall(DMForestGetAdaptivityForest(dmIn, &coarseDM)); in DMForestTransferVecFromBase_pforest()
4561 PetscCall(DMGetCoarseDM(dmIn, &coarseDM)); in DMForestTransferVecFromBase_pforest()
4572 dmIn = coarseDM; in DMForestTransferVecFromBase_pforest()
4574 if (hiforest) PetscCall(DMForestGetAdaptivityForest(dmIn, &coarseDM)); in DMForestTransferVecFromBase_pforest()
4577 PetscCall(DMGetCoarseDM(dmIn, &coarseDM)); in DMForestTransferVecFromBase_pforest()
4580 hierarchy[n_hi - i] = dmIn; in DMForestTransferVecFromBase_pforest()
4584 PetscCall(DMPforestGetPlex(dmIn, &plex)); in DMForestTransferVecFromBase_pforest()
4599 PetscCall(DMGetLabel(dmIn, "_forest_base_subpoint_map", &subpointMap)); in DMForestTransferVecFromBase_pforest()
4616 PetscCall(DMGetLocalVector(dmIn, &vecOutLocal)); in DMForestTransferVecFromBase_pforest()
4648 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dmIn), &secOut)); in DMForestTransferVecFromBase_pforest()
4671 PetscCall(DMGetGlobalVector(dmIn, &vecOut1)); in DMForestTransferVecFromBase_pforest()
4672 PetscCall(DMLocalToGlobal(dmIn, vecOutLocal, INSERT_VALUES, vecOut1)); in DMForestTransferVecFromBase_pforest()
4673 PetscCall(DMRestoreLocalVector(dmIn, &vecOutLocal)); in DMForestTransferVecFromBase_pforest()
4677 PetscCall(DMForestTransferVec(dmIn, vecOut1, fineDM, vecOut2, PETSC_TRUE, 0.0)); in DMForestTransferVecFromBase_pforest()
4678 PetscCall(DMRestoreGlobalVector(dmIn, &vecOut1)); in DMForestTransferVecFromBase_pforest()
4680 dmIn = fineDM; in DMForestTransferVecFromBase_pforest()
4682 PetscCall(DMForestTransferVec(dmIn, vecOut1, dm, vecOut, PETSC_TRUE, 0.0)); in DMForestTransferVecFromBase_pforest()
4683 PetscCall(DMRestoreGlobalVector(dmIn, &vecOut1)); in DMForestTransferVecFromBase_pforest()
4685 PetscCall(DMLocalToGlobal(dmIn, vecOutLocal, INSERT_VALUES, vecOut)); in DMForestTransferVecFromBase_pforest()
4686 PetscCall(DMRestoreLocalVector(dmIn, &vecOutLocal)); in DMForestTransferVecFromBase_pforest()
4693 static PetscErrorCode DMForestTransferVec_pforest(DM dmIn, Vec vecIn, DM dmOut, Vec vecOut, PetscBo… in DMForestTransferVec_pforest() argument
4704 forestIn = (DM_Forest *)dmIn->data; in DMForestTransferVec_pforest()
4710 PetscCall(DMForestGetAdaptivityForest(dmIn, &adaptIn)); in DMForestTransferVec_pforest()
4711 PetscCall(DMForestGetAdaptivityPurpose(dmIn, &purposeIn)); in DMForestTransferVec_pforest()
4717 … PetscCall(DMPforestGetTransferSF_Internal(dmIn, dmOut, dofPerDim, &inSF, PETSC_TRUE, &inCids)); in DMForestTransferVec_pforest()
4722 … PetscCall(DMPforestGetTransferSF_Internal(dmOut, dmIn, dofPerDim, &outSF, PETSC_TRUE, &outCids)); in DMForestTransferVec_pforest()
4726 … PetscCall(DMPforestGetTransferSF_Internal(dmIn, dmOut, dofPerDim, &inSF, PETSC_TRUE, &inCids)); in DMForestTransferVec_pforest()
4727 … PetscCall(DMPforestGetTransferSF_Internal(dmOut, dmIn, dofPerDim, &outSF, PETSC_FALSE, &outCids)); in DMForestTransferVec_pforest()
4734 … PetscCall(DMPforestGetTransferSF_Internal(dmOut, dmIn, dofPerDim, &outSF, PETSC_TRUE, &inCids)); in DMForestTransferVec_pforest()
4739 … PetscCall(DMPforestGetTransferSF_Internal(dmIn, dmOut, dofPerDim, &inSF, PETSC_TRUE, &inCids)); in DMForestTransferVec_pforest()
4743 … PetscCall(DMPforestGetTransferSF_Internal(dmIn, dmOut, dofPerDim, &inSF, PETSC_TRUE, &inCids)); in DMForestTransferVec_pforest()
4744 … PetscCall(DMPforestGetTransferSF_Internal(dmOut, dmIn, dofPerDim, &outSF, PETSC_FALSE, &outCids)); in DMForestTransferVec_pforest()
4748 …} else SETERRQ(PetscObjectComm((PetscObject)dmIn), PETSC_ERR_SUP, "Only support transfer from pre-… in DMForestTransferVec_pforest()
4749 PetscCall(DMPforestGetPlex(dmIn, &plexIn)); in DMForestTransferVec_pforest()