Home
last modified time | relevance | path

Searched refs:nj (Results 1 – 12 of 12) sorted by relevance

/petsc/src/dm/partitioner/impls/simple/
H A Dpartsimple.c50 PetscInt Np = 1, Nr, np, nk, nj, ni, pk, pj, pi, ck, cj, ci, i; in PetscPartitionerPartition_Simple_Grid() local
86 for (nj = 0; nj < nodes[1]; ++nj) { in PetscPartitionerPartition_Simple_Grid()
88 const PetscInt nid = (nk * nodes[1] + nj) * nodes[0] + ni; in PetscPartitionerPartition_Simple_Grid()
99 …const PetscInt cid = (((nk * procs[2] + pk) * pcells[2] + ck) * cells[1] + ((nj * procs[1] + pj) *… in PetscPartitionerPartition_Simple_Grid()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscmat.pxi850 cdef PetscInt nj=0, *j=NULL
854 oj = iarray_i(oj, &nj, &j)
865 if (i[ni-1] != nj):
867 (toInt(nj), toInt(i[ni-1])))
868 if v != NULL and (nj*bs*bs != nv):
870 (toInt(nv), toInt(nj*bs*bs)))
930 cdef PetscInt nj=0, *j=NULL
934 oj = iarray_i(oj, &nj, &j)
936 if ni*nj*rbs*cbs != nv: raise ValueError(
937 "incompatible array sizes: ni=%d, nj=%d, nv=%d" %
[all …]
H A DPC.pyx2130 cdef PetscInt nj=0, *j=NULL
2133 oj = iarray_i(oj, &nj, &j)
2137 if (i[ni-1] != nj):
2139 (toInt(nj), toInt(i[ni-1])))
H A DMat.pyx1074 cdef PetscInt nj=0, noj=0, *j=NULL, *oj=NULL
1076 pj = iarray_i(pj, &nj, &j) # Column indices (diagonal)
1086 if nj != nv: raise ValueError(
1088 (toInt(nj), toInt(nv)))
/petsc/src/dm/tutorials/
H A Dswarm_ex1.c181 PetscInt is, js, ni, nj, overlap; in ex1_3() local
192 PetscCall(DMDAGetCorners(dmcell, &is, &js, NULL, &ni, &nj, NULL)); in ex1_3()
204 PetscCall(DMSwarmSetLocalSizes(dms, ni * nj * 4, 4)); in ex1_3()
222 for (j = js; j < js + nj; j++) { in ex1_3()
344 PetscInt is, js, ni, nj, overlap, nn; in ex1_4() local
359 PetscCall(DMDAGetCorners(dmcell, &is, &js, NULL, &ni, &nj, NULL)); in ex1_4()
370 PetscCall(DMSwarmSetLocalSizes(dms, ni * nj * 4, 4)); in ex1_4()
388 for (j = js; j < js + nj; j++) { in ex1_4()
H A Dex15.c72 PetscInt i, j, k, l, si, sj, sk, ni, nj, nk, M, N, dof; in DMDAVecGenerateEntries() local
76 PetscCall(DMDAGetCorners(dm, &si, &sj, &sk, &ni, &nj, &nk)); in DMDAVecGenerateEntries()
79 for (j = sj; j < sj + nj; j++) { in DMDAVecGenerateEntries()
/petsc/src/ksp/pc/impls/telescope/
H A Dtelescope_dmda.c127 PetscInt i, j, si, sj, ni, nj, M, N, Ml, Nl, c, nidx; in PCTelescopeSetUp_dmda_repart_coors2d() local
146 PetscCall(DMDAGetCorners(subdm, &si, &sj, NULL, &ni, &nj, NULL)); in PCTelescopeSetUp_dmda_repart_coors2d()
148 Nl = nj; in PCTelescopeSetUp_dmda_repart_coors2d()
151 ni = nj = 0; in PCTelescopeSetUp_dmda_repart_coors2d()
158 for (j = sj; j < sj + nj; j++) { in PCTelescopeSetUp_dmda_repart_coors2d()
218 PetscInt i, j, k, si, sj, sk, ni, nj, nk, M, N, P, Ml, Nl, Pl, c, nidx; in PCTelescopeSetUp_dmda_repart_coors3d() local
239 PetscCall(DMDAGetCorners(subdm, &si, &sj, &sk, &ni, &nj, &nk)); in PCTelescopeSetUp_dmda_repart_coors3d()
241 Nl = nj; in PCTelescopeSetUp_dmda_repart_coors3d()
245 ni = nj = nk = 0; in PCTelescopeSetUp_dmda_repart_coors3d()
254 for (j = sj; j < sj + nj; j++) { in PCTelescopeSetUp_dmda_repart_coors3d()
/petsc/src/snes/tutorials/
H A Dex30.c96 PetscInt corner, ni, nj, jlid, jfault, inose; member
153 …PetscCall(DMDACreate2d(comm, grid.bx, grid.by, grid.stencil, grid.ni, grid.nj, PETSC_DECIDE, PETSC… in main()
359 PetscInt ilim = grid->ni - 1, jlim = grid->nj - 1; in CalcSecInv()
470 PetscInt jlim = grid->nj - 1; in XMomentumResidual()
588 PetscInt ilim = grid->ni - 1, jlim = grid->nj - 1, jlid = grid->jlid; in EnergyResidual()
646 PetscInt ilim = grid->ni - 1, jlim = grid->nj - 1; in ShearStress()
681 PetscInt ilim = grid->ni - 1, jlim = grid->nj - 1, ivisc; in XNormalStress()
720 PetscInt ilim = grid->ni - 1, jlim = grid->nj - 1, ivisc; in ZNormalStress()
786 grid->nj = (PetscInt)(param->depth / grid->dz + 3.0); /* gridpoints*/ in SetParams()
787 param->depth = grid->dz * (grid->nj - 2); /* km */ in SetParams()
[all …]
/petsc/src/snes/tutorials/output/
H A Dex30_1.out8 [ni,nj] = 18, 18 [dx,dz] = 20., 20. km
/petsc/src/dm/impls/da/
H A Dgr2.c730 PetscInt dim, ni, nj, nk, pi, pj, pk, dof, n; in VecView_MPI_DA() local
736 …PetscCall(DMDAGetInfo(da, &dim, &ni, &nj, &nk, &pi, &pj, &pk, &dof, NULL, NULL, NULL, NULL, NULL)); in VecView_MPI_DA()
740 …, "#$$ tmp = reshape(tmp,%" PetscInt_FMT ",%" PetscInt_FMT ",%" PetscInt_FMT ");\n", dof, ni, nj)); in VecView_MPI_DA()
741 …mp,%" PetscInt_FMT ",%" PetscInt_FMT ",%" PetscInt_FMT ",%" PetscInt_FMT ");\n", dof, ni, nj, nk)); in VecView_MPI_DA()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas8302 (omega/nj 0)
9677 (beach-dir-nj . 0)
9684 …(beach-dir-list ((ni . 1) (nj . 0) (nk . 0) (xe . 0) (len . 1)) ((ni . 1) (nj . 0) (nk . 0) (xe . …
9732 (nj . 0)
9854 (q-nj (constant . 0) (profile "" ""))
10048 (nj . 0)
10170 (q-nj (constant . 0) (profile "" ""))
10364 (nj . 0)
10486 (q-nj (constant . 0) (profile "" ""))
10680 (nj . 0)
[all …]
/petsc/src/ts/utils/dmplexlandau/
H A Dplexland.c1064 PetscReal nj = ctx->n[jjj] * ctx->n_0; in makeLambdas() local
1065 …+ muj) / (mui * Tj_ev + muj * Ti_ev) * PetscSqrtReal(ni * Zi * Zi / Ti_ev + nj * Zj * Zj / Tj_ev)); in makeLambdas()