| /petsc/src/ksp/ksp/tests/ |
| H A D | ex7.c | 18 PetscErrorCode MyMatShellMult(Mat As, Vec x, Vec y) in MyMatShellMult() argument 24 PetscCall(MatShellGetContext(As, &P)); in MyMatShellMult() 32 …Mat P, As; /* the matrix used to compute the preconditioner and the linear system (matri… in main() local 90 PetscCall(MatCreateShell(PETSC_COMM_WORLD, PETSC_DECIDE, PETSC_DECIDE, n, n, P, &As)); in main() 91 PetscCall(MatSetFromOptions(As)); in main() 92 PetscCall(MatShellSetOperation(As, MATOP_MULT, (PetscErrorCodeFn *)MyMatShellMult)); in main() 95 PetscCall(MatIsLinear(As, 10, &flg)); in main() 99 PetscCall(MatMult(As, u, b)); in main() 101 PetscCall(MatSetOption(As, MAT_SYMMETRIC, PETSC_TRUE)); in main() 102 PetscCall(MatMultTranspose(As, u, x)); in main() [all …]
|
| /petsc/src/mat/tests/ |
| H A D | ex108.c | 7 Mat A, B, As; in main() local 53 PetscCall(MatCreateSeqSBAIJWithArrays(PETSC_COMM_SELF, 1, 5, 5, asi, asj, asa, &As)); in main() 54 PetscCall(MatMultEqual(A, As, 10, &flg)); in main() 61 PetscCall(MatDestroy(&As)); in main()
|
| H A D | ex127.c | 7 Mat A, As, B; in main() local 126 PetscCall(MatConvert(A, MATSBAIJ, MAT_INITIAL_MATRIX, &As)); in main() 127 PetscCall(MatViewFromOptions(As, NULL, "-disp_mat")); in main() 130 PetscCall(MatMultEqual(A, As, 10, &flg)); in main() 132 PetscCall(MatMultAddEqual(A, As, 10, &flg)); in main() 152 PetscCall(MatDestroy(&As)); in main()
|
| /petsc/doc/manual/ |
| H A D | dmnetwork.md | 58 As an example, consider a network comprised of 2 subnetworks that 112 contiguous chunk of memory. As such, it does not do any
|
| H A D | dmcommonality.md | 37 but also with grid edges, grid faces, and grid cells (also called elements). As with `DMDA` each ty… 38 numerical values. As with simple structured grids, each cell can be represented as a $(i, j, k)$ tu…
|
| H A D | dmbase.md | 35 As discussed earlier, a `DM` can construct vectors and matrices appropriate for a model and discret…
|
| H A D | performance.md | 20 each byte loaded or stored. As a consequence, almost all PETSc 53 As {numref}`fig_stream_intel` shows, the performance gains due to 235 All processes are now mapped to cores on the same socket. As a result, 472 problems. As discussed in detail in {any}`ch_profiling`, the 650 As discussed in {any}`ch_ksp`, the default linear
|
| H A D | profiling.md | 38 As discussed in {any}`sec_mpelogs`, additional profiling 45 As shown in {any}`listing <listing_exprof>` in {any}`sec_profiling_programs`, the 85 subspace method, the breakdown of PETSc routines is listed below. As 292 As discussed in the preceding section, the performance summaries for
|
| H A D | snes.md | 258 As summarized in Table {any}`tab-snesdefaults`, `SNES` includes 555 As such, the final increment will likely be a hybrid of arc length continuation and 612 iteration. As such, it is generally more robust. 888 As the Newton method converges so that the residual norm is small, say 1123 method without a preconditioner. As shown in this example, 1283 As for the matrix-free computation of Jacobians ({any}`sec_nlmatrixfree`), two parameters affect th…
|
| H A D | streams.md | 29 As more threads or processes are added, the bandwidth achieved begins to saturate at some `n`, gene… 285 …, and then each MPI process is assigned a contiguous subset of the vector. As a result, the flop r…
|
| H A D | getting_started.md | 301 As shown in {any}`sec_simple`, the user can 441 As noted above, PETSc functions return a `PetscErrorCode`, which is an integer 980 …i`) by calling `Mat*SetPreallocation()` for a number of different matrix types. As another example, 1147 - `tests` - Programs designed for thorough testing of PETSc. As
|
| H A D | dmplex.md | 409 As `dm` is a `DMPLEX` object representing a mesh, we first give it a *mesh name*, "plexA", and save… 597 As the `DMPLEX` mesh just loaded might not have a desired distribution,
|
| H A D | ksp.md | 688 As discussed in {any}`sec_ksppc`, Krylov subspace methods 1226 0, and so on. As mentioned, multigrid generally coarsens the problem 1559 non-singular modes. As an example, the rigid body modes represent an 2199 and not out of `Amat` (i.e., $A$ itself). As discussed above, in 2589 As an alternative to using runtime flags to employ these external 2610 `MATSEQAIJ`, `MATMPIAIJ`, etc. As a result, the preallocation routines
|
| H A D | mat.md | 24 As with vectors, PETSc has APIs that allow the user to specify the exact details of the matrix 398 As discussed above, preallocation of memory is critical for achieving 478 As described above, the option `-info` will print information about
|
| H A D | vec.md | 706 As the table lists, we have chosen certain 1388 As discussed above, the `VecScatter` object allows one to define parallel communication between vec… 1474 As shown in the example above, `PetscSFBcastBegin()` and `PetscSFBcastEnd()` (as well as other `Pet…
|
| H A D | other.md | 284 As discussed above, one can output PETSc objects in binary format by 767 As shown in the {ref}`listing below <listing_draw_test_ex3>`, line
|
| /petsc/src/dm/impls/plex/tutorials/output/ |
| H A D | ex17_minSA.out | 351 ****** Transfer Mode = 0 I.E. As Is ****** 368 ****** Transfer Mode = 0 I.E. As Is ****** 401 ****** Transfer Mode = 0 I.E. As Is ****** 530 ****** Transfer Mode = 0 I.E. As Is ****** 779 ****** Transfer Mode = 0 I.E. As Is ****** 1188 ****** Transfer Mode = 0 I.E. As Is ****** 1597 ****** Transfer Mode = 0 I.E. As Is ****** 2006 ****** Transfer Mode = 0 I.E. As Is ******
|
| H A D | ex18_sphere_shapeMod.out | 320 ****** Transfer Mode = 0 I.E. As Is ******[0m
|
| H A D | ex19_minSA.out | 347 ****** Transfer Mode = 0 I.E. As Is ******[0m
|
| /petsc/doc/developers/contributing/ |
| H A D | index.md | 5 As you gain experience in building, using, and debugging with PETSc, you
|
| /petsc/src/tao/leastsquares/tutorials/ |
| H A D | tomographyGenerateData.m | 13 NTheta = 20; % sample angle #. Use odd NOT even, for display purpose of sinagram of Phantom. As ev…
|
| /petsc/doc/developers/ |
| H A D | buildsystem.md | 33 As several configuration tools 42 namespacing. As rudimentary as this sounds, no namespacing beyond the 77 fashion. As another example, if the user has a dependent library that
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexpartition.c | 1897 Mat As; in DMPlexRebalanceSharedPoints() local 1904 PetscCall(MatMPIAdjToSeqRankZero(A, &As)); in DMPlexRebalanceSharedPoints() 1916 …PetscCall(MatGetRowIJ(As, PETSC_FALSE, PETSC_FALSE, PETSC_FALSE, &numRows_g, &xadj, &adjncy, &done… in DMPlexRebalanceSharedPoints() 1937 …PetscCall(MatRestoreRowIJ(As, PETSC_FALSE, PETSC_FALSE, PETSC_FALSE, &numRows_g, &xadj, &adjncy, &… in DMPlexRebalanceSharedPoints() 1938 PetscCall(MatDestroy(&As)); in DMPlexRebalanceSharedPoints()
|
| /petsc/doc/community/ |
| H A D | governance.md | 78 As a requirement of fiscal sponsorship by PETSc's membership in [NumFOCUS](http://numfocus.org) the…
|
| /petsc/src/mat/impls/scalapack/ |
| H A D | matscalapack.c | 1355 Mat Adense, As; in MatLoad_ScaLAPACK() local 1363 PetscCall(MatConvert(Adense, MATSCALAPACK, MAT_INITIAL_MATRIX, &As)); in MatLoad_ScaLAPACK() 1365 PetscCall(MatHeaderReplace(newMat, &As)); in MatLoad_ScaLAPACK()
|