Home
last modified time | relevance | path

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

/petsc/lib/petsc/bin/maint/
H A Dpetscdt_create_quadrature_headers.py45 counts = ()
47 counts = tuple(int(s) for s in re.split('\s+',f.readline().strip()))
50 rule['counts'] = counts
54 for (i,(count, multiplicity)) in enumerate(zip(counts, (1,3,6))):
96 counts = ()
99 counts = tuple(int(s) for s in count_regex)
102 rule['counts'] = counts
107 for (i,(count, multiplicity)) in enumerate(zip(counts, (1,4,6,12,24))):
/petsc/lib/petsc/bin/
H A DPetscBinaryIO_tests.py65 counts = np.array([0,2,3])
75 self.assertTrue((counts == result[1][0]).all())
82 counts = np.array([0,2,3])
84 mat = MatSparse(((2,2),(counts,cols,vals)))
/petsc/src/vec/is/sf/interface/
H A Dsftype.c71 MPIU_Count nints = 0, naddrs = 0, ncounts = 0, ntypes = 0, counts[1] = {0}; in MPIPetsc_Type_unwrap() local
83 …PetscCallMPI(MPIPetsc_Type_get_contents(a, nints, naddrs, ncounts, ntypes, ints, addrs, counts, ty… in MPIPetsc_Type_unwrap()
96 …PetscCallMPI(MPIPetsc_Type_get_contents(a, nints, naddrs, ncounts, ntypes, ints, addrs, counts, ty… in MPIPetsc_Type_unwrap()
97 …if ((nints == 1 && ints[0] == 1) || (ncounts == 1 && counts[0] == 1)) { /* If a is created by MPI_… in MPIPetsc_Type_unwrap()
/petsc/src/vec/is/utils/hdf5/
H A Dhdf5io.c91 PetscMPIInt *counts, *displs, size, n; in PetscViewerHDF5ReadSizes_Private() local
111 PetscCall(PetscMalloc2(size, &counts, size, &displs)); in PetscViewerHDF5ReadSizes_Private()
113 PetscCall(PetscMPIIntCast(range[r + 1] - range[r], &counts[r])); in PetscViewerHDF5ReadSizes_Private()
117 PetscCallMPI(MPI_Allgatherv(lcind, n, MPIU_INT, ctx->cind, counts, displs, MPIU_INT, comm)); in PetscViewerHDF5ReadSizes_Private()
118 PetscCall(PetscFree2(counts, displs)); in PetscViewerHDF5ReadSizes_Private()
/petsc/
H A Dgmakefile.test47 quiettest = @printf " %10s %s\n" "TEST" "$(@:$(TESTDIR)/counts/%.counts=%)";
310 @$(RM) -rf $(TESTDIR)/counts $(TESTLOGTAPFILE) $(TESTLOGERRFILE)
326 $(alltesttargets) : % : $(TESTDIR)/counts/%.counts
329 $(TESTDIR)/counts/%.counts :
419 -@$(PYTHON) $(CONFIGDIR)/report_tests.py -d $(TESTDIR)/counts -f
422 $(alltesttargets:%=$(TESTDIR)/counts/%.counts) : starttime
424 # Ensure that libpetsc (if it is a prerequisite) has been built and clean the counts/logs before st…
431 …$(PYTHON) $(CONFIGDIR)/report_tests.py -m $(MAKE) -d $(TESTDIR)/counts -t 5 -e $${elapsed_time} $(…
/petsc/config/
H A Dpetsc_harness.sh272 logfile=$1/counts/${label}.counts
/petsc/src/snes/utils/dm/
H A Ddminterpolatesnes.c185 PetscMPIInt *counts, *displs; in DMInterpolationSetUp() local
205 PetscCall(PetscMalloc3(N * ctx->dim, &globalPoints, size, &counts, size, &displs)); in DMInterpolationSetUp()
208 PetscCall(PetscMPIIntCast((ranges[p + 1] - ranges[p]) * ctx->dim, &counts[p])); in DMInterpolationSetUp()
212 …PetscCallMPI(MPI_Allgatherv(ctx->points, in, MPIU_REAL, globalPoints, counts, displs, MPIU_REAL, c… in DMInterpolationSetUp()
216 counts = displs = NULL; in DMInterpolationSetUp()
281 if (!redundantPoints) PetscCall(PetscFree3(globalPoints, counts, displs)); in DMInterpolationSetUp()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMStag.pyx88 Local x, y, z element counts, of length equal to ``proc_sizes``,
247 """Set global element counts in each dimension.
294 Element counts for each process in one/two/three dimensions.
418 """Return global element counts in each dimension.
852 """Global element counts in each dimension."""
H A DIS.pyx426 cdef PetscInt *counts = NULL
427 CHKERR(PetscMalloc(<size_t>size*sizeof(PetscInt), &counts))
428 CHKERR(ISPartitioningCount(self.iset, size, counts))
431 ocounts = array_i(size, counts)
433 CHKERR(PetscFree(counts))
H A DDMDA.pyx79 Local x, y, z element counts, of length equal to ``proc_sizes``,
/petsc/src/dm/field/impls/ds/
H A Ddmfieldds.c912 PetscInt **counts; in DMFieldComputeFaceData_DS() local
934 PetscCall(PetscMalloc2(numFaces, &co, coneSize, &counts)); in DMFieldComputeFaceData_DS()
987 for (f = 0; f < coneSize; f++) PetscCall(PetscCalloc1(numOrient + 1, &counts[f])); in DMFieldComputeFaceData_DS()
991 counts[co[p][s][0]][co[p][s][1] - minOrient]++; in DMFieldComputeFaceData_DS()
1080 if (!counts[f][o]) continue; in DMFieldComputeFaceData_DS()
1123 for (f = 0; f < coneSize; f++) PetscCall(PetscFree(counts[f])); in DMFieldComputeFaceData_DS()
1124 PetscCall(PetscFree2(co, counts)); in DMFieldComputeFaceData_DS()
/petsc/doc/changes/
H A D2029.md187 even imports the MATLAB flop counts correctly. Obviously you need
H A D317.md58 - Add `PetscCount` as a signed datatype for counts, equivalent to `ptrdiff_t` from `<stddef.h>`.
200 - Add `DMLabelGetNonEmptyStratumValuesIS()`, similar to `DMLabelGetValueIS()` but counts only nonem…
/petsc/doc/developers/
H A Dkernel.md36 arrays. `PetscMPIInt` is used for integers passed to MPI as counts and
38 uses. Similarly, `PetscBLASInt` is for counts, and so on passed to
H A Dtesting.md566 TEST arch-ci-linux-uni-pkgs/tests/counts/vec_is_sf_tests-ex1_basic_1.counts
965 TEST arch-osx-pkgs-opt-new/tests/counts/ksp_ksp_tests-ex9_1.counts
/petsc/src/dm/dt/interface/
H A Ddt.c2240 PetscReal *counts; in PetscDTSimplexQuadrature() local
2251 PetscCall(PetscMalloc3(n, &part, n, &perm, n, &counts)); in PetscDTSimplexQuadrature()
2257 PetscCall(PetscArrayzero(counts, n)); in PetscDTSimplexQuadrature()
2258 counts[0] = n; in PetscDTSimplexQuadrature()
2310 while (counts[last_digit_with_extra] == 1) last_digit_with_extra--; in PetscDTSimplexQuadrature()
2311 PetscInt limit = --counts[last_digit_with_extra]; in PetscDTSimplexQuadrature()
2314 counts[digit] = PetscMin(limit, total_to_distribute); in PetscDTSimplexQuadrature()
2318 PetscInt count = counts[digit]; in PetscDTSimplexQuadrature()
2324 PetscCall(PetscFree3(part, perm, counts)); in PetscDTSimplexQuadrature()
/petsc/src/dm/impls/plex/
H A Dplexpartition.c1693 PetscMPIInt *counts, *mpiCumSumVertices; in DMPlexRebalanceSharedPoints() local
1946 PetscCall(PetscMalloc1(size, &counts)); in DMPlexRebalanceSharedPoints()
1948 …; i < size; i++) PetscCall(PetscMPIIntCast(cumSumVertices[i + 1] - cumSumVertices[i], &counts[i])); in DMPlexRebalanceSharedPoints()
1950 …PetscCallMPI(MPI_Scatterv(partGlobal, counts, mpiCumSumVertices, MPIU_INT, part, counts[rank], MPI… in DMPlexRebalanceSharedPoints()
1951 PetscCall(PetscFree(counts)); in DMPlexRebalanceSharedPoints()
H A Dplextree.c2035 PetscInt p, counts[4]; in DMPlexTreeRefineCell() local
2044 counts[d] = dEnd - dStart; in DMPlexTreeRefineCell()
2055 PetscCall(DMPlexCreateFromDAG(*ncdm, dim, counts, coneSizes, cones, orientations, NULL)); in DMPlexTreeRefineCell()
/petsc/src/sys/objects/
H A Doptions.c462 PetscMPIInt rank, cnt = 0, acnt = 0, counts[2]; in PetscOptionsInsertFilePetsc() local
570 counts[0] = acnt; in PetscOptionsInsertFilePetsc()
571 counts[1] = cnt; in PetscOptionsInsertFilePetsc()
572 err = MPI_Bcast(counts, 2, MPI_INT, 0, comm); in PetscOptionsInsertFilePetsc()
574 acnt = counts[0]; in PetscOptionsInsertFilePetsc()
575 cnt = counts[1]; in PetscOptionsInsertFilePetsc()
/petsc/src/ksp/pc/impls/gamg/
H A Dgamg.c156 …PetscInt *counts, *newproc_idx, ii, jj, kk, strideNew, *tidx, ncrs_new, ncrs_eq_new, nloc_old, exp… in PCGAMGCreateLevel_GAMG() local
302 PetscCall(PetscMalloc1(size, &counts)); in PCGAMGCreateLevel_GAMG()
303 PetscCall(ISPartitioningCount(is_eq_newproc, size, counts)); in PCGAMGCreateLevel_GAMG()
304 ncrs_eq_new = counts[rank]; in PCGAMGCreateLevel_GAMG()
306 PetscCall(PetscFree(counts)); in PCGAMGCreateLevel_GAMG()
/petsc/include/
H A Dpetsclog.h469 static inline PetscErrorCode PetscMPITypeSizeComm(MPI_Comm comm, const PetscMPIInt *counts, MPI_Dat… in PetscMPITypeSizeComm() argument
477 for (p = 0, l = 0.0; p < size; ++p) l += (PetscLogDouble)(counts[p] * typesize); in PetscMPITypeSizeComm()
/petsc/doc/manual/
H A Dprofiling.md185 … Avg %Total Avg %Total counts %Total Avg %Total counts %Total
370 counts for the library routines. Users can easily supplement this
H A Dstreams.md160 Requesting the `spread` binding produces better results for small core counts but poorer ones for l…
262 The dips in the performance at certain core counts are consistent between compilers
/petsc/src/dm/interface/
H A Ddm.c5411 PetscMPIInt rank, size, p, *counts, *displs; in DMCompleteBCLabels_Internal() local
5462 PetscCall(PetscCalloc2(size, &counts, size + 1, &displs)); in DMCompleteBCLabels_Internal()
5463 PetscCallMPI(MPI_Allgather(&Nl, 1, MPI_INT, counts, 1, MPI_INT, comm)); in DMCompleteBCLabels_Internal()
5464 for (p = 0; p < size; ++p) displs[p + 1] = displs[p] + counts[p]; in DMCompleteBCLabels_Internal()
5467 counts[p] *= gmaxLen; in DMCompleteBCLabels_Internal()
5471 …PetscCallMPI(MPI_Allgatherv(sendNames, counts[rank], MPI_CHAR, recvNames, counts, displs, MPI_CHAR… in DMCompleteBCLabels_Internal()
5472 PetscCall(PetscFree2(counts, displs)); in DMCompleteBCLabels_Internal()
/petsc/lib/petsc/bin/maint/abi-compliance-checker/
H A DLICENSE9 [This is the first released version of the Lesser GPL. It also counts