| /petsc/src/mat/tests/ |
| H A D | ex209f.F90 | 12 PetscInt three, one 19 three = 3 20 PetscCallA(MatSetSizes(A, three, three, three, three, ierr)) 21 PetscCallA(MatSetBlockSize(A, three, ierr)) 27 allocate (km(three, three)) 34 …PetscCallA(MatSetValuesBlocked(A, one, idxm, one, idxm, reshape(km, [three*three]), ADD_VALUES, ie…
|
| H A D | ex262f.F90 | 9 PetscInt three, one 19 three = 3 20 PetscCallA(MatSetSizes(A, three, three, PETSC_DECIDE, PETSC_DECIDE, ierr)) 21 PetscCallA(MatSetBlockSize(A, three, ierr)) 26 allocate (km(three, three)) 32 … PetscCallA(MatSetValues(B, one, idxm, one, idxmj, reshape(km, [three*three]), ADD_VALUES, ierr))
|
| H A D | ex144.c | 20 PetscScalar two = 4.0, three = 8.0, four = 16.0; in main() local 75 PetscCall(VecSetValues(fin, 1, &i, &three, INSERT_VALUES)); in main()
|
| H A D | ex157.c | 14 PetscScalar one = 1, two = 2, three = 3; in main() local
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex13.c | 8 PetscInt extent[3] = {1, 1, 1}, refine = 0, layers = 0, three; in main() local 17 …ent", "Number of replicas for each of three dimensions", NULL, extent, (three = 3, &three), NULL)); in main() 19 …ch of three dimensions", NULL, DMBoundaryTypes, (PetscEnum *)periodic, (three = 3, &three), NULL)); in main()
|
| /petsc/src/mat/tutorials/ |
| H A D | ex17f.F90 | 20 PetscInt, parameter :: zero = 0, one = 1, two = 2, three = 3 47 PetscCallA(MatSeqAIJSetPreallocation(A, three, PETSC_NULL_INTEGER_ARRAY, ierr)) 48 …PetscCallA(MatMPIAIJSetPreallocation(A, three, PETSC_NULL_INTEGER_ARRAY, two, PETSC_NULL_INTEGER_A… 49 PetscCallA(MatSeqBAIJSetPreallocation(A, one, three, PETSC_NULL_INTEGER_ARRAY, ierr)) 50 …PetscCallA(MatMPIBAIJSetPreallocation(A, one, three, PETSC_NULL_INTEGER_ARRAY, two, PETSC_NULL_INT… 63 PetscCallA(MatSetValues(A, one, [i], three, cols, vals, INSERT_VALUES, ierr))
|
| H A D | ex15f.F90 | 16 PetscInt, parameter :: one = 1, two = 2, three = 3 24 PetscCallA(MatSeqAIJSetPreallocation(A, three, PETSC_NULL_INTEGER_ARRAY, ierr)) 25 …PetscCallA(MatMPIAIJSetPreallocation(A, three, PETSC_NULL_INTEGER_ARRAY, two, PETSC_NULL_INTEGER_A… 49 PetscCallA(MatSetValues(A, one, [r], three, cols, vals, INSERT_VALUES, ierr))
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex40f90.F90 | 7 PetscInt pStart, pEnd, p, three 10 three = 3 18 PetscCallA(PetscSectionSetDof(section, p, three, ierr))
|
| H A D | ex3.c | 10 PetscScalar one = 1.0, two = 2.0, three = 3.0; in main() local 32 PetscCall(VecSetValues(y, 1, &idx, &three, INSERT_VALUES)); in main() 39 PetscCall(VecSetValues(y, 1, &idx, &three, INSERT_VALUES)); in main()
|
| H A D | ex19f.F90 | 14 PetscScalar one, two, three, dot 22 three = 3.0 54 PetscCallA(VecAXPY(y, three, x, ierr))
|
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex54f.F90 | 18 PetscInt one, three 22 three = 3 24 PetscCallA(MatSetSizes(mtx, PETSC_DECIDE, PETSC_DECIDE, DMS, three, ierr)) 55 PetscCallA(VecSetSizes(PTCX, PETSC_DECIDE, three, ierr))
|
| /petsc/src/sys/tutorials/ |
| H A D | ex5f90.F90 | 41 PetscInt three, int56 53 three = 3 69 …PetscCallA(PetscBagRegisterRealArray(bag, data%rarray, three, 'rarray', 'rarray help message', ier… 74 …PetscCallA(PetscBagRegisterBoolArray(bag, data%tarray, three, 'tarray', 'tarray help message', ier…
|
| /petsc/src/vec/vec/tutorials/ |
| H A D | ex1f90.F90 | 22 PetscScalar one, two, three 33 three = 3.0 70 PetscCallA(VecSet(z(3), three, ierr)) 109 PetscCallA(VecAXPY(y, three, x, ierr)) 158 dots(2) = three
|
| H A D | ex20f90.F90 | 23 PetscScalar one, two, three 35 three = 3.0 72 PetscCallA(VecSet(z(3), three, ierr)) 111 PetscCallA(VecAXPY(y, three, x, ierr)) 160 dots(2) = three
|
| H A D | ex1.c | 18 PetscScalar one = 1.0, two = 2.0, three = 3.0, dots[3], dot; in main() local 55 PetscCall(VecSet(z[2], three)); in main() 88 PetscCall(VecAXPY(y, three, x)); in main() 138 dots[1] = three; in main()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex45f.F90 | 108 PetscInt one, three 114 three = 3 118 …SC_COMM_WORLD, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_STAR, three, three, PETSC_DECIDE, …
|
| H A D | ex42-mgfs.opts | 9 ## Set three blocks for fieldsplit - u,v,w,p
|
| H A D | ex42-mgfs2.opts | 9 ## Set three blocks for fieldsplit - u,v,w,p
|
| /petsc/src/ts/tutorials/ |
| H A D | ex22f.F90 | 207 PetscReal one, two, three, four, six, twelve 213 three = 3.0 222 third = one/three 223 twothird = two/three
|
| H A D | ex22f_mf.F90 | 236 PetscReal one, two, three, four, six, twelve 242 three = 3.0 250 third = one/three 251 twothird = two/three
|
| /petsc/doc/tutorials/meshing/ |
| H A D | guide_to_subsurface.md | 18 We can see that there are two 3-cells, meaning three-dimensional cells, and from the `celltype` lab… 49 We can similarly look at this in parallel. Test 2 uses three refinements and three extrusion layers…
|
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | eptorsion3.c | 260 PetscReal hx = user->hx, hy = user->hy, area, three = 3.0, p5 = 0.5; in FormFunction() local 262 PetscReal v, cdiv3 = user->param / three; in FormFunction() 330 PetscReal zero = 0.0, p5 = 0.5, three = 3.0, area, val; in FormGradient() local 334 PetscReal v, cdiv3 = user->param / three; in FormGradient()
|
| H A D | eptorsion1.c | 244 PetscReal hx = user->hx, hy = user->hy, area, three = 3.0, p5 = 0.5; in FormFunction() local 246 PetscReal v, cdiv3 = user->param / three; in FormFunction() 314 PetscReal zero = 0.0, p5 = 0.5, three = 3.0, area, val; in FormGradient() local 318 PetscReal v, cdiv3 = user->param / three; in FormGradient()
|
| /petsc/src/tao/complementarity/tutorials/ |
| H A D | minsurf1.c | 428 PetscReal one = 1.0, two = 2.0, three = 3.0, tol = 1e-10; in MSA_BoundaryConditions() local 475 nf1 = u1 + u1 * u2 * u2 - u1 * u1 * u1 / three - xt; in MSA_BoundaryConditions() 476 nf2 = -u2 - u1 * u1 * u2 + u2 * u2 * u2 / three - yt; in MSA_BoundaryConditions()
|
| /petsc/doc/manual/ |
| H A D | versionchecking.md | 6 is defined in `$PETSC_DIR/include/petscversion.h` with the three macros
|