| /petsc/src/vec/vec/tests/ |
| H A D | ex49.c | 24 PetscInt i, j, k, *ln, n, rstart; in main() local 34 PetscCall(PetscMalloc1(size, &ln)); in main() 36 for (p = 0; p < size; ++p) ln[p] = 10; in main() 37 ln[0] = 2; in main() 39 PetscCall(PetscIntView(1, &ln[rank], PETSC_VIEWER_STDOUT_WORLD)); in main() 40 n = ln[rank]; in main() 73 const PetscInt nn = ln[neighbor]; in main() 76 for (p = 0; p < neighbor; ++p) nrstart += ln[p]; in main() 90 PetscCall(PetscFree(ln)); in main()
|
| /petsc/src/sys/fileio/ |
| H A D | fpath.c | 30 size_t ln; in PetscGetFullPath() local 80 PetscCall(PetscStrlen(tmppath, &ln)); in PetscGetFullPath() 81 …if (tmppath[ln - 1] != '/') PetscCall(PetscStrlcat(tmppath + ln - 1, "/", sizeof(tmppath) - ln + 1… in PetscGetFullPath() 87 PetscCall(PetscStrlen(fullpath, &ln)); in PetscGetFullPath() 88 PetscCall(PetscStrncpy(fullpath + ln, "/", flen - ln)); in PetscGetFullPath() 90 PetscCall(PetscStrlen(fullpath, &ln)); in PetscGetFullPath()
|
| /petsc/src/binding/petsc4py/src/petsc4py/lib/ |
| H A D | __init__.py | 150 lines = [ln.strip() for ln in rcdata.splitlines()] 151 lines = [ln for ln in lines if not ln.startswith('#')] 152 entries = [ln.split('=') for ln in lines if ln]
|
| /petsc/systems/Apple/OSX/bin/ |
| H A D | makeframework | 24 ln -s A Current 89 ln -s Versions/Current/Headers Headers 90 ln -s Versions/Current/PETSc PETSc 91 ln -s Versions/Current/Resources Resources 92 ln -s Versions/Current/module.map module.map
|
| /petsc/systems/Apple/iOS/bin/ |
| H A D | makeframework | 20 ln -s A Current 85 ln -s Versions/Current/Headers Headers 86 ln -s Versions/Current/PETSc PETSc 87 ln -s Versions/Current/Resources Resources 88 ln -s Versions/Current/module.map module.map
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mpiaijsbaij.c | 15 PetscInt m, n, lm, ln, bs = A->rmap->bs; in MatConvert_MPIAIJ_MPISBAIJ() local 23 PetscCall(MatGetLocalSize(A, &lm, &ln)); in MatConvert_MPIAIJ_MPISBAIJ() 27 PetscCall(MatSetSizes(M, lm, ln, m, n)); in MatConvert_MPIAIJ_MPISBAIJ() 58 PetscInt m, n, lm, ln; in MatConvert_MPIBAIJ_MPISBAIJ() local 68 PetscCall(MatGetLocalSize(A, &lm, &ln)); in MatConvert_MPIBAIJ_MPISBAIJ() 78 PetscCall(MatSetSizes(M, lm, ln, m, n)); in MatConvert_MPIBAIJ_MPISBAIJ()
|
| /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 60 PetscCall(MatGetSize(lG, &ln, &lm)); in MatColoringGetDegrees() 65 for (i = 0; i < ln; i++) seen[i] = -1; in MatColoringGetDegrees() 67 for (i = 0; i < ln; i++) { in MatColoringGetDegrees() 138 …PetscInt j, i, s, e, n, ln, lm, degree, maxdegree = 0, bidx, idx, dist, distance = mc->dist; in MatColoringCreateSmallestLastWeights() local 164 PetscCall(MatGetSize(lG, &ln, &lm)); in MatColoringCreateSmallestLastWeights() 171 for (i = 0; i < ln; i++) { in MatColoringCreateSmallestLastWeights() 176 for (i = 0; i < ln; i++) { in MatColoringCreateSmallestLastWeights() 213 PetscCall(PetscMalloc1(ln, &rperm)); in MatColoringCreateSmallestLastWeights() 214 for (i = 0; i < ln; i++) { in MatColoringCreateSmallestLastWeights() [all …]
|
| /petsc/doc/ |
| H A D | build_c2html_file.py | 36 ln = re.search('<a name="line[0-9]*">[ 0-9]*: </a>',line) 37 linenumber = line[ln.start():ln.end()]
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mpiaijbaij.c | 13 PetscInt m, n, lm, ln, bs = A->rmap->bs; in MatConvert_MPIAIJ_MPIBAIJ() local 21 PetscCall(MatGetLocalSize(A, &lm, &ln)); in MatConvert_MPIAIJ_MPIBAIJ() 25 PetscCall(MatSetSizes(M, lm, ln, m, n)); in MatConvert_MPIAIJ_MPIBAIJ()
|
| /petsc/src/mat/utils/ |
| H A D | convert.c | 27 PetscInt m, n, lm, ln; in MatConvert_Basic() local 29 PetscCall(MatGetLocalSize(mat, &lm, &ln)); in MatConvert_Basic() 31 PetscCall(MatSetSizes(M, lm, ln, m, n)); in MatConvert_Basic()
|
| /petsc/src/vec/vec/tutorials/output/ |
| H A D | ex18_1.out | 1 ln(2) is 0.693146
|
| /petsc/src/mat/tests/ |
| H A D | ex23.c | 24 PetscInt n, m, i, lm, ln; in main() local 100 PetscCall(ISLocalToGlobalMappingGetSize(cmap, &ln)); in main() 403 PetscCall(ISCreateStride(PETSC_COMM_SELF, ln / 2 + ln % 2, 0, 2, &ceven)); in main() 404 PetscCall(ISComplement(ceven, 0, ln, &codd)); in main() 896 PetscCall(PetscMalloc1(lm * ln, &vals)); in main() 897 for (i = 0; i < lm * ln; i++) vals[i] = i + 1.0; in main() 898 PetscCall(MatGetLocalSize(A, NULL, &ln)); in main() 899 PetscCall(MatISSetPreallocation(A, ln, NULL, n - ln, NULL)); in main() 900 PetscCall(MatSeqAIJSetPreallocation(B, ln, NULL)); in main() 901 PetscCall(MatMPIAIJSetPreallocation(B, ln, NULL, n - ln, NULL)); in main() [all …]
|
| /petsc/config/ |
| H A D | testparse.py | 413 for ln in testSplit(striptest): 414 line=ln.split('#')[0].rstrip() 416 comment=("" if len(ln.split("#"))>0 else " ".join(ln.split("#")[1:]).strip())
|
| /petsc/share/petsc/ |
| H A D | chkerrconvert.py | 171 if not any(ln in line_range for _,ln in error_code_uses):
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_vec.py | 175 ln = self.vec.getLocalSize() 178 self.assertEqual(abs(lvec.sum()), (rank + 1) * ln) 181 self.assertEqual(abs(lvec.sum()), (rank + 1) * ln)
|
| /petsc/ |
| H A D | makefile | 40 @ln -sf ${PETSC_ARCH}/lib/petsc/conf/make.log make.log 253 ln -s $${ALLTESTSLOG} alltests.log ;\
|
| H A D | gmakefile | 191 @ln -sf $(notdir $<) $@ 194 @ln -sf $(notdir $<) $@
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 33 PetscInt i, nroots, ls = -1, ln = -1; in PetscSFSetGraphLayout() local 49 if (idx < 0 || idx >= ln) { /* short-circuit the search */ in PetscSFSetGraphLayout() 53 ln = range[lr + 1] - ls; in PetscSFSetGraphLayout()
|
| /petsc/doc/install/ |
| H A D | multibuild.md | 184 $ ln -s $PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/reconfigure-$PETSC_ARCH.py $PETSC_DIR/
|
| /petsc/lib/petsc/conf/ |
| H A D | rules | 29 PI* *.ln l.outa* mputil.mp_* core core.* *.tmp *.map gmon.out *.gcov.html \
|
| /petsc/src/mat/impls/sell/mpi/ |
| H A D | mpisell.c | 1681 …PetscInt i, d_nz = 0, o_nz = 0, m = A->rmap->N, n = A->cmap->N, lm = A->rmap->n, ln = A->cmap->… in MatConvert_MPIAIJ_MPISELL() local 1692 PetscCall(MatSetSizes(B, lm, ln, m, n)); in MatConvert_MPIAIJ_MPISELL()
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcprivate.c | 9587 PetscInt n = pc->pmat->rmap->n, ln, ni, st; in PCBDDCViewGlobalIS() local 9594 PetscCall(MatGetLocalSize(matis->A, NULL, &ln)); in PCBDDCViewGlobalIS() 9595 PetscCall(PetscArrayzero(matis->sf_leafdata, ln)); in PCBDDCViewGlobalIS() 9600 if (idxs[i] < 0 || idxs[i] >= ln) continue; in PCBDDCViewGlobalIS() 9606 ln = 0; in PCBDDCViewGlobalIS() 9608 if (matis->sf_rootdata[i]) matis->sf_rootdata[ln++] = i + st; in PCBDDCViewGlobalIS() 9610 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)pc), ln, matis->sf_rootdata, PETSC_USE_POIN… in PCBDDCViewGlobalIS()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 5045 PetscInt pdep, ln, inval = points[0]; in DMPlexCreateFromOptions_Internal() local 5051 PetscCall(ISGetLocalSize(pointIS, &ln)); in DMPlexCreateFromOptions_Internal() 5057 if (!pdep) PetscCall(ProcessCohesiveLabel_Vertices(dm, label, inlabel, inval, ln, lpoints)); in DMPlexCreateFromOptions_Internal() 5058 else PetscCall(ProcessCohesiveLabel_Faces(dm, label, ln, lpoints)); in DMPlexCreateFromOptions_Internal()
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 7702 …PetscInt n, *sizes, *starts, i = 0, env = 0, tbs = 0, lblocks = 0, rstart, II, ln = 0, c… in MatComputeVariableBlockEnvelope() local 7776 for (PetscInt i = 0; i < lblocks; i++) ln += sizes[i]; in MatComputeVariableBlockEnvelope() 7777 PetscCall(VecCreateSeq(PETSC_COMM_SELF, 2 * ln, &seq)); in MatComputeVariableBlockEnvelope()
|
| /petsc/doc/manual/ |
| H A D | tao.md | 2092 \text{min}~&f(x) - \mu\sum_{i=1}^{nci}\ln z_i\\ 2108 …ambda_{ci},z) = f(x) + \lambda_{ce}^Tce(x) - \lambda_{ci}^T(ci(x) - z) - \mu\sum_{i=1}^{nci}\ln z_i
|