Lines Matching refs:adaptFrom
707 DM base, adaptFrom; in DMSetUp_pforest() local
718 PetscCall(DMForestGetAdaptivityForest(dm, &adaptFrom)); in DMSetUp_pforest()
721 …PetscCheck(adaptFrom || base || topoName, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTA… in DMSetUp_pforest()
724 if (adaptFrom) { /* reference already created topology */ in DMSetUp_pforest()
726 DM_Forest *aforest = (DM_Forest *)adaptFrom->data; in DMSetUp_pforest()
729 PetscCall(PetscObjectTypeCompare((PetscObject)adaptFrom, DMPFOREST, &ispforest)); in DMSetUp_pforest()
730 …_NOTSAMETYPE, "Trying to adapt from %s, which is not %s", ((PetscObject)adaptFrom)->type_name, DMP… in DMSetUp_pforest()
732 PetscCall(DMSetUp(adaptFrom)); in DMSetUp_pforest()
855 if (adaptFrom) { /* start with the old forest */ in DMSetUp_pforest()
859 DM_Forest *aforest = (DM_Forest *)adaptFrom->data; in DMSetUp_pforest()
873 …duce(&numValues, &numValuesGlobal, 1, MPIU_INT, MPI_MAX, PetscObjectComm((PetscObject)adaptFrom))); in DMSetUp_pforest()
912 PetscCall(DMForestGetCellChart(adaptFrom, &cStart, &cEnd)); in DMSetUp_pforest()
913 PetscCall(DMForestGetCellSF(adaptFrom, &cellSF)); in DMSetUp_pforest()
972 PetscCall(DMGetNumLabels(adaptFrom, &numLabels)); in DMSetUp_pforest()
979 PetscCall(DMGetLabelName(adaptFrom, l, &name)); in DMSetUp_pforest()
980 PetscCall(DMGetLabelByNum(adaptFrom, l, &label)); in DMSetUp_pforest()
1186 if (adaptFrom) { in DMSetUp_pforest()
1189 PetscCall(DMForestGetPartitionOverlap(adaptFrom, &aoverlap)); in DMSetUp_pforest()
1208 if (adaptFrom) PetscCall(DMForestGetCellSF(adaptFrom, &preCellSF)); in DMSetUp_pforest()