| /petsc/lib/petsc/bin/maint/ |
| H A D | xclude | 1 petsc-dist/.readthedocs.yml 2 petsc-dist/.travis.yml 3 petsc-dist/.dir-locals.el 4 petsc-dist/.gitmessage 5 petsc-dist/.gitlab-ci.yml 6 petsc-dist/.gitlab-alcf-ci.yml 7 petsc-dist/.gitlab 8 petsc-dist/.git 9 petsc-dist/.mailmap 10 petsc-dist/.gitignore [all …]
|
| H A D | builddist | 68 tmpdir=$(mktemp -d -t petsc-dist.$USER.XXXXXX) 109 cp dist/petsc4py-*.tar.gz $tmpdir/ 119 cat ${PETSC_DIR}/lib/petsc/bin/maint/xclude | sed -e s/petsc-dist/$pdir/ > $tmpdir/xclude
|
| /petsc/src/mat/graphops/color/interface/ |
| H A D | matcoloring.c | 81 mc->dist = 2; /* default to Jacobian computation case */ in MatColoringCreate() 189 PetscInt dist, maxcolors; in MatColoringSetFromOptions() local 193 PetscCall(MatColoringGetDistance(mc, &dist)); in MatColoringSetFromOptions() 194 if (dist == 2) deft = MATCOLORINGSL; in MatColoringSetFromOptions() 205 …-mat_coloring_distance", "Distance of the coloring", "MatColoringSetDistance", dist, &dist, &flg)); in MatColoringSetFromOptions() 206 if (flg) PetscCall(MatColoringSetDistance(mc, dist)); in MatColoringSetFromOptions() 241 PetscErrorCode MatColoringSetDistance(MatColoring mc, PetscInt dist) in MatColoringSetDistance() argument 245 mc->dist = dist; in MatColoringSetDistance() 271 PetscErrorCode MatColoringGetDistance(MatColoring mc, PetscInt *dist) in MatColoringGetDistance() argument 275 if (dist) *dist = mc->dist; in MatColoringGetDistance() [all …]
|
| /petsc/src/vec/is/utils/tests/ |
| H A D | ex1.c | 7 PetscReal dist = 0; in Distance() local 8 for (PetscInt j = 0; j < dim; j++) dist += PetscSqr(x[j] - y[j]); in Distance() 9 return PetscSqrtReal(dist); in Distance() 82 PetscReal dist = Distance(dim, rand_point, &coords[dim * j]); in main() local 83 if (dist < nearest_distance) { in main() 84 nearest_distance = dist; in main()
|
| /petsc/src/mat/graphops/color/utils/ |
| H A D | weights.c | 37 PetscInt j, i, s, e, n, ln, lm, degree, bidx, idx, dist; in MatColoringGetDegrees() local 83 dist = distbuf[bidx]; in MatColoringGetDegrees() 86 if (dist < distance) { in MatColoringGetDegrees() 94 distbuf[bidx] = dist + 1; in MatColoringGetDegrees() 123 PetscCall(MatColoringGetDegrees(G, mc->dist, degrees)); in MatColoringCreateLargestFirstWeights() 138 …PetscInt j, i, s, e, n, ln, lm, degree, maxdegree = 0, bidx, idx, dist, distance = mc->dist; in MatColoringCreateSmallestLastWeights() local 191 dist = distbuf[bidx]; in MatColoringCreateSmallestLastWeights() 194 if (dist < distance) { in MatColoringCreateSmallestLastWeights() 202 distbuf[bidx] = dist + 1; in MatColoringCreateSmallestLastWeights() 258 dist = distbuf[bidx]; in MatColoringCreateSmallestLastWeights() [all …]
|
| H A D | valid.c | 17 PetscInt dist = mc->dist; in MatColoringTest() local 43 for (k = 0; k < dist; k++) { in MatColoringTest()
|
| /petsc/src/vec/is/utils/ |
| H A D | kdtree.c | 319 PetscReal dist = 0; in PetscSquareDistance() local 320 for (PetscInt j = 0; j < dim; j++) dist += PetscSqr(x[j] - y[j]); in PetscSquareDistance() 321 return dist; in PetscSquareDistance() 333 PetscReal dist = PetscSquareDistance(dim, point, &tree->coords[point_index * dim]); in PetscKDTreeQueryLeaf() local 334 if (dist < *distance_sqr) { in PetscKDTreeQueryLeaf() 335 *distance_sqr = dist; in PetscKDTreeQueryLeaf() 351 PetscReal dist = 0.; in PetscKDTreeQueryLeaf_CopyCoords() local 352 …for (PetscInt d = 0; d < dim; d++) dist += PetscSqr(point[d] - tree->coords[leaf.coords_handle + d… in PetscKDTreeQueryLeaf_CopyCoords() 353 if (dist < *distance_sqr) { in PetscKDTreeQueryLeaf_CopyCoords() 354 *distance_sqr = dist; in PetscKDTreeQueryLeaf_CopyCoords() [all …]
|
| /petsc/src/mat/graphops/color/impls/jp/ |
| H A D | jp.c | 99 for (l = 0; l < mc->dist; l++) { in MCJPGreatestWeight_Private() 116 if (l < mc->dist - 1) { in MCJPGreatestWeight_Private() 131 PetscInt j, i, s, e, n, bidx, cidx, idx, dist, distance = mc->dist; in MCJPInitialLocalColor_Private() local 199 dist = distbuf[bidx]; in MCJPInitialLocalColor_Private() 201 if (dist < distance) { in MCJPInitialLocalColor_Private() 213 distbuf[bidx] = dist + 1; in MCJPInitialLocalColor_Private() 236 dist = distbuf[bidx]; in MCJPInitialLocalColor_Private() 240 if (dist < distance) { in MCJPInitialLocalColor_Private() 248 distbuf[bidx] = dist + 1; in MCJPInitialLocalColor_Private() 346 for (l = 0; l < mc->dist; l++) { in MCJPMinColor_Private() [all …]
|
| /petsc/src/mat/graphops/color/impls/power/ |
| H A D | power.c | 12 if (mc->dist == 1) { in MatColoringApply_Power() 16 for (i = 2; i < mc->dist; i++) { in MatColoringApply_Power()
|
| /petsc/src/ksp/ksp/tutorials/network/ |
| H A D | ex2.c | 43 PetscReal maxdist = 0.0, dist, alpha, beta, prob; in random_network() local 73 dist = findDistance(x[i], x[j], y[i], y[j]); in random_network() 74 if (dist >= maxdist) maxdist = dist; in random_network() 82 dist = findDistance(x[i], x[j], y[i], y[j]); in random_network() 83 prob = beta * PetscExpScalar(-dist / (maxdist * alpha)); in random_network()
|
| /petsc/src/mat/graphops/color/impls/minpack/ |
| H A D | color.c | 43 PetscCheck(mc->dist == 2, PETSC_COMM_SELF, PETSC_ERR_SUP, "SL may only do distance 2 coloring"); in MatColoringApply_SL() 118 mc->dist = 2; in MatColoringCreate_SL() 143 PetscCheck(mc->dist == 2, PETSC_COMM_SELF, PETSC_ERR_SUP, "LF may only do distance 2 coloring"); in MatColoringApply_LF() 221 mc->dist = 2; in MatColoringCreate_LF() 246 PetscCheck(mc->dist == 2, PETSC_COMM_SELF, PETSC_ERR_SUP, "IDO may only do distance 2 coloring"); in MatColoringApply_ID() 322 mc->dist = 2; in MatColoringCreate_ID()
|
| /petsc/src/binding/petsc4py/ |
| H A D | .gitignore | 2 dist
|
| H A D | makefile | 37 -${RM} -r MANIFEST dist ${package}.egg-info
|
| /petsc/src/mat/tests/ |
| H A D | ex66.c | 10 PetscReal dist, diff = 0.0; in GenEntry_Symm() local 13 dist = PetscSqrtReal(diff); in GenEntry_Symm() 14 return PetscExpReal(-dist / clength); in GenEntry_Symm() 21 PetscReal dist, diff = 0.0, nx = 0.0, ny = 0.0; in GenEntry_Unsymm() local 26 dist = PetscSqrtReal(diff); in GenEntry_Unsymm() 27 return nx > ny ? PetscExpReal(-dist / clength) : PetscExpReal(-dist / clength) + 1.; in GenEntry_Unsymm()
|
| /petsc/src/ksp/pc/impls/amgx/ |
| H A D | amgx.cxx | 292 AMGX_distribution_handle dist; in PCSetUp_AMGX() local 293 PetscCallAmgX(AMGX_distribution_create(&dist, amgx->cfg)); in PCSetUp_AMGX() 294 PetscCallAmgX(AMGX_distribution_set_32bit_colindices(dist, true)); in PCSetUp_AMGX() 295 …PetscCallAmgX(AMGX_distribution_set_partition_data(dist, AMGX_DIST_PARTITION_OFFSETS, partitionOff… in PCSetUp_AMGX() 296 …Rows, (int)amgx->nnz, amgx->bSize, amgx->bSize, rowOffsets, colIndices, amgx->values, NULL, dist)); in PCSetUp_AMGX()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | runtests.py | 119 from setuptools.dist import Distribution 121 from distutils.dist import Distribution
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcgraph.c | 336 PetscReal dist = 0.0; in PCBDDCGraphComputeConnectedComponents() local 339 …for (d = 0; d < cdim; d++) dist += (wdist[j * cdim + d] - anchor[d]) * (wdist[j * cdim + d] - anch… in PCBDDCGraphComputeConnectedComponents() 340 if (dist > mdist) { in PCBDDCGraphComputeConnectedComponents() 341 mdist = dist; in PCBDDCGraphComputeConnectedComponents() 351 PetscReal dist = 0.0; in PCBDDCGraphComputeConnectedComponents() local 354 …for (d = 0; d < cdim; d++) dist += (wdist[j * cdim + d] - anchor[d]) * (wdist[j * cdim + d] - anch… in PCBDDCGraphComputeConnectedComponents() 355 if (dist > mdist) { in PCBDDCGraphComputeConnectedComponents() 356 mdist = dist; in PCBDDCGraphComputeConnectedComponents() 395 PetscReal dist = 0.0; in PCBDDCGraphComputeConnectedComponents() local 398 …for (d = 0; d < cdim; d++) dist += (wdist[j * cdim + d] - anchor[d]) * (wdist[j * cdim + d] - anch… in PCBDDCGraphComputeConnectedComponents() [all …]
|
| /petsc/src/dm/impls/plex/kokkos/ |
| H A D | plexlocalizationletkf.kokkos.cxx | 229 PetscReal dist = std::sqrt(best_dists_dev(i, k)); in DMPlexGetLETKFLocalizationMatrix() 231 values_dev(i, k) = GaspariCohn(dist, radius); in DMPlexGetLETKFLocalizationMatrix()
|
| /petsc/doc/install/ |
| H A D | index.md | 32 - install with some external packages - `spack install petsc +superlu-dist +metis +hypre +hdf5`
|
| /petsc/src/sys/tests/ |
| H A D | ex64.cxx | 299 const auto dist = std::distance(kv_begin, found); in test_insert() local 303 …dist >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Index of found key-value pair (%s -> %s) %t… in test_insert() 305 PetscCallCXX(++found_key_value.at(static_cast<std::size_t>(dist))); in test_insert()
|
| /petsc/src/mat/graphops/color/impls/greedy/ |
| H A D | greedy.c | 503 …PetscCheck(mc->dist == 1 || mc->dist == 2, PetscObjectComm((PetscObject)mc), PETSC_ERR_ARG_OUTOFRA… in MatColoringApply_Greedy() 505 if (mc->dist == 1) { in MatColoringApply_Greedy()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexdistribute.c | 2228 PetscErrorCode DMPlexDistributeSetDefault_Plex(DM dm, PetscBool dist) in DMPlexDistributeSetDefault_Plex() argument 2233 mesh->distDefault = dist; in DMPlexDistributeSetDefault_Plex() 2250 PetscErrorCode DMPlexDistributeSetDefault(DM dm, PetscBool dist) in DMPlexDistributeSetDefault() argument 2254 PetscValidLogicalCollectiveBool(dm, dist, 2); in DMPlexDistributeSetDefault() 2255 PetscTryMethod(dm, "DMPlexDistributeSetDefault_C", (DM, PetscBool), (dm, dist)); in DMPlexDistributeSetDefault() 2259 PetscErrorCode DMPlexDistributeGetDefault_Plex(DM dm, PetscBool *dist) in DMPlexDistributeGetDefault_Plex() argument 2264 *dist = mesh->distDefault; in DMPlexDistributeGetDefault_Plex() 2283 PetscErrorCode DMPlexDistributeGetDefault(DM dm, PetscBool *dist) in DMPlexDistributeGetDefault() argument 2287 PetscAssertPointer(dist, 2); in DMPlexDistributeGetDefault() 2288 PetscUseMethod(dm, "DMPlexDistributeGetDefault_C", (DM, PetscBool *), (dm, dist)); in DMPlexDistributeGetDefault()
|
| /petsc/src/mat/impls/aij/mpi/strumpack/ |
| H A D | strumpack.c | 958 const PetscInt *dist = NULL; in MatLUFactorNumeric_STRUMPACK() local 959 PetscCall(MatGetOwnershipRanges(A, &dist)); in MatLUFactorNumeric_STRUMPACK() 960 …CK_set_distributed_csr_matrix", STRUMPACK_set_distributed_csr_matrix(*S, &m, ai, aj, av, dist, 0)); in MatLUFactorNumeric_STRUMPACK()
|
| /petsc/ |
| H A D | makefile | 236 dist: target
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMPlex.pyx | 1720 dist : bool 1729 cdef PetscBool dist = PETSC_FALSE 1730 CHKERR(DMPlexDistributeGetDefault(self.dm, &dist)) 1731 return toBool(dist) 1749 cdef PetscBool dist = asBool(flag) 1750 CHKERR(DMPlexDistributeSetDefault(self.dm, dist))
|