Home
last modified time | relevance | path

Searched refs:getSize (Results 1 – 25 of 27) sorted by relevance

12

/petsc/src/binding/petsc4py/test/
H A Dtest_lgmap.py9 comm_size = comm.getSize()
25 size = self.lgmap.getSize()
29 size = self.lgmap.getSize()
38 if self.lgmap.getComm().getSize() == 1:
45 idxin = list(range(self.lgmap.getSize()))
51 is_in = PETSc.IS().createStride(self.lgmap.getSize())
92 comm_size = comm.getSize()
109 size = self.lgmap.getSize()
117 size = self.lgmap.getSize()
125 size = self.lgmap.getSize()
[all …]
H A Dtest_comm.py35 self.assertRaises(ValueError, PETSc.COMM_NULL.getSize)
36 self.assertTrue(PETSc.COMM_WORLD.getSize() >= 1)
37 self.assertEqual(PETSc.COMM_SELF.getSize(), 1)
45 self.assertEqual(PETSc.COMM_SELF.getSize(), PETSc.COMM_SELF.size)
47 self.assertEqual(PETSc.COMM_WORLD.getSize(), PETSc.COMM_WORLD.size)
72 self.assertEqual(cw.Get_size(), PETSc.COMM_WORLD.getSize())
H A Dtest_vec.py41 self.assertAlmostEqual(abs(d), self.vec.getSize())
44 self.assertAlmostEqual(abs(d), self.vec.getSize())
53 self.assertAlmostEqual(n1, self.vec.getSize())
54 self.assertAlmostEqual(n2, sqrt(self.vec.getSize()))
72 self.assertAlmostEqual(n2, sqrt(self.vec.getSize()))
77 self.assertEqual(self.vec.sum(), self.vec.getSize())
110 sz = self.vec.getSize()
168 self.assertAlmostEqual(abs(self.vec.sum()), 2 * self.vec.getSize())
170 self.assertAlmostEqual(abs(self.vec.sum()), self.vec.getSize())
231 n = x.getSize()
[all …]
H A Dtest_mat_dense.py53 M, N = self.A.getSize()
61 self.assertEqual(self.A.getLocalSize(), B.getSize())
73 M, N = self.A.getSize()
79 self.assertTrue(B.getSize(), (ren - rst, cen - cst))
83 self.assertTrue(B.getSize(), (ren - rst, cen - cst))
93 for i in range(self.A.getSize()[1]):
H A Dtest_mat_schur.py8 comm_size = COMM.getSize()
22 M, N = S.getSize()
H A Dtest_is.py21 gsize = self.iset.getSize()
58 if self.iset.getComm().getSize() > 1:
H A Dtest_dmda.py242 if PETSc.COMM_WORLD.getSize() > 6:
263 if PETSc.COMM_WORLD.getSize() > 6:
279 if PETSc.COMM_WORLD.getSize() > 6:
583 if PETSc.COMM_WORLD.getSize() > 1:
H A Dtest_dmplex.py220 if self.DIM == 2 and PETSc.COMM_WORLD.getSize() > 6:
233 if self.DIM == 3 and PETSc.COMM_WORLD.getSize() > 4:
H A Dtest_mat_aij.py244 self.assertEqual(self.A.getLocalSize(), B.getSize())
351 sizecommA = self.A.getComm().getSize()
353 sizecommAred = Ared.getComm().getSize()
H A Dtest_mat_py.py408 (1, 2, 3), (10, 20, 30), self.A.getSize()[0], dtype=PETSc.RealType
/petsc/src/binding/petsc4py/demo/hpddm/
H A Dsaddle_point.py32 size = PETSc.COMM_WORLD.getSize()
76 N, _ = A[0].getSize()
78 M, _ = A[3].getSize()
H A Dhpddm.py16 if PETSc.COMM_WORLD.getSize() != 4:
/petsc/src/ksp/ksp/tutorials/
H A Dexample100.py23 M, N = A.getSize()
46 M, N = A.getSize()
52 M, N = A.getSize()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DComm.pyx99 def getSize(self) -> int: member in Comm
138 return self.getSize()
173 Get_size = getSize
H A DIS.pyx436 def getSize(self) -> int: member in IS
478 IS.getLocalSize, IS.getSize
1036 IS.getSize
1040 return self.getSize()
1333 def getSize(self) -> int: member in LGMap
1656 LGMap.getSize
1660 return self.getSize()
H A DVec.pyx1093 def getSize(self) -> int: member in Vec
1114 setSizes, getSize, petsc.VecGetLocalSize
1128 getSize, getLocalSize, petsc.VecGetLocalSize, petsc.VecGetSize
3607 return self.getSize()
/petsc/src/sys/tests/
H A Dex45.cxx50 const int size = comm->getSize(); in main()
H A Dex46.cxx61 const int size = comm->getSize(); in main()
/petsc/src/binding/petsc4py/demo/legacy/poisson3d/
H A Ddel2mat.py14 mat_size = A.getSize()
H A Dpoisson3d.py8 assert PETSc.COMM_WORLD.getSize() == 1
/petsc/src/binding/petsc4py/demo/regressor/
H A Dtest_regressor.py15 size = comm.getSize()
/petsc/src/binding/petsc4py/demo/legacy/petsc-examples/ksp/
H A Dex23.py24 size = comm.getSize()
H A Dex2.py28 size = comm.getSize()
/petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/
H A DGccAst.pm1192 if(my $Size = getSize($TypeId)) {
1585 if(my $Size = getSize($TypeId))
1926 if(my $Size = getSize($TypeId))
2142 if(my $Size = getSize($TypeId))
3386 sub getSize($) subroutine
3413 return getSize($_[0]);
/petsc/src/dm/impls/plex/
H A Dplexinterpolate.c52 PetscInt getSize = 0; in DMPlexGetRawFaces_Internal() local
59 if (faceTypes) getSize += maxSize; in DMPlexGetRawFaces_Internal()
60 if (faceSizes) getSize += maxSize; in DMPlexGetRawFaces_Internal()
61 if (faces) getSize += PetscSqr(maxSize); in DMPlexGetRawFaces_Internal()
62 PetscCall(DMGetWorkArray(dm, getSize, MPIU_INT, &tmp)); in DMPlexGetRawFaces_Internal()

12