Home
last modified time | relevance | path

Searched refs:bases (Results 1 – 7 of 7) sorted by relevance

/petsc/src/dm/impls/da/
H A Dda3.c213 PetscInt *bases, *ldims, base, x_t, y_t, z_t, s_t, count, s_x, s_y, s_z; in DMSetUp_DA_3D() local
461 PetscCall(PetscMalloc2(size + 1, &bases, size, &ldims)); in DMSetUp_DA_3D()
463 bases[0] = 0; in DMSetUp_DA_3D()
464 for (i = 1; i <= size; i++) bases[i] = ldims[i - 1]; in DMSetUp_DA_3D()
465 for (i = 1; i <= size; i++) bases[i] += bases[i - 1]; in DMSetUp_DA_3D()
466 base = bases[rank] * dof; in DMSetUp_DA_3D()
818 s_t = bases[n0] + x_t * y_t * z_t - (s_y - i) * x_t - s_x - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D()
819 … if (twod && (s_t < 0)) s_t = bases[n0] + x_t * y_t * z_t - (s_y - i) * x_t - s_x; /* 2D case */ in DMSetUp_DA_3D()
826 s_t = bases[n1] + x_t * y_t * z_t - (s_y + 1 - i) * x_t - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D()
827 … if (twod && (s_t < 0)) s_t = bases[n1] + x_t * y_t * z_t - (s_y + 1 - i) * x_t; /* 2D case */ in DMSetUp_DA_3D()
[all …]
H A Dda2.c204 PetscInt xbase, *bases, *ldims, j, x_t, y_t, s_t, base, count; in DMSetUp_DA_2D() local
374 PetscCall(PetscMalloc2(size + 1, &bases, size, &ldims)); in DMSetUp_DA_2D()
376 bases[0] = 0; in DMSetUp_DA_2D()
377 for (i = 1; i <= size; i++) bases[i] = ldims[i - 1]; in DMSetUp_DA_2D()
378 for (i = 1; i <= size; i++) bases[i] += bases[i - 1]; in DMSetUp_DA_2D()
379 base = bases[rank] * dof; in DMSetUp_DA_2D()
530 xbase = bases[rank]; in DMSetUp_DA_2D()
535 s_t = bases[n0] + x_t * y_t - (s_y - i) * x_t - s_x; in DMSetUp_DA_2D()
542 s_t = bases[n1] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D()
545 for (j = 0; j < x; j++) idx[nn++] = bases[rank] + x * (s_y - i + 1) + j; in DMSetUp_DA_2D()
[all …]
/petsc/src/binding/petsc4py/
H A Dmakefile86 …stubtest petsc4py --ignore-missing-stub --allowlist conf/stubtest-allowlist --ignore-disjoint-bases
/petsc/doc/changes/
H A D320.md247 - Add `PETSCDUALSPACESUM` for a finite element dual basis that is the sum of other dual bases
/petsc/doc/developers/
H A Dbuildsystem.md117 The cognitive load is usually larger for larger code bases,
/petsc/doc/tutorials/physics/
H A Dguide_to_stokes.md885 We can instead use geometric multigrid, and we would hope get more accurate coarse bases. The `-dm_…
/petsc/doc/
H A Dpetsc.bib638 title = {On the generation of {K}rylov subspace bases},
18063 title = {Energy optimization of algebraic multigrid bases},