| /petsc/src/vec/is/sf/tutorials/ |
| H A D | ex1f.F90 | 12 PetscInt i, nroots, nrootsalloc, nleaves, nleavesalloc, mine(6), stride 46 mine(i) = stride*(i - 1) 64 …PetscCallA(PetscSFSetGraph(sf, nrootsalloc, nleaves, mine, PETSC_COPY_VALUES, remote, PETSC_COPY_V… 106 …PetscCheckA(gmine(i) == mine(i), PETSC_COMM_WORLD, PETSC_ERR_PLIB, 'Root from PetscSFGetGraph() do…
|
| H A D | ex1.c | 40 PetscInt i, bs = 2, nroots, nrootsalloc, nleaves, nleavesalloc, *mine, stride; in main() local 114 mine = NULL; in main() 125 mine = NULL; in main() 129 PetscCall(PetscMalloc1(nleaves, &mine)); in main() 130 for (i = 0; i < nleaves; i++) mine[i] = stride * i; in main() 148 …PetscCall(PetscSFSetGraph(sf, nrootsalloc, nleaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POI… in main()
|
| /petsc/src/vec/is/sf/impls/window/ |
| H A D | sfwindow.c | 20 MPI_Datatype *mine; member 84 *localtypes = link->mine; in PetscSFWindowGetDataTypes() 94 PetscCall(PetscMalloc2(nranks, &link->mine, nranks, &link->remote)); in PetscSFWindowGetDataTypes() 111 PetscCallMPI(MPI_Type_create_indexed_block(rcount, 1, rmine, link->unit, &link->mine[i])); in PetscSFWindowGetDataTypes() 116 PetscCallMPI(MPI_Type_commit(&link->mine[i])); in PetscSFWindowGetDataTypes() 122 *localtypes = link->mine; in PetscSFWindowGetDataTypes() 834 PetscCallMPI(MPI_Type_free(&link->mine[i])); in PetscSFReset_Window() 837 PetscCall(PetscFree2(link->mine, link->remote)); in PetscSFReset_Window() 1007 const MPI_Datatype *mine, *remote; in PetscSFBcastBegin_Window() local 1014 PetscCall(PetscSFWindowGetDataTypes(sf, unit, &mine, &remote)); in PetscSFBcastBegin_Window() [all …]
|
| /petsc/doc/manual/ |
| H A D | tests.md | 128 …or example, `mypkg` and create a sub-directory with that name, say `/home/mine/mypackage/src/mypkg… 137 … Also select a directory where you wish the tests to be compiled and run, say `/home/mine/mytests`. 142 $ make -f ${PETSC_DIR}/gmakefile.test TESTSRCDIR=/home/mine/mypackage/src TESTDIR=/home/mine/mytest…
|
| /petsc/src/vec/is/sf/interface/ |
| H A D | sf.c | 122 sf->mine = NULL; in PetscSFReset() 525 sf->mine = ilocal; in PetscSFSetGraph() 619 sf->mine = NULL; /* Contiguous */ in PetscSFSetGraphWithPattern() 813 if (ilocal) *ilocal = sf->mine; in PetscSFGetGraph() 910 …etscInt_FMT " <- (%" PetscInt_FMT ",%" PetscInt_FMT ")\n", rank, sf->mine ? sf->mine[i] : i, sf->r… in PetscSFView() 1119 sf->rmine[sf->roffset[irank] + rcount[irank]] = sf->mine ? sf->mine[i] : i; in PetscSFSetUpRanks() 1280 remote[i].index = outoffset[sf->mine ? sf->mine[i] : i]; in PetscSFGetMultiSF() 1284 …PetscCall(PetscSFSetGraph(sf->multi, inoffset[sf->nroots], sf->nleaves, sf->mine, PETSC_COPY_VALUE… in PetscSFGetMultiSF() 1307 newremote[i].index = newoutoffset[sf->mine ? sf->mine[i] : i]; in PetscSFGetMultiSF() 1309 …PetscCall(PetscSFSetGraph(sf->multi, inoffset[sf->nroots], sf->nleaves, sf->mine, PETSC_COPY_VALUE… in PetscSFGetMultiSF()
|
| /petsc/src/dm/impls/composite/ |
| H A D | pack.c | 733 struct DMCompositeLink *mine, *next; in DMCompositeAddDM() local 747 PetscCall(PetscNew(&mine)); in DMCompositeAddDM() 756 mine->n = n; in DMCompositeAddDM() 757 mine->nlocal = nlocal; in DMCompositeAddDM() 758 mine->dm = dm; in DMCompositeAddDM() 759 mine->next = NULL; in DMCompositeAddDM() 764 if (!next) com->next = mine; in DMCompositeAddDM() 767 next->next = mine; in DMCompositeAddDM()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcheckinterface.c | 171 const PetscInt *mine, *roffset, *rmine, *rremote; in DMPlexCheckInterfaceCones() local 198 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &mine, &remote)); in DMPlexCheckInterfaceCones()
|
| /petsc/src/vec/is/is/interface/ |
| H A D | index.c | 236 PetscInt *subis_indices, nroots, nleaves, *mine, i, lidx; in ISCreateSubIS() local 250 PetscCall(PetscMalloc1(nleaves, &mine)); in ISCreateSubIS() 257 mine[i] = i; in ISCreateSubIS() 270 …PetscCall(PetscSFSetGraph(sf, nroots, nleaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POINTER)… in ISCreateSubIS()
|
| /petsc/include/petsc/private/ |
| H A D | sfimpl.h | 69 …PetscInt *mine; /* Location of leaves in leafdata arrays provided to the communication routi… member
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 2960 PetscInt *mine, i, p; in DMPforestGetTransferSF_Internal() local 2978 PetscCall(PetscMalloc1(nleaves, &mine)); in DMPforestGetTransferSF_Internal() 2991 mine[nleaves++] = off + j; in DMPforestGetTransferSF_Internal() 2997 …PetscCall(PetscSFSetGraph(*sf, nroots, nleaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POINTER… in DMPforestGetTransferSF_Internal() 5036 PetscInt nRoots, nLeaves, *mine = NULL; in DMForestCreateCellSF_pforest() local 5060 PetscCall(PetscMalloc1(nLeaves, &mine)); in DMForestCreateCellSF_pforest() 5073 for (q = 0; q < nGhostPre; q++) mine[q] = q; in DMForestCreateCellSF_pforest() 5074 for (; q < nLeaves; q++) mine[q] = (q - nGhostPre) + cLocalEnd; in DMForestCreateCellSF_pforest() 5077 …PetscCall(PetscSFSetGraph(sf, nRoots, nLeaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POINTER)… in DMForestCreateCellSF_pforest()
|