Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 14 of 14) sorted by relevance

/petsc/src/dm/partitioner/impls/matpart/
H A Dpartmatpart.c5 MatPartitioning mp; member
8 …tionerMatPartitioningGetMatPartitioning_MatPartitioning(PetscPartitioner part, MatPartitioning *mp) in PetscPartitionerMatPartitioningGetMatPartitioning_MatPartitioning() argument
13 *mp = p->mp; in PetscPartitionerMatPartitioningGetMatPartitioning_MatPartitioning()
32 …rCode PetscPartitionerMatPartitioningGetMatPartitioning(PetscPartitioner part, MatPartitioning *mp) in PetscPartitionerMatPartitioningGetMatPartitioning() argument
36 PetscAssertPointer(mp, 2); in PetscPartitionerMatPartitioningGetMatPartitioning()
37 …artitionerMatPartitioningGetMatPartitioning_C", (PetscPartitioner, MatPartitioning *), (part, mp)); in PetscPartitionerMatPartitioningGetMatPartitioning()
46 PetscCall(MatPartitioningDestroy(&p->mp)); in PetscPartitionerDestroy_MatPartitioning()
61 if (p->mp) PetscCall(MatPartitioningView(p->mp, viewer)); in PetscPartitionerView_MatPartitioning_ASCII()
83 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)p->mp, ((PetscObject)part)->prefix)); in PetscPartitionerSetFromOptions_MatPartitioning()
84 PetscCall(MatPartitioningSetFromOptions(p->mp)); in PetscPartitionerSetFromOptions_MatPartitioning()
[all …]
/petsc/src/mat/graphops/color/impls/power/
H A Dpower.c5 Mat m = mc->mat, mp, ms; in MatColoringApply_Power() local
13 mp = m; in MatColoringApply_Power()
15 PetscCall(MatMatMult(m, m, MAT_INITIAL_MATRIX, 2.0, &mp)); in MatColoringApply_Power()
17 ms = mp; in MatColoringApply_Power()
18 PetscCall(MatMatMult(m, ms, MAT_INITIAL_MATRIX, 2.0, &mp)); in MatColoringApply_Power()
22 PetscCall(MatColoringCreate(mp, &imc)); in MatColoringApply_Power()
32 if (mp != m) PetscCall(MatDestroy(&mp)); in MatColoringApply_Power()
/petsc/src/vec/is/tests/
H A Dex1.c8 PetscInt bs = 2, n = 3, ix[3] = {1, 7, 9}, iy[2] = {0, 2}, mp[2]; in main() local
19 PetscCall(ISLocalToGlobalMappingApply(ltog, 2, iy, mp)); in main()
20 PetscCall(PetscIntView(2, mp, PETSC_VIEWER_STDOUT_WORLD)); in main()
23 PetscCall(ISLocalToGlobalMappingApplyBlock(ltog, 2, iy, mp)); in main()
24 PetscCall(PetscIntView(2, mp, PETSC_VIEWER_STDOUT_WORLD)); in main()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_pool.py12 import multiprocessing as mp namespace
214 LockType: TypeAlias = mp.synchronize.Lock
219 workers: list[mp.Process]
233 self.input_queue = mp.JoinableQueue()
234 self.error_queue = mp.Queue()
235 self.return_queue = mp.Queue()
236 lock = mp.Lock()
338 worker = mp.Process(
578 num_workers = min(max(mp.cpu_count() - 1, 1), 16)
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas1606 (mp/pseudo-cycle-type 3)
1644 (mp/pseudo-time-scale-factor 1.)
1682 (mp/pseudo-implicit-relax 0.5)
1718 (mp/pseudo-specific? #t)
1759 (mp/pseudo-relax 0.5)
1935 (dpm/pic/mp? #f)
2700 (mp/dt-factor-max 1.2)
2701 (mp/dt-factor-min 0.8)
2792 (mp/extrapolate/cells #t)
2919 (mp/operating-density/method 0)
[all …]
/petsc/src/ksp/pc/impls/wb/
H A Dwb.c20 …PetscInt mwidth, nwidth, pwidth, cnt, mp, np, pp, Ntotal, gl[26], *globals, Ng, *IIi… in DMDAGetWireBasketInterpolation() local
35 …PetscCall(DMDAGetInfo(da, &dim, NULL, NULL, NULL, &mp, &np, &pp, &dof, NULL, NULL, NULL, NULL, NUL… in DMDAGetWireBasketInterpolation()
230mp + 1) * (np + 1) * (pp + 1) + mp * np * (pp + 1) + mp * pp * (np + 1) + np * pp * (mp + 1) + mp in DMDAGetWireBasketInterpolation()
292 PetscCall(PetscMalloc1(26 * mp * np * pp, &globals)); in DMDAGetWireBasketInterpolation()
297 for (i = 0, cnt = 0; i < 26 * mp * np * pp; i++) { in DMDAGetWireBasketInterpolation()
368 …PetscInt mwidth, nwidth, pwidth, cnt, mp, np, pp, Ntotal, gl[6], *globals, Ng, *IIin… in DMDAGetFaceInterpolation() local
383 …PetscCall(DMDAGetInfo(da, &dim, NULL, NULL, NULL, &mp, &np, &pp, &dof, NULL, NULL, NULL, NULL, NUL… in DMDAGetFaceInterpolation()
552 Ntotal = mp * np * (pp + 1) + mp * pp * (np + 1) + np * pp * (mp + 1); in DMDAGetFaceInterpolation()
581 PetscCall(PetscMalloc1(6 * mp * np * pp, &globals)); in DMDAGetFaceInterpolation()
586 for (i = 0, cnt = 0; i < 6 * mp * np * pp; i++) { in DMDAGetFaceInterpolation()
/petsc/src/dm/impls/plex/tests/
H A Dex24.c71 MatPartitioning mp; in main() local
120 PetscCall(PetscPartitionerMatPartitioningGetMatPartitioning(part2, &mp)); in main()
121 PetscCall(MatPartitioningSetType(mp, user.partitioning)); in main()
200 PetscCall(PetscPartitionerMatPartitioningGetMatPartitioning(part2, &mp)); in main()
201 PetscCall(MatPartitioningSetType(mp, user.repartitioning)); in main()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c6947 Mat *mp; /* intermediate products */ member
6990 for (i = 0; i < mmdata->cp; i++) PetscCall(MatDestroy(&mmdata->mp[i])); in MatProductCtxDestroy_MatMatMPIAIJBACKEND()
6991 PetscCall(PetscFree2(mmdata->mp, mmdata->mptmp)); in MatProductCtxDestroy_MatMatMPIAIJBACKEND()
7045 …ta->mp[i]->ops->productnumeric, PetscObjectComm((PetscObject)mmdata->mp[i]), PETSC_ERR_PLIB, "Miss… in MatProductNumeric_MPIAIJBACKEND()
7046 PetscCall((*mmdata->mp[i]->ops->productnumeric)(mmdata->mp[i])); in MatProductNumeric_MPIAIJBACKEND()
7057 PetscCall(MatSeqAIJCopySubArray(mmdata->mp[i], noff, mmdata->off[i], mmdata->coo_w + n_o)); in MatProductNumeric_MPIAIJBACKEND()
7058 PetscCall(MatSeqAIJCopySubArray(mmdata->mp[i], nown, mmdata->own[i], mmdata->coo_v + n_d)); in MatProductNumeric_MPIAIJBACKEND()
7062 Mat_SeqAIJ *mm = (Mat_SeqAIJ *)mmdata->mp[i]->data; in MatProductNumeric_MPIAIJBACKEND()
7064 PetscCall(MatSeqAIJCopySubArray(mmdata->mp[i], mm->nz, NULL, mmdata->coo_v + n_d)); in MatProductNumeric_MPIAIJBACKEND()
7081 …Mat A, P, mp[MAX_NUMBER_INTERMEDIATE]; /* A, P and a series of intermediate mat… in MatProductSymbolic_MPIAIJBACKEND() local
[all …]
/petsc/src/dm/partitioner/impls/simple/
H A Dpartsimple.c140 PetscInt m, mp; in PetscPartitionerPartition_Simple() local
142 for (np = 0, m = -1, mp = 0, sumw = 0; np < nparts; ++np) { in PetscPartitionerPartition_Simple()
145 mp = np; in PetscPartitionerPartition_Simple()
149 if (sumw != numVerticesGlobal) tpwgts[mp] += numVerticesGlobal - sumw; in PetscPartitionerPartition_Simple()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dqueue_main.py9 import multiprocessing as mp namespace
166 proc = mp.current_process().name
/petsc/src/snes/impls/ntrdc/
H A Dntrdc.c304 …PetscReal deltaM, ynnorm, f0, mp, gTy, g, yTHy; /*… in SNESSolve_NEWTONTRDC() local
456 mp = f0 - gTy + 0.5 * yTHy; /* quadratic model to satisfy, -gTy because our update is X-Y*/ in SNESSolve_NEWTONTRDC()
486 if (f0 == mp) rho = 0.0; in SNESSolve_NEWTONTRDC()
487 else rho = (f0 - g) / (f0 - mp); /* actual improvement over predicted improvement */ in SNESSolve_NEWTONTRDC()
/petsc/src/dm/impls/plex/
H A Dplexpartition.c1698 MatPartitioning mp; in DMPlexRebalanceSharedPoints() local
1852 PetscCall(MatPartitioningCreate(PetscObjectComm((PetscObject)dm), &mp)); in DMPlexRebalanceSharedPoints()
1853 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)mp, "dm_plex_rebalance_shared_points_")); in DMPlexRebalanceSharedPoints()
1855 PetscCall(PetscObjectPrependOptionsPrefix((PetscObject)mp, prefix)); in DMPlexRebalanceSharedPoints()
1856 PetscCall(MatPartitioningSetAdjacency(mp, A)); in DMPlexRebalanceSharedPoints()
1857 PetscCall(MatPartitioningSetNumberVertexWeights(mp, ncon)); in DMPlexRebalanceSharedPoints()
1858 PetscCall(MatPartitioningSetVertexWeights(mp, vtxwgt)); in DMPlexRebalanceSharedPoints()
1859 PetscCall(MatPartitioningSetFromOptions(mp)); in DMPlexRebalanceSharedPoints()
1860 PetscCall(MatPartitioningApply(mp, &ispart)); in DMPlexRebalanceSharedPoints()
2015 else PetscCall(MatPartitioningDestroy(&mp)); in DMPlexRebalanceSharedPoints()
/petsc/src/dm/partitioner/impls/multistage/
H A Dmspart.c701 PetscMPIInt mp, mpt; in PetscPartitionerPartition_Multistage() local
704 PetscCall(PetscMPIIntCast(i, &mp)); in PetscPartitionerPartition_Multistage()
706 PetscCallMPI(MPI_Group_translate_ranks(lgroup, 1, &mp, group, &mpt)); in PetscPartitionerPartition_Multistage()
/petsc/doc/
H A Dpetsc.bib27319 @Manual{ dash:xpress-mp,