| /petsc/src/dm/impls/plex/exodusii/ |
| H A D | plexexodusii2.c | 769 PetscInt num_cs, cs; in DMView_PlexExodusII() local 870 for (cs = 0; cs < num_cs; ++cs) { in DMView_PlexExodusII() 876 PetscCall(DMLabelGetStratumIS(csLabel, csIdx[cs], &stratumIS)); in DMView_PlexExodusII() 883 type[cs] = SEGMENT; in DMView_PlexExodusII() 887 type[cs] = TRI; in DMView_PlexExodusII() 889 type[cs] = QUAD; in DMView_PlexExodusII() 894 type[cs] = TET; in DMView_PlexExodusII() 896 type[cs] = HEX; in DMView_PlexExodusII() 902 if ((degree == 2) && (type[cs] == SEGMENT)) numNodes += csSize; in DMView_PlexExodusII() 903 if ((degree == 2) && (type[cs] == QUAD)) numNodes += csSize; in DMView_PlexExodusII() [all …]
|
| /petsc/src/dm/impls/da/ |
| H A D | dageometry.c | 39 PetscErrorCode DMGetLocalBoundingBox_DA(DM da, PetscReal lmin[], PetscReal lmax[], PetscInt cs[], P… in DMGetLocalBoundingBox_DA() argument 71 if (cs) cs[d] = lmin[d]; in DMGetLocalBoundingBox_DA() 117 if (cs) { in DMGetLocalBoundingBox_DA() 118 cs[0] = xs; in DMGetLocalBoundingBox_DA() 119 if (dim > 1) cs[1] = ys; in DMGetLocalBoundingBox_DA() 120 if (dim > 2) cs[2] = zs; in DMGetLocalBoundingBox_DA() 133 PetscInt cs[2], ce[2]; in private_DMDALocatePointsIS_2D_Regular() local 142 PetscCall(DMGetLocalBoundingBox_DA(dmregular, gmin_l, gmax_l, cs, ce)); in private_DMDALocatePointsIS_2D_Regular() 143 xs = cs[0]; in private_DMDALocatePointsIS_2D_Regular() 144 ys = cs[1]; in private_DMDALocatePointsIS_2D_Regular() [all …]
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_comm.py | 57 cs = PETSc.Comm(MPI.COMM_SELF) 60 self.assertEqual(cs, PETSc.COMM_SELF) 66 cs = PETSc.COMM_SELF.tompi4py() 67 self.assertTrue(isinstance(cs, MPI.Intracomm)) 68 self.assertEqual(cs.Get_size(), 1) 69 self.assertEqual(cs.Get_rank(), 0)
|
| H A D | test_mat_aij.py | 283 cs, ce = self.A.getOwnershipRangeColumn() 285 cols = N.array(range(cs, ce), dtype=PETSc.IntType) 309 cs, ce = self.A.getOwnershipRangeColumn() 311 cols = N.array(range(cs, ce), dtype=PETSc.IntType)
|
| H A D | test_vec.py | 248 cs, ce = A.getOwnershipRangeColumn() 256 for i in range(cs, ce):
|
| /petsc/doc/manualpages/doctext/ |
| H A D | petsc.group | 15 O(\.|mar) Ghattas!http://www.cs.cmu.edu/~oghattas/ 17 M(\.|ark)( F\.)? Adams!http://www.cs.berkeley.edu/~madams 18 X.-C. Cai!http://www.cs.colorado.edu/homes/cai 20 Omar Ghattas!http://www-2.cs.cmu.edu/~oghattas
|
| /petsc/src/mat/graphops/color/utils/ |
| H A D | bipartite.c | 7 PetscInt i, j, rs, re, cs, ce, cn; in MatColoringCreateBipartiteGraph() local 17 PetscCall(MatGetOwnershipRangeColumn(m, &cs, &ce)); in MatColoringCreateBipartiteGraph() 18 cn = ce - cs; in MatColoringCreateBipartiteGraph()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex54f.F90 | 263 PetscReal xx, yy, psi, cs, sn, c2, s2, dd(2, 2) 273 cs = cos(psi) 275 c2 = cs*cs 277 cs = cs*sn 281 dd(1, 2) = cs*(ev(1) - ev(2))
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5xdmf.c | 34 PetscSection cs; in DMPlexInvertCells_XDMF_Private() local 40 PetscCall(DMPlexGetConeSection(dm, &cs)); in DMPlexInvertCells_XDMF_Private() 46 PetscCall(PetscSectionGetDof(cs, p, &numCorners)); in DMPlexInvertCells_XDMF_Private() 47 PetscCall(PetscSectionGetOffset(cs, p, &o)); in DMPlexInvertCells_XDMF_Private()
|
| /petsc/src/dm/interface/ |
| H A D | dmperiodicity.c | 335 PetscSection cs, csDG; in DMLocalizeCoordinates() local 372 PetscCall(DMGetCoordinateSection(dm, &cs)); in DMLocalizeCoordinates() 374 PetscCall(PetscSectionGetChart(cs, &sStart, &sEnd)); in DMLocalizeCoordinates() 378 PetscCall(PetscSectionGetFieldComponents(cs, 0, &Nc)); in DMLocalizeCoordinates() 395 PetscCall(DMPlexVecGetClosure(cplex, cs, coordinates, c, &dof, &cellCoords)); in DMLocalizeCoordinates() 409 PetscCall(DMPlexVecRestoreClosure(cplex, cs, coordinates, c, &dof, &cellCoords)); in DMLocalizeCoordinates() 432 PetscCall(DMPlexVecGetClosure(cplex, cs, coordinates, c, &dof, &cellCoords)); in DMLocalizeCoordinates() 448 PetscCall(DMPlexVecRestoreClosure(cplex, cs, coordinates, c, &dof, &cellCoords)); in DMLocalizeCoordinates()
|
| H A D | dmcoordinates.c | 669 PetscSection cs, newcs; in DMGetCoordinatesLocalTuple() local 681 PetscCall(DMGetLocalSection(cdm, &cs)); in DMGetCoordinatesLocalTuple() 684 …PetscCheck(cdm && cs, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONGSTATE, "DM not supporte… in DMGetCoordinatesLocalTuple() 686 …PetscCall(PetscSectionExtractDofsFromArray(cs, MPIU_SCALAR, arr, p, &newcs, pCoord ? ((void **)&ne… in DMGetCoordinatesLocalTuple() 881 …calBoundingBox_Coordinates(DM dm, PetscReal lmin[], PetscReal lmax[], PetscInt cs[], PetscInt ce[]) in DMGetLocalBoundingBox_Coordinates() argument
|
| /petsc/doc/miscellaneous/ |
| H A D | acknowledgements.md | 62 <http://www.cs.sandia.gov/CRF/chac.html> 76 <https://www-users.cs.umn.edu/~karypis/metis/> 99 <https://www.cs.cmu.edu/~quake/triangle.html> 104 <http://www.cs.sandia.gov/zoltan/> 116 - [Sowing text processing tools developed by Bill Gropp](http://wgropp.cs.illinois.edu/projects/sof…
|
| H A D | prizes.md | 59 - [Larisa Goldmints](http://www.cs.cmu.edu/afs/cs/usr/larisa/www/larisa.html), CMU
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexreorder.c | 198 static PetscErrorCode DMPlexRemapCoordinates_Private(IS perm, PetscSection cs, Vec coordinates, Pet… in DMPlexRemapCoordinates_Private() argument 206 PetscCall(PetscSectionPermute(cs, perm, csNew)); in DMPlexRemapCoordinates_Private() 218 PetscCall(PetscSectionGetOffset(cs, p, &off)); in DMPlexRemapCoordinates_Private() 338 PetscSection cs, csNew; in DMPlexPermute() local 341 PetscCall(DMGetCoordinateSection(dm, &cs)); in DMPlexPermute() 343 PetscCall(DMPlexRemapCoordinates_Private(perm, cs, coordinates, &csNew, &coordinatesNew)); in DMPlexPermute() 355 PetscCall(DMGetCellCoordinateSection(dm, &cs)); in DMPlexPermute() 357 PetscCall(DMPlexRemapCoordinates_Private(perm, cs, coordinates, &csNew, &coordinatesNew)); in DMPlexPermute()
|
| H A D | plexgmsh.c | 1577 PetscSection cs, csCell = NULL; in DMPlexCreateGmsh() local 1997 PetscCall(DMGetLocalSection(cdm, &cs)); in DMPlexCreateGmsh() 1998 PetscCall(PetscSectionClone(cs, §ion)); in DMPlexCreateGmsh() 2049 PetscCall(DMGetCoordinateSection(*dm, &cs)); in DMPlexCreateGmsh() 2050 PetscCall(PetscSectionSetNumFields(cs, 1)); in DMPlexCreateGmsh() 2051 PetscCall(PetscSectionSetFieldComponents(cs, 0, coordDim)); in DMPlexCreateGmsh() 2052 PetscCall(PetscSectionSetChart(cs, numCells, numCells + numVerts)); in DMPlexCreateGmsh() 2054 PetscCall(PetscSectionSetDof(cs, v, coordDim)); in DMPlexCreateGmsh() 2055 PetscCall(PetscSectionSetFieldDof(cs, v, 0, coordDim)); in DMPlexCreateGmsh() 2057 PetscCall(PetscSectionSetUp(cs)); in DMPlexCreateGmsh() [all …]
|
| /petsc/doc/install/ |
| H A D | external_software.md | 16 - [Chaco](http://www.cs.sandia.gov/CRF/chac.html) A graph partitioning package. 54 - PETSc can be instrumented using the [TAU](http://www.cs.uoregon.edu/research/paracomp/tau/tautool… 59 - [Sowing](http://wgropp.cs.illinois.edu/projects/software/sowing/index.html)
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | classical.c | 190 PetscInt fn, cn, fs, fe, cs, ce, i, j, ncols, col, row_f, row_c, cmax = 0, idx, noff; in PCGAMGProlongator_Classical_Direct() local 237 PetscCall(VecGetOwnershipRange(C, &cs, &ce)); in PCGAMGProlongator_Classical_Direct() 243 lcid[i] = cs + cn; in PCGAMGProlongator_Classical_Direct() 562 PetscInt fs, fe, cs, ce, nl, i, j, k, li, lni, ci, ncols, maxcols, fn, cn, cid; in PCGAMGProlongator_Classical_Standard() local 608 PetscCall(VecGetOwnershipRange(cv, &cs, &ce)); in PCGAMGProlongator_Classical_Standard() 613 gcid[i] = cs + cn; in PCGAMGProlongator_Classical_Standard() 658 if (lni >= cs && lni < ce) { in PCGAMGProlongator_Classical_Standard() 671 if (lni >= cs && lni < ce) { in PCGAMGProlongator_Classical_Standard() 803 PetscInt f, s, n, cf, cs, i, idx; in PCGAMGOptProlongator_Classical_Jacobi() local 821 PetscCall(MatGetOwnershipRangeColumn(*P, &cs, &cf)); in PCGAMGOptProlongator_Classical_Jacobi()
|
| /petsc/src/ksp/ksp/impls/minres/ |
| H A D | minres.c | 101 …PetscReal zero = 0.0, dbar, dltan = 0.0, dlta, cs = -1.0, sn = 0.0, epln, eplnn = 0.0, gbar, dl… in KSPSolve_MINRES() local 209 dlta = cs * dbar + sn * alpha; in KSPSolve_MINRES() 210 gbar = sn * dbar - cs * alpha; in KSPSolve_MINRES() 212 dltan = -cs * betan; in KSPSolve_MINRES() 219 if (cs * gbar >= 0.0) { in KSPSolve_MINRES() 220 …PetscCall(PetscInfo(ksp, "Detected negative curvature c_nm1 %g, gbar %g\n", (double)cs, (double)gb… in KSPSolve_MINRES() 225 PetscCall(VecAXPBY(RN, -phi * cs, PetscSqr(sn), V)); in KSPSolve_MINRES() 233 SymOrtho(gbar, betan, &cs, &sn, &gama); in KSPSolve_MINRES() 254 tau = cs * phi; in KSPSolve_MINRES()
|
| /petsc/ |
| H A D | .mailmap | 77 Peter Brune <brune@uchicago.edu> <brune@cs.uchicago.edu> 101 Victor Eijkhout <eijkhout@tacc.utexas.edu> <victor@albook1g5vle.cs.utk.edu> 102 Victor Eijkhout <eijkhout@tacc.utexas.edu> <victor@tibook500ve.cs.utk.edu> 104 Victor Eijkhout <eijkhout@tacc.utexas.edu> <victorle@tibook500ve.cs.utk.edu>
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Space.pyx | 334 cdef PetscInt cs = asInt(s) 335 CHKERR(PetscSpaceSumGetSubspace(self.space, cs, &subsp.space)) 355 cdef PetscInt cs = asInt(s) 356 CHKERR(PetscSpaceSumSetSubspace(self.space, cs, subsp.space)) 407 cdef PetscInt cs = asInt(s) 408 CHKERR(PetscSpaceTensorSetSubspace(self.space, cs, subsp.space)) 425 cdef PetscInt cs = asInt(s) 427 CHKERR(PetscSpaceTensorGetSubspace(self.space, cs, &subsp.space))
|
| /petsc/src/snes/impls/al/ |
| H A D | al.c | 407 PetscReal as, bs, cs; in SNESSolve_NEWTONAL() local 429 cs = b0 * b0 - 4 * a0 * c0; in SNESSolve_NEWTONAL() 431 discriminant = cs + bs * deltaS + as * deltaS * deltaS; in SNESSolve_NEWTONAL() 438 PetscQuadraticRoots(as, bs, cs, &x1, &deltaS); in SNESSolve_NEWTONAL()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex8.c | 289 const PetscReal cs = PetscCosReal(psi), ss = PetscSinReal(psi); in CheckCell() local 290 R[0] = ct * cs; in CheckCell() 291 R[1] = sp * st * cs - cp * ss; in CheckCell() 292 R[2] = sp * ss + cp * st * cs; in CheckCell() 294 R[4] = cp * cs + sp * st * ss; in CheckCell() 295 R[5] = cp * st * ss - sp * cs; in CheckCell()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex77.c | 270 PetscSection cs; in CreateMesh() local 287 PetscCall(DMGetLocalSection(cdm, &cs)); in CreateMesh() 291 PetscCall(DMPlexVecGetClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in CreateMesh() 302 PetscCall(DMPlexVecRestoreClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in CreateMesh()
|
| H A D | ex56.c | 253 PetscSection cs; in main() local 260 PetscCall(DMGetLocalSection(cdm, &cs)); in main() 267 PetscCall(DMPlexVecGetClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in main() 279 PetscCall(DMPlexVecRestoreClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in main()
|
| /petsc/src/ksp/pc/impls/telescope/ |
| H A D | telescope.c | 505 PetscMPIInt csize_fine = 0, csize_coarse_partition = 0, cs[2], csg[2], cnt = 0; in PCSetUp_Telescope() local 521 cs[0] = csize_fine; in PCSetUp_Telescope() 522 cs[1] = csize_coarse_partition; in PCSetUp_Telescope() 523 PetscCallMPI(MPIU_Allreduce(cs, csg, 2, MPI_INT, MPI_MAX, comm_fine)); in PCSetUp_Telescope()
|