Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 30) sorted by relevance

12

/petsc/src/sys/objects/
H A Dtagm.c65 PetscCommCounter *counter; in PetscCommGetNewTag() local
71 PetscCallMPI(MPI_Comm_get_attr(comm, Petsc_Counter_keyval, &counter, &flg)); in PetscCommGetNewTag()
74 if (counter->tag < 1) { in PetscCommGetNewTag()
75 …gs for object, starting to recycle. Comm reference count %" PetscInt_FMT "\n", counter->refcount)); in PetscCommGetNewTag()
78counter->tag = *maxval - 128; /* hope that any still active tags were issued right at the beginnin… in PetscCommGetNewTag()
81 *tag = counter->tag--; in PetscCommGetNewTag()
115 PetscCommCounter *counter; in PetscCommGetComm() local
120 PetscCallMPI(MPI_Comm_get_attr(comm_in, Petsc_Counter_keyval, &counter, &flg)); in PetscCommGetComm()
123 if (counter->comms) { in PetscCommGetComm()
124 struct PetscCommStash *pcomms = counter->comms; in PetscCommGetComm()
[all …]
H A Dpname.c101 PetscCommCounter *counter; in PetscObjectName() local
114 PetscCallMPI(MPI_Comm_get_attr(obj->comm, Petsc_Counter_keyval, (void *)&counter, &flg)); in PetscObjectName()
122 …PetscCall(PetscSNPrintf(name, 64, "%s_%p_%" PetscInt_FMT, obj->class_name, ucomm.ptr, counter->nam… in PetscObjectName()
H A Dgarbage.c95 PetscInt ii, jj = 0, counter = 0; in GarbageKeySortedIntersect_Private() local
110 seta[counter] = seta[ii]; in GarbageKeySortedIntersect_Private()
111 counter++; in GarbageKeySortedIntersect_Private()
115 *lena = counter; in GarbageKeySortedIntersect_Private()
H A Dpinit.c377 PetscCommCounter *counter = (PetscCommCounter *)count_val; in Petsc_Counter_Attr_DeleteFn() local
378 struct PetscCommStash *comms = counter->comms, *pcomm; in Petsc_Counter_Attr_DeleteFn()
382 PetscCallReturnMPI(PetscFree(counter->iflags)); in Petsc_Counter_Attr_DeleteFn()
389 PetscCallReturnMPI(PetscFree(counter)); in Petsc_Counter_Attr_DeleteFn()
1725 PetscCommCounter *counter; in PetscFinalize() local
1736 PetscCallMPI(MPI_Comm_get_attr(icomm, Petsc_Counter_keyval, &counter, &flg)); in PetscFinalize()
1746 PetscCallMPI(MPI_Comm_get_attr(icomm, Petsc_Counter_keyval, &counter, &flg)); in PetscFinalize()
/petsc/src/sys/classes/random/impls/random123/
H A Drandom123.c8 threefry4x64_ctr_t counter; member
32 r123->counter.v[0] = 0; in PetscRandomSeed_Random123()
33 r123->counter.v[1] = 1; in PetscRandomSeed_Random123()
34 r123->counter.v[2] = 2; in PetscRandomSeed_Random123()
35 r123->counter.v[3] = 3; in PetscRandomSeed_Random123()
36 r123->result = threefry4x64(r123->counter, r123->key); in PetscRandomSeed_Random123()
51 r123->counter.v[0] += 4; in PetscRandom123Step()
52 r123->counter.v[1] += 4; in PetscRandom123Step()
53 r123->counter.v[2] += 4; in PetscRandom123Step()
54 r123->counter.v[3] += 4; in PetscRandom123Step()
[all …]
/petsc/src/sys/utils/
H A Dmpits.c140 PetscCommCounter *counter; in PetscCommBuildTwoSided_Allreduce() local
146 PetscCallMPI(MPI_Comm_get_attr(comm, Petsc_Counter_keyval, &counter, &flg)); in PetscCommBuildTwoSided_Allreduce()
148 if (!counter->iflags) { in PetscCommBuildTwoSided_Allreduce()
149 PetscCall(PetscCalloc1(size, &counter->iflags)); in PetscCommBuildTwoSided_Allreduce()
150 iflags = counter->iflags; in PetscCommBuildTwoSided_Allreduce()
152 iflags = counter->iflags; in PetscCommBuildTwoSided_Allreduce()
186 PetscCommCounter *counter; in PetscCommBuildTwoSided_RedScatter() local
191 PetscCallMPI(MPI_Comm_get_attr(comm, Petsc_Counter_keyval, &counter, &flg)); in PetscCommBuildTwoSided_RedScatter()
193 if (!counter->iflags) { in PetscCommBuildTwoSided_RedScatter()
194 PetscCall(PetscCalloc1(size, &counter->iflags)); in PetscCommBuildTwoSided_RedScatter()
[all …]
H A Dmpishm.c72 PetscCommCounter *counter; in PetscShmCommGet() local
77 PetscCallMPI(MPI_Comm_get_attr(globcomm, Petsc_Counter_keyval, &counter, &flg)); in PetscShmCommGet()
/petsc/lib/petsc/bin/
H A Dpetsc_tas_analysis.py58 counter = 0
60 for counter in range(0, len(listToAdd)-1, 2):
62 listToAdd[counter], listToAdd[counter+1])
64 if editConfig and checkDirforFilePath(listToAdd[counter], listToAdd[counter+1]):
66 listToAdd[counter], 'add', aliasInConfig, listToAdd[counter+1])
743 counter = 0
828 counter = counter + 1
/petsc/src/sys/perfstubs/
H A Dpstimer.c323 void ps_sample_counter_(const void *counter, const double value) { in ps_sample_counter_() argument
325 void ** objects = (void**)(counter); in ps_sample_counter_()
331 void ps_sample_counter_fortran_(const void **counter, const double value) { in ps_sample_counter_fortran_() argument
333 ps_sample_counter_(*counter, value); in ps_sample_counter_fortran_()
H A Dtimer.h69 void ps_sample_counter_(const void *counter, const double value);
70 void ps_sample_counter_fortran_(const void **counter, const double value);
/petsc/src/binding/petsc4py/test/
H A Dtest_dmda.py479 counter = 0 variable
501 setattr(TestDACreate, 'testCreate%04d' % counter, testCreate)
503 counter += 1
504 del counter, dim, dof, boundary, stencil, width
511 counter = 0 variable
575 TestDADuplicate, 'testDuplicate%04d' % counter, testDuplicate
578 counter += 1
579 del counter, dim, dof, boundary, stencil, width
H A Dtest_dmstag.py287 counter = 0 variable
477 'testCreate%05d' % counter,
482 counter += 1
484 del counter, dim, dofs, dof0, dof1, dof2, dof3, boundary, stencil, width
/petsc/include/petsc/private/
H A Dmatisimpl.h11 Vec counter; /* counter vector */ member
/petsc/src/dm/impls/plex/
H A Dplexpartition.c1305 PetscCount counter = 0; in DMPlexPartitionLabelInvert() local
1328 PetscCall(PetscMPIIntCast(counter, &rdispls[r])); in DMPlexPartitionLabelInvert()
1329 counter += rcounts[r]; in DMPlexPartitionLabelInvert()
1331 if (counter > PETSC_MPI_INT_MAX) locOverflow = PETSC_TRUE; in DMPlexPartitionLabelInvert()
1335 PetscCall(PetscIntCast(counter, &leafSize)); in DMPlexPartitionLabelInvert()
1492 PetscInt pStart, pEnd, i, j, counter, leafCounter, sumDegrees, nroots, nleafs; in DMPlexRewriteSF() local
1588 counter = 0; in DMPlexRewriteSF()
1600 leafLocationsNew[leafCounter].rank = iremote[counter].rank; in DMPlexRewriteSF()
1601 leafLocationsNew[leafCounter].index = iremote[counter].index; in DMPlexRewriteSF()
1605 if (isLeaf[i]) counter++; in DMPlexRewriteSF()
[all …]
H A Dplexegads.c2096 PetscInt dim = -1, cdim = -1, numCorners = 0, counter = 0; in DMPlexCreateGeom_Tess_Internal() local
2297 cells[(counter * 3) + 0] = global - 1 + pointIndexStart; in DMPlexCreateGeom_Tess_Internal()
2304 cells[(counter * 3) + 1] = globalA - 1 + pointIndexStart; in DMPlexCreateGeom_Tess_Internal()
2311 cells[(counter * 3) + 2] = globalB - 1 + pointIndexStart; in DMPlexCreateGeom_Tess_Internal()
2313 PetscCall(PetscHMapIFind(triFaceIDLabelMap, counter, &TFLiter, &TFLfound)); in DMPlexCreateGeom_Tess_Internal()
2314 PetscCall(PetscHMapIFind(triBodyIDLabelMap, counter, &TBLiter, &TBLfound)); in DMPlexCreateGeom_Tess_Internal()
2316 if (!TFLfound) PetscCall(PetscHMapISet(triFaceIDLabelMap, counter, fID)); in DMPlexCreateGeom_Tess_Internal()
2317 if (!TBLfound) PetscCall(PetscHMapISet(triBodyIDLabelMap, counter, b)); in DMPlexCreateGeom_Tess_Internal()
2319 counter += 1; in DMPlexCreateGeom_Tess_Internal()
H A Dplexgeometry.c3271 PetscInt *counter; in BuildGradientReconstruction_Internal_Tree() local
3308 PetscCall(PetscCalloc1(cEndInterior - cStart, &counter)); in BuildGradientReconstruction_Internal_Tree()
3327 off += counter[cell - cStart]++; in BuildGradientReconstruction_Internal_Tree()
3334 PetscCall(PetscFree(counter)); in BuildGradientReconstruction_Internal_Tree()
/petsc/src/dm/impls/swarm/
H A Ddata_ex.c259 static void _get_tags(PetscInt counter, PetscMPIInt N, PetscMPIInt r0, PetscMPIInt r1, PetscMPIInt … in _get_tags() argument
263 st = (N * r0 + r1 + N * N * counter) % maxtag; in _get_tags()
264 rt = (N * r1 + r0 + N * N * counter) % maxtag; in _get_tags()
/petsc/src/tao/constrained/impls/ipm/
H A Dipm.c229 PetscInt i, counter, nloc; in IPMInitializeBounds() local
306 counter = 0; in IPMInitializeBounds()
307 for (i = ucstart; i < ucend; i++) cind[counter++] = i; in IPMInitializeBounds()
308 PetscCall(ISCreateGeneral(comm, counter, cind, PETSC_COPY_VALUES, &isuc)); in IPMInitializeBounds()
309 PetscCall(ISCreateGeneral(comm, counter, cind, PETSC_COPY_VALUES, &isc)); in IPMInitializeBounds()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddc.c137 Vec counter; in PCView_BDDC() local
191 PetscCall(MatCreateVecs(pc->pmat, &counter, NULL)); in PCView_BDDC()
192 PetscCall(VecSet(counter, 0.0)); in PCView_BDDC()
193 …PetscCall(VecScatterBegin(pcis->global_to_B, pcis->vec1_B, counter, INSERT_VALUES, SCATTER_REVERSE… in PCView_BDDC()
194 …PetscCall(VecScatterEnd(pcis->global_to_B, pcis->vec1_B, counter, INSERT_VALUES, SCATTER_REVERSE)); in PCView_BDDC()
195 PetscCall(VecSum(counter, &interface_size)); in PCView_BDDC()
196 PetscCall(VecDestroy(&counter)); in PCView_BDDC()
/petsc/src/mat/impls/is/
H A Dmatis.c1295 PetscCall(VecPointwiseDivide(is->y, is->y, is->counter)); in MatDiagonalSet_IS()
2115 PetscCall(VecDestroy(&b->counter)); in MatDestroy_IS()
2558 PetscCall(VecDestroy(&is->counter)); in MatISSetUpScatters_Private()
2586 PetscCall(VecDuplicate(is->y, &is->counter)); in MatISSetUpScatters_Private()
2587 PetscCall(VecBindToCPU(is->counter, PETSC_TRUE)); in MatISSetUpScatters_Private()
2591 PetscCall(VecScatterBegin(is->rctx, rglobal, is->counter, INSERT_VALUES, SCATTER_FORWARD)); in MatISSetUpScatters_Private()
2592 PetscCall(VecScatterEnd(is->rctx, rglobal, is->counter, INSERT_VALUES, SCATTER_FORWARD)); in MatISSetUpScatters_Private()
2594 PetscCall(VecBindToCPU(is->counter, PETSC_FALSE)); in MatISSetUpScatters_Private()
2873 PetscCall(VecGetArrayRead(is->counter, &array)); in MatISZeroRowsColumnsLocal_Private()
2875 PetscCall(VecRestoreArrayRead(is->counter, &array)); in MatISZeroRowsColumnsLocal_Private()
/petsc/doc/changes/
H A D2015.md79 - Initialized iteration counter to 0 for successive calls to SNES
H A D2017.md32 - Activated a counter of function evaluations, which is used in
H A D38.md37 - Added PETSCRANDOM123, a wrapper to the counter-based random number
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DTS.pyx1792 not explicitly call `setStepNumber`, as the step counter is
1794 this routine to reinitialize timestepping by setting the step counter to
1798 that `TS` monitors will be called with a initial nonzero step counter.
1904 This counter is reset to zero for each successive call
1921 This counter is reset to zero for each successive call
1960 This counter is reset to zero for each successive call
1995 This counter is reset to zero for each successive call
/petsc/doc/developers/
H A Dstyle.md496 13. Never use a local variable counter such as `PetscInt flops = 0;` to

12