Home
last modified time | relevance | path

Searched refs:coord (Results 1 – 24 of 24) sorted by relevance

/petsc/src/dm/impls/stag/tests/
H A Dex4.c11 Vec coord; in main() local
30 PetscCall(DMGetCoordinates(dm, &coord)); in main()
31 PetscCall(VecView(coord, PETSC_VIEWER_STDOUT_WORLD)); in main()
/petsc/src/ksp/ksp/tutorials/
H A Dex54f.F9038 PetscReal::coord(2, 4), dd(2, 2), ev(3), blb(2)
115 coord(1, 1) = x; coord(2, 1) = y
116 coord(1, 2) = x + h; coord(2, 2) = y
117 coord(1, 3) = x + h; coord(2, 3) = y + h
118 coord(1, 4) = x; coord(2, 4) = y + h
122 call shp2dquad(sg(1, ll), sg(2, ll), coord, shp, xsj, f2)
124 call thfx2d(ev, coord, shp, dd, f2, f2, f4, ex54_psi)
/petsc/src/dm/impls/network/tests/
H A Dex2.c47 PetscScalar *coord; in StarGraphSetCoordinates() local
65 PetscCall(VecGetArray(Coord, &coord)); in StarGraphSetCoordinates()
72 coord[off] = 0.0; in StarGraphSetCoordinates()
73 coord[off + 1] = 0.0; in StarGraphSetCoordinates()
76 coord[off] = PetscCosReal(theta * (vglobal - 1)); in StarGraphSetCoordinates()
77 coord[off + 1] = PetscSinReal(theta * (vglobal - 1)); in StarGraphSetCoordinates()
80 PetscCall(VecRestoreArray(Coord, &coord)); in StarGraphSetCoordinates()
/petsc/src/dm/impls/plex/tests/
H A Dex26.c313 Vec coord; in main() local
321 PetscCall(DMGetCoordinatesLocal(dmUA, &coord)); in main()
331 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
339 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
363 Vec coord; in main() local
412 PetscCall(DMGetCoordinatesLocal(dmS, &coord)); in main()
429 PetscCall(DMPlexVecGetClosure(dmS, coordSection, coord, cellID[cell], &cdimCoord, &xyz)); in main()
438 PetscCall(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID[0], NULL, &xyz)); in main()
H A Dex15.c10 Vec v, nv, rv, coord; in main() local
59 PetscCall(DMGetCoordinates(dm, &coord)); in main()
60 PetscCall(VecCopy(coord, v)); in main()
H A Dex64.c216 Vec coord; in main() local
224 PetscCall(DMGetCoordinatesLocal(seqdmUA, &coord)); in main()
234 PetscCall(DMPlexVecGetClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main()
242 PetscCall(DMPlexVecRestoreClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main()
312 Vec coord; in main() local
320 PetscCall(DMGetCoordinatesLocal(dmUA, &coord)); in main()
330 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
338 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
H A Dex26f90.F9065 type(tVec) :: UALoc, coord
353 PetscCallA(DMGetCoordinatesLocal(dmUA, coord, ierr))
360 PetscCallA(DMPlexVecGetClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
369 … PetscCallA(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
439 PetscCallA(DMGetCoordinatesLocal(dmS, coord, ierr))
450 …PetscCallA(DMPlexVecGetClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ie…
460 …PetscCallA(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz…
H A Dex62f90.F9048 type(tVec) :: UALoc, coord
337 PetscCallA(DMGetCoordinatesLocal(dmUA, coord, ierr))
344 PetscCallA(DMPlexVecGetClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
353 … PetscCallA(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
423 PetscCallA(DMGetCoordinatesLocal(dmS, coord, ierr))
434 …PetscCallA(DMPlexVecGetClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ie…
444 …PetscCallA(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz…
/petsc/src/dm/impls/plex/tutorials/
H A Dex20.c108 Vec coord; in main() local
109 PetscCall(DMGetCoordinates(dm, &coord)); in main()
114 PetscCall(VecStrideGather(coord, d, Vecxyz[d], INSERT_VALUES)); in main()
/petsc/src/binding/petsc4py/demo/legacy/ode/
H A Dheat.py68 coord = numpy.arange(self.start, self.start + self.n) / self.N
69 x.setArray((numpy.abs(coord - 0.5) < 0.1) * 1.0)
/petsc/src/ts/tutorials/
H A Dex11.c359 static PetscErrorCode PhysicsFunctional_SW(Model mod, PetscReal time, const PetscReal *coord, const… in PhysicsFunctional_SW() argument
472 int initLinearWave(EulerNode *ux, const PetscReal gamma, const PetscReal coord[],…
560 static PetscErrorCode PhysicsFunctional_Euler(Model mod, PetscReal time, const PetscReal *coord, co… in PhysicsFunctional_Euler() argument
1365 PetscScalar *coord = &coords[i]; in main() local
1367coord[j] = mod->bounds[2 * j] + coord[j] * (mod->bounds[2 * j + 1] - mod->bounds[2 * j]); in main()
1370 coord[j] = .57735026918963; /* hack to get 60 deg skewed mesh */ in main()
1372 if (i == 2 || i == 10) coord[j] = mod->bounds[1] / 4.; in main()
1373 else if (i == 4) coord[j] = mod->bounds[1] / 2.; in main()
1374 else if (i == 12) coord[j] = 1.57735026918963 * mod->bounds[1] / 2.; in main()
1623 int initLinearWave(EulerNode *ux, const PetscReal gamma, const PetscReal coord[], const PetscReal L… in initLinearWave() argument
[all …]
H A Dex10.c805 PetscReal coord = i * rd->L / (info.mx - 1); in RDInitialState() local
812 x[i].E = 0.001 + 100. * PetscExpReal(-PetscSqr(coord / 0.1)); in RDInitialState()
/petsc/share/petsc/datafiles/meshes/
H A D1d-2elems.e45 coor_names������� �������coord>-������
/petsc/src/dm/impls/plex/exodusii/
H A Dplexexodusii2.c775 Vec coord; in DMView_PlexExodusII() local
855 PetscCall(DMGetCoordinatesLocal(dm, &coord)); in DMView_PlexExodusII()
879 PetscCall(DMPlexVecGetClosure(cdm, NULL, coord, cells[0], &closureSize, &xyz)); in DMView_PlexExodusII()
908 PetscCall(DMPlexVecRestoreClosure(cdm, NULL, coord, cells[0], &closureSize, &xyz)); in DMView_PlexExodusII()
1109 PetscCall(DMGetCoordinatesLocalNoncollective(dm, &coord)); in DMView_PlexExodusII()
1116 PetscCall(DMPlexVecGetClosure(cdm, NULL, coord, p, &closureSize, &closure)); in DMView_PlexExodusII()
/petsc/src/ts/tutorials/multirate/
H A Dex5.c730 …PetscReal coord = ctx.xmin + i * (ctx.xmax - ctx.xmin) / (PetscReal)Mx + 0.5 * (ctx.xmax - ctx.xmi… in main() local
731 if (coord >= 0 && coord < ctx.xmin + (ctx.xmax - ctx.xmin) * 3 / 4.) in main()
733 if (coord >= ctx.xmin + (ctx.xmax - ctx.xmin) * 3 / 4.) in main()
/petsc/src/dm/impls/swarm/tests/
H A Dex2.c112 PetscScalar *coord = &coords[p], value; in PerturbVertices() local
116 coord[d] = PetscMax(low[d], PetscMin(high[d], PetscRealPart(coord[d] + value * hh[d]))); in PerturbVertices()
/petsc/src/dm/impls/plex/
H A Dplexgeometry.c42 const PetscScalar *coord; in DMPlexFindVertices() local
59 PetscCall(VecGetArrayRead(coordinates, &coord)); in DMPlexFindVertices()
78 if (coord[j + c] != allCoords[o + c]) break; in DMPlexFindVertices()
93 for (c = 0; c < cdim; c++) norm += PetscRealPart(PetscSqr(coord[j + c] - allCoords[o + c])); in DMPlexFindVertices()
103 PetscCall(VecRestoreArrayRead(coordinates, &coord)); in DMPlexFindVertices()
3616 PetscReal coord = guess[l]; in DMPlexCoordinatesToReference_Tensor() local
3619 extCoord *= dep * coord + !dep; in DMPlexCoordinatesToReference_Tensor()
3623 PetscReal coord = guess[m]; in DMPlexCoordinatesToReference_Tensor() local
3625 PetscReal mult = dep * coord + !dep; in DMPlexCoordinatesToReference_Tensor()
3710 PetscReal coord = guess[l]; in DMPlexReferenceToCoordinates_Tensor() local
[all …]
H A Dplextree.c1995 PetscReal coord[3], newCoord[3]; in DMPlexTreeRefineCell() local
2004 for (l = 0; l < dim; ++l) coord[l] = PetscRealPart(coordvals[off + l]); in DMPlexTreeRefineCell()
2005 CoordinatesRefToReal(dim, dim, xi0, v0, J, coord, newCoord); in DMPlexTreeRefineCell()
/petsc/src/dm/dt/interface/
H A Ddt.c3275 PetscErrorCode PetscDTIndexToBary(PetscInt len, PetscInt sum, PetscInt index, PetscInt coord[]) in PetscDTIndexToBary() argument
3292 for (d = c; d < len; d++) coord[d] = 0; in PetscDTIndexToBary()
3297 coord[--c] = sum - s; in PetscDTIndexToBary()
3332 PetscErrorCode PetscDTBaryToIndex(PetscInt len, PetscInt sum, const PetscInt coord[], PetscInt *ind… in PetscDTBaryToIndex() argument
3348 sum -= coord[c]; in PetscDTBaryToIndex()
3355 sum -= coord[--c]; in PetscDTBaryToIndex()
/petsc/src/dm/impls/plex/cgns/
H A Dplexcgns2.c2017 Vec coord; in DMView_PlexCGNS() local
2090 PetscCall(DMGetCoordinatesLocal(colloc_dm, &coord)); in DMView_PlexCGNS()
2108 PetscCall(VecGetArrayRead(coord, &X)); in DMView_PlexCGNS()
2135 PetscCall(VecRestoreArrayRead(coord, &X)); in DMView_PlexCGNS()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMSwarm.pyx1046 def computeMoments(self, coord: str, weight: str) -> list[float]:
1064 str2bytes(coord, &ccoord)
/petsc/src/dm/impls/stag/tutorials/
H A Dex3.c1797 Vec solRef, solRefLocal, coord, coordLocal; in CreateReferenceSolution() local
1806 PetscCall(DMGetCoordinates(dmSol, &coord)); in CreateReferenceSolution()
1808 PetscCall(DMGlobalToLocal(dmCoord, coord, INSERT_VALUES, coordLocal)); in CreateReferenceSolution()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c659 PetscReal coord = PetscRealPart(vcoords[i * dim + d]); in InitializeWeights() local
660 vmin[d] = PetscMin(vmin[d], coord); in InitializeWeights()
661 vmax[d] = PetscMax(vmax[d], coord); in InitializeWeights()
/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h3612 PetscScalar *coord = &coords[off + i * coordDim]; in DMPforestMapCoordinates_Cell() local
3689 for (j = 0; j < coordDim; j++) coord[j] = (PetscScalar)coordP4estMapped[j]; in DMPforestMapCoordinates_Cell()
3776 PetscScalar *coord = &coords[off + i * coordDim]; in DMPforestMapCoordinates() local
3781 for (j = 0; j < p4estCoordDim; j++) coordP4est[j] = PetscRealPart(coord[j]); in DMPforestMapCoordinates()
3783 for (j = 0; j < p4estCoordDim; j++) coord[j] = (PetscScalar)coordP4estMapped[j]; in DMPforestMapCoordinates()