| /petsc/src/sys/classes/draw/impls/x/ |
| H A D | xtone.c | 14 int lc, rc = 0, lx, rx = 0, xx, y, c; in PetscDrawInterpolatedTriangle_X() local 68 lc = (int)(lfrac * ((PetscReal)t2_t1) + (PetscReal)t1); in PetscDrawInterpolatedTriangle_X() 75 rc_lc = rc - lc; in PetscDrawInterpolatedTriangle_X() 79 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscDrawInterpolatedTriangle_X() 85 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscDrawInterpolatedTriangle_X() 90 c = lc >> SHIFT_VAL; in PetscDrawInterpolatedTriangle_X() 118 lc = (int)(lfrac * ((PetscReal)t3_t2) + (PetscReal)t2); in PetscDrawInterpolatedTriangle_X() 125 rc_lc = rc - lc; in PetscDrawInterpolatedTriangle_X() 129 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscDrawInterpolatedTriangle_X() 135 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscDrawInterpolatedTriangle_X() [all …]
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex32.c | 8 Vec gf, gc, lf, lc; in main() local 39 PetscCall(DMCreateLocalVector(dmc, &lc)); in main() 41 PetscCall(DMStagRestrictSimple(dmf, lf, dmc, lc)); in main() 43 PetscCall(DMLocalToGlobal(dmc, lc, INSERT_VALUES, gc)); in main() 50 PetscCall(VecDestroy(&lc)); in main()
|
| /petsc/src/sys/classes/draw/impls/image/ |
| H A D | drawimage.h | 115 int lc, rc = 0, lx, rx = 0, xx, y, c; in PetscImageDrawTriangle() local 167 lc = (int)(lfrac * ((float)t2_t1) + (float)t_1); in PetscImageDrawTriangle() 174 rc_lc = rc - lc; in PetscImageDrawTriangle() 178 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscImageDrawTriangle() 183 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscImageDrawTriangle() 187 c = lc >> SHIFT_VAL; in PetscImageDrawTriangle() 211 lc = (int)(lfrac * ((float)t3_t2) + (float)t_2); in PetscImageDrawTriangle() 218 rc_lc = rc - lc; in PetscImageDrawTriangle() 222 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscImageDrawTriangle() 227 c = (((xx - lx) * (rc_lc)) / (rx_lx) + lc) >> SHIFT_VAL; in PetscImageDrawTriangle() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex71.c | 421 Vec lc; in main() local 432 PetscCall(MatCreateVecs(lA, &lc, NULL)); in main() 433 PetscCall(VecSetLocalToGlobalMapping(lc, l2l)); in main() 435 PetscCall(VecSetOption(lc, VEC_IGNORE_NEGATIVE_INDICES, PETSC_TRUE)); in main() 441 PetscCall(VecSetValuesBlockedLocal(lc, n / bs, idxs, a, INSERT_VALUES)); in main() 442 PetscCall(VecAssemblyBegin(lc)); in main() 443 PetscCall(VecAssemblyEnd(lc)); in main() 447 PetscCall(MatNullSpaceCreateRigidBody(lc, &lnullsp)); in main() 448 PetscCall(VecDestroy(&lc)); in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | da.c | 939 …l periodic, PetscInt stencil_width, PetscInt ratio, PetscInt m, const PetscInt lc[], PetscInt lf[]) in DMDARefineOwnershipRanges() argument 946 PetscCall(PetscArraycpy(lf, lc, m)); in DMDARefineOwnershipRanges() 949 for (i = 0; i < m; i++) totalc += lc[i]; in DMDARefineOwnershipRanges() 955 const PetscInt nextc = startc + lc[i]; in DMDARefineOwnershipRanges() 967 startc += lc[i]; in DMDARefineOwnershipRanges() 980 …l periodic, PetscInt stencil_width, PetscInt ratio, PetscInt m, const PetscInt lf[], PetscInt lc[]) in DMDACoarsenOwnershipRanges() argument 987 PetscCall(PetscArraycpy(lc, lf, m)); in DMDACoarsenOwnershipRanges() 994 if (i == m - 1) lc[i] = want; in DMDACoarsenOwnershipRanges() 1006 lc[i] = want; in DMDACoarsenOwnershipRanges() 1007 startc += lc[i]; in DMDACoarsenOwnershipRanges() [all …]
|
| /petsc/src/mat/impls/is/ |
| H A D | matis.c | 640 PetscInt rbs, cbs, lc, dr, dc, oc, str, stc, nnz, i, jd, jo, cum; in MatConvert_XAIJ_IS() local 757 lc = dc + oc; in MatConvert_XAIJ_IS() 760 lc = 0; in MatConvert_XAIJ_IS() 804 PetscCall(MatCreateSeqAIJWithArrays(PETSC_COMM_SELF, dr, lc, ii, jj, aa, &lA)); in MatConvert_XAIJ_IS() 831 PetscInt *lr, *lc, *l2gidxs; in MatConvert_Nest_IS() local 854 PetscCall(PetscCalloc2(nr, &lr, nc, &lc)); in MatConvert_Nest_IS() 889 …lc[j] || l2 == lc[j], PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot convert from MATNEST to MATIS! Matri… in MatConvert_Nest_IS() 891 lc[j] = l2; in MatConvert_Nest_IS() 1010 for (i = 0, stl = 0; i < nc; i++) stl += lc[i]; in MatConvert_Nest_IS() 1018 PetscCall(ISCreateStride(PETSC_COMM_SELF, lc[i], stl, 1, &islcol[i])); in MatConvert_Nest_IS() [all …]
|
| /petsc/src/dm/impls/plex/transform/interface/ |
| H A D | plextransform.c | 1468 PetscInt lc; in DMPlexTransformGetCone_Internal() local 1471 for (lc = 0; lc < fn; ++lc) { in DMPlexTransformGetCone_Internal() 1482 if (lc) PetscCall(DMPlexRestoreOrientedCone(dm, ppp, &pcone, NULL)); in DMPlexTransformGetCone_Internal() 1488 if (lc) PetscCall(DMPlexRestoreOrientedCone(dm, pp, &pcone, NULL)); in DMPlexTransformGetCone_Internal()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsfc.c | 948 PetscSFNode lc = leaf_donor_closure[leaf_offset]; in DMPlexCreateIsoperiodicPointSF_Private() local 951 new_iremote[c] = lc; in DMPlexCreateIsoperiodicPointSF_Private() 952 …} else PetscCheck(new_iremote[c].rank == lc.rank && new_iremote[c].index == lc.index, PETSC_COMM_S… in DMPlexCreateIsoperiodicPointSF_Private()
|
| /petsc/src/mat/impls/nest/ |
| H A D | matnest.c | 592 PetscInt lr, lc; in MatNestFillEmptyMat_Private() local 597 PetscCall(ISGetLocalSize(vs->isglobal.col[j], &lc)); in MatNestFillEmptyMat_Private() 598 PetscCall(MatSetSizes(*B, lr, lc, PETSC_DECIDE, PETSC_DECIDE)); in MatNestFillEmptyMat_Private()
|
| /petsc/doc/manual/ |
| H A D | getting_started.md | 682 …lmpifort -lgfortran -lgcc_ext.10.5 -lquadmath -lm -lclang_rt.osx -lmpicxx -lc++ -ldl -lmpi -lpmpi …
|
| H A D | vec.md | 181 …MPI_Comm comm, DMBoundaryType xperiod, PetscInt M, PetscInt w, PetscInt s, PetscInt *lc, DM *inra);
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcprivate.c | 1617 PetscInt lc = ocptr[i + 1] - ocptr[i]; in PCBDDCNedelecSupport() local 1622 lc--; in PCBDDCNedelecSupport() 1626 graph->cptr[ncc + 1] = graph->cptr[ncc] + lc; in PCBDDCNedelecSupport() 1627 for (j = 0; j < lc; j++) graph->queue[graph->cptr[ncc] + j] = oqueue[ocptr[i] + j]; in PCBDDCNedelecSupport()
|