| /petsc/doc/overview/ |
| H A D | features.md | 5 - {ref}`HPC <doc_config_hpc>` 6 - {ref}`Linux <doc_config_faq>` 7 - {ref}`macOS <doc_config_faq>` 8 - {ref}`Microsoft Windows <doc_windows>` 12 - {ref}`Matrix/Vector CUDA support <doc_config_accel_cuda>` 13 - {ref}`Kokkos support <doc_config_accel_kokkos>` 14 - {ref}`Matrix/Vector OpenCL/ViennaCL support <doc_config_accel_opencl>` 15 - {ref}`Matrix/Vector HIP support <doc_gpu_roadmap>` 18 PETSc GPU support is under heavy development! See GPU support {ref}`roadmap
|
| H A D | nutshell.md | 54 - {ref}`Vector table <doc_vector>` 55 - {ref}`Matrix table <doc_matrix>` 56 - {ref}`Linear solvers table <doc_linsolve>` 57 - {ref}`Nonlinear solvers table <doc_nonlinsolve>` 58 - {ref}`ODE integrators table <integrator_table>` 59 - {ref}`Optimizers table <doc_taosolve>` 60 - {ref}`Model/discretization interfaces to solvers table <dm_table>`
|
| H A D | gpu_roadmap.md | 10 See FAQ {ref}`topic <doc_faq_gpuhowto>` which shows how to enable GPU backends. 71 {ref}`documentation <ind_developers>`. The label `GPU` is used on our [GitLab](https://gitlab.com/p…
|
| /petsc/src/ts/event/tests/ |
| H A D | ex4.c | 29 PetscReal ref[MAX_NEV]; // reference times of zero-crossings, for checking member 132 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 2.0; in main() 133 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 4.0; in main() 134 if (dir0 <= 0) ctx.ref[ctx.cntref++] = 1.0; in main() 135 if (dir0 <= 0) ctx.ref[ctx.cntref++] = 3.0; in main() 138 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.0; in main() 140 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.0; in main() 142 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.696812386809752; in main() 144 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 0.1; in main() 146 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.02; in main() [all …]
|
| H A D | ex5.c | 31 PetscReal ref[MAX_NEV]; // reference times of zero-crossings, for checking member 122 if (ctx.dir0 >= 0) ctx.ref[ctx.cntref++] = 1.0 + aux; in main() 131 if (ctx.dir0 <= 0) ctx.ref[ctx.cntref++] = 9.0 - aux; in main() 139 if (i % 2 == 1 && ctx.dir0 <= 0) ctx.ref[ctx.cntref++] = i; in main() 140 if (i % 2 == 0 && ctx.dir0 >= 0) ctx.ref[ctx.cntref++] = i; in main() 147 if (i % 2 == 1 && ctx.dir0 <= 0) ctx.ref[ctx.cntref++] = i - 0.5; in main() 148 if (i % 2 == 0 && ctx.dir0 >= 0) ctx.ref[ctx.cntref++] = i - 0.5; in main() 151 if (ctx.cntref > 0) PetscCall(PetscSortReal(ctx.cntref, ctx.ref)); in main() 162 if (j < ctx.cntref) err = PetscAbsReal(ctx.evres[j] - ctx.ref[j]); in main()
|
| H A D | ex3.c | 35 PetscReal ref[MAX_NEV]; // reference times of zero-crossings, for checking member 130 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.05; in main() 136 if (dir0 <= 0) ctx.ref[ctx.cntref++] = 9.05; in main() 144 if (i % 2 == 1 && dir0 <= 0) ctx.ref[ctx.cntref++] = i; in main() 145 if (i % 2 == 0 && dir0 >= 0) ctx.ref[ctx.cntref++] = i; in main() 148 if (ctx.cntref > 0) PetscCall(PetscSortReal(ctx.cntref, ctx.ref)); in main() 160 if (j < ctx.cntref) err = PetscAbsReal(ctx.evres[j] - ctx.ref[j]); in main()
|
| H A D | ex1sin.c | 27 PetscReal ref[MAX_NEV]; // reference times of zero-crossings, for checking member 114 if (i % 2 == 1 && dir0 <= 0) ctx.ref[ctx.cntref++] = i; in main() 115 if (i % 2 == 0 && dir0 >= 0) ctx.ref[ctx.cntref++] = i; in main() 118 if (ctx.cntref > 0) PetscCall(PetscSortReal(ctx.cntref, ctx.ref)); in main() 127 if (j < ctx.cntref) err = PetscAbsReal(ctx.evres[j] - ctx.ref[j]); in main()
|
| H A D | ex2.c | 27 PetscReal ref[MAX_NEV]; // reference times of zero-crossings, for checking member 112 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.0; in main() 117 if (dir0 <= 0) ctx.ref[ctx.cntref++] = 9.0; in main() 119 if (ctx.cntref > 0) PetscCall(PetscSortReal(ctx.cntref, ctx.ref)); in main() 128 if (j < ctx.cntref) err = PetscAbsReal(ctx.evres[j] - ctx.ref[j]); in main()
|
| H A D | ex3span.c | 36 PetscReal ref[MAX_NEV]; // reference times of zero-crossings, for checking member 128 if (dir0 >= 0) ctx.ref[ctx.cntref++] = 1.05; in main() 133 if (dir0 <= 0) ctx.ref[ctx.cntref++] = 9.05; in main() 140 if (i % 2 == 1 && dir0 <= 0) ctx.ref[ctx.cntref++] = i; in main() 141 if (i % 2 == 0 && dir0 >= 0) ctx.ref[ctx.cntref++] = i; in main() 144 if (ctx.cntref > 0) PetscCall(PetscSortReal(ctx.cntref, ctx.ref)); in main() 173 if (j < ctx.cntref) err = PetscAbsReal(ctx.evres[j] - ctx.ref[j]); in main()
|
| /petsc/src/tao/linesearch/impls/armijo/ |
| H A D | armijo.c | 92 PetscReal fact, ref, gdx; in TaoLineSearchApply_Armijo() local 156 ref = *f; in TaoLineSearchApply_Armijo() 159 if (armP->memory[i] > ref) { in TaoLineSearchApply_Armijo() 160 ref = armP->memory[i]; in TaoLineSearchApply_Armijo() 166 ref = 0; in TaoLineSearchApply_Armijo() 167 for (i = 0; i < armP->memorySize; i++) ref += armP->memory[i]; in TaoLineSearchApply_Armijo() 168 ref = ref / armP->memorySize; in TaoLineSearchApply_Armijo() 169 ref = PetscMax(ref, armP->memory[armP->current]); in TaoLineSearchApply_Armijo() 171 ref = PetscMin(ref, 0.5 * (armP->lastReference + armP->memory[armP->current])); in TaoLineSearchApply_Armijo() 219 if (armP->nondescending && *f <= ref - ls->step * fact * ref) break; in TaoLineSearchApply_Armijo() [all …]
|
| /petsc/src/tao/linesearch/impls/owarmijo/ |
| H A D | owarmijo.c | 116 PetscReal fact, ref, gdx; in TaoLineSearchApply_OWArmijo() local 185 ref = armP->memory[0]; in TaoLineSearchApply_OWArmijo() 189 if (armP->memory[i] > ref) { in TaoLineSearchApply_OWArmijo() 190 ref = armP->memory[i]; in TaoLineSearchApply_OWArmijo() 196 ref = 0; in TaoLineSearchApply_OWArmijo() 197 for (i = 0; i < armP->memorySize; i++) ref += armP->memory[i]; in TaoLineSearchApply_OWArmijo() 198 ref = ref / armP->memorySize; in TaoLineSearchApply_OWArmijo() 199 ref = PetscMax(ref, armP->memory[armP->current]); in TaoLineSearchApply_OWArmijo() 201 ref = PetscMin(ref, 0.5 * (armP->lastReference + armP->memory[armP->current])); in TaoLineSearchApply_OWArmijo() 245 if (armP->nondescending && *f <= ref - ls->step * fact * ref) break; in TaoLineSearchApply_OWArmijo() [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex36f.F90 | 12 PetscInt ref 23 PetscCallA(PetscObjectGetReference(r, ref, ierr)) 24 print *, 'Reference value:', ref
|
| /petsc/src/snes/utils/dm/ |
| H A D | dminterpolatesnes.c | 470 const PetscScalar *ref; in QuadMap_Private() local 474 PetscCall(VecGetArrayRead(Xref, &ref)); in QuadMap_Private() 477 const PetscScalar p0 = ref[0]; in QuadMap_Private() 478 const PetscScalar p1 = ref[1]; in QuadMap_Private() 484 PetscCall(VecRestoreArrayRead(Xref, &ref)); in QuadMap_Private() 503 const PetscScalar *ref; in QuadJacobian_Private() local 506 PetscCall(VecGetArrayRead(Xref, &ref)); in QuadJacobian_Private() 508 const PetscScalar x = ref[0]; in QuadJacobian_Private() 509 const PetscScalar y = ref[1]; in QuadJacobian_Private() 520 PetscCall(VecRestoreArrayRead(Xref, &ref)); in QuadJacobian_Private() [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex46.c | 79 Vec ref; in VecCompare() local 95 PetscCall(VecDuplicate(a, &ref)); in VecCompare() 96 PetscCall(VecCopy(a, ref)); in VecCompare() 97 PetscCall(VecAXPY(ref, -1.0, b)); in VecCompare() 98 PetscCall(VecMin(ref, &locmin[0], &min[0])); in VecCompare() 105 PetscCall(VecDestroy(&ref)); in VecCompare()
|
| H A D | ex54.c | 5 static PetscErrorCode TestPointwiseMaxAbs(Vec result, Vec x, Vec y, Vec ref) in TestPointwiseMaxAbs() argument 14 PetscCall(VecGetArrayRead(ref, &ref_array)); in TestPointwiseMaxAbs() 23 PetscCall(VecRestoreArrayRead(ref, &ref_array)); in TestPointwiseMaxAbs()
|
| /petsc/src/ts/tutorials/eimex/ |
| H A D | ct_vdp_imex.c | 49 Vec ref; in main() local 77 PetscCall(MatCreateVecs(A, &ref, NULL)); in main() 78 PetscCall(VecGetArray(ref, &x_ptr)); in main() 134 PetscCall(VecAXPY(x, -1.0, ref)); in main() 160 PetscCall(VecDestroy(&ref)); in main()
|
| /petsc/doc/install/ |
| H A D | install_tutorial.md | 8 are installed, {ref}`download <doc_download>` PETSc and build with: 24 are not using {ref}`external packages <doc_externalsoftware>` that use Fortran (for 31 3. Refer to {ref}`configuration faq <doc_config_faq>` (e.g. build PETSc without a 43 5. Check the {ref}`bug-reporting <doc_creepycrawly>` section. 100 See the {ref}`download documentation <doc_download>` for additional details. 117 See {ref}`download documentation <doc_download>` for additional details. 152 See {ref}`install documentation <doc_config_faq>` for more details. 158 - {ref}`Specifying different compilers. <doc_config_compilers>` 159 - {ref}`Specifying different MPI implementations. <doc_config_mpi>` 161 {ref}`support. <doc_config_accel>` [all …]
|
| H A D | license.md | 38 <mailto:petsc-dev@mcs.anl.gov> {ref}`mailing list <doc_mail>` and interact with us frequently to 39 ensure that your effort is well-directed. See the developers {ref}`documentation 42 PETSc is distributed under a 2-clause {ref}`BSD license <doc_license>` (see above). The 74 PETSc is now distributed under a 2-clause {ref}`BSD license <doc_license>`. This
|
| H A D | install.md | 6 Obtain PETSc via the repository or download the latest tarball: {ref}`download documentation <doc_d… 8 See {ref}`quick-start tutorial <tut_install>` for a step-by-step walk-through of the installation p… 30 your recommendations to <mailto:petsc-maint@mcs.anl.gov>. See bug report {ref}`documentation 89 different `$PETSC_ARCH` for each build. See multiple PETSc install {ref}`documentation 153 changing the value of `$PETSC_ARCH`). See multiple install {ref}`documentation 180 [BLAS/LAPACK] is the only **required** {ref}`external package <doc_externalsoftware>` 184 For any {ref}`external packages <doc_externalsoftware>` used with PETSc we highly 198 PETSc provides interfaces to various {ref}`external packages <doc_externalsoftware>`. One 202 PETSc `configure` has the ability to download and install these {ref}`external packages 213 The following modes can be used to download/install {ref}`external packages [all …]
|
| /petsc/src/dm/dt/dualspace/impls/refined/ |
| H A D | dualspacerefined.c | 55 PetscDualSpace_Refined *ref = (PetscDualSpace_Refined *)sp->data; in PetscDualSpaceDestroy_Refined() local 59 PetscCall(PetscFree(ref)); in PetscDualSpaceDestroy_Refined() 195 PetscDualSpace_Refined *ref; in PetscDualSpaceCreate_Refined() local 199 PetscCall(PetscNew(&ref)); in PetscDualSpaceCreate_Refined() 200 sp->data = ref; in PetscDualSpaceCreate_Refined()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex15.c | 145 Vec ref; in VecCompare() local 161 PetscCall(VecDuplicate(a, &ref)); in VecCompare() 162 PetscCall(VecCopy(a, ref)); in VecCompare() 163 PetscCall(VecAXPY(ref, -1.0, b)); in VecCompare() 164 PetscCall(VecMin(ref, &locmin[0], &min[0])); in VecCompare() 171 PetscCall(VecDestroy(&ref)); in VecCompare()
|
| /petsc/doc/community/ |
| H A D | mailing.md | 28 Before sending a bug report, please consult the {ref}`FAQ <doc_config_faq>` to determine 30 {ref}`performance tuning <ch_performance>` in the PETSc users manual for guidelines on 102 - For announcements regarding PETSc :ref:`releases <doc_download>` 121 Also see {ref}`doc_creepycrawly`.
|
| /petsc/doc/developers/ |
| H A D | articles.md | 16 :labelprefix: ref-
|
| H A D | documentation.md | 50 Set up your local Python environment (e.g., ref:`as above <sec_local_html_docs>`), then 136 See :ref:`link text <sec_short_name>` 140 …so that the text will be properly formatted in the {ref}`standalone PDF manual <sec_local_docs_lat… 153 …n particular, the use of [list-table](https://docutils.sourceforge.io/docs/ref/rst/directives.html… 155 … use [anonymous hyperlink references](https://docutils.sourceforge.io/docs/ref/rst/restructuredtex… 268 …/wgropp.cs.illinois.edu/projects/software/sowing/doctext/doctext.htm) and {ref}`manual_page_format…
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | overview.rst | 16 PETSc is easy to use for beginners [petsc-user-ref]_. Moreover, its 25 .. [petsc-user-ref] S. Balay, S. Abhyankar, M. Adams, S. Benson, J. Brown,
|