| /petsc/share/petsc/saws/js/ |
| H A D | boxTree.js | 54 elapsedDist += childTotalSize.height; 58 …+ visualLoc.y, x+elapsedDist+data[childEndtag].visual_loc.x, y+text_size.height+data[endtag].inden… 61 …ret += getBoxTree(data, childEndtag, x+elapsedDist, y+text_size.height+data[endtag].indentations[i… 92 …var height = 2*node_radius + 12 * countNumOccurances("<br>",description); //make each line 15 pixe… 93 ret.height = height; 143 totalHeight += childSize.height; 173 elapsedDist += data[childEndtag].total_size.height; 181 …var child2_pos = elapsedDist + data[child1_endtag].total_size.height + data[child2_endtag].visu… 190 elapsedDist += data[childEndtag].total_size.height; 201 var southFrontier = visualLoc.y - node_radius + text_size.height; [all …]
|
| H A D | events.js | 93 … + matInfo["0"].total_size.height + "\" viewBox=\"0 0 " + matInfo["0"].total_size.width + " " + ma…
|
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex20.c | 10 PetscInt height = 2, width = 3, nroots = height, nleaves, dim = 2; in main() local 19 nleaves = (width - (rank == 0) - (rank == size - 1)) * height; in main() 21 for (PetscInt i = 0; i < height; i++) { in main() 26 leafcoords[(i * nleaves / height + l) * dim + 0] = 0.1 * (rank + j - 1); in main() 27 leafcoords[(i * nleaves / height + l) * dim + 1] = 1. * i; in main()
|
| /petsc/src/sys/classes/draw/tests/ |
| H A D | ex2.c | 10 int x = 0, y = 0, width = 256, height = 256, i; in main() local 14 PetscCall(PetscDrawCreate(PETSC_COMM_WORLD, 0, "Title", x, y, width, height, &draw)); in main() 18 for (i = rank; i < height; i += size) { in main() 19 PetscReal y = ((PetscReal)i) / (height - 1); in main()
|
| H A D | ex5f.F90 | 18 integer4 x, y, width, height 38 height = int(h, kind=kind(height)) 41 …ate(PETSC_COMM_WORLD, PETSC_NULL_CHARACTER, PETSC_NULL_CHARACTER, x, y, width, height, draw, ierr))
|
| H A D | ex4f.F90 | 38 integer4 x, y, width, height 43 height = 256 46 …(PetscDrawCreate(PETSC_COMM_WORLD, PETSC_NULL_CHARACTER, 'Title', x, y, width, height, draw, ierr))
|
| H A D | ex1.c | 9 int x = 0, y = 0, width = 300, height = 300; in main() local 14 PetscCall(PetscDrawCreate(PETSC_COMM_WORLD, 0, "Title", x, y, width, height, &draw)); in main() 37 PetscCall(PetscDrawGetWindowSize(draw, &width, &height)); in main()
|
| H A D | ex9.c | 11 int n = 20, i, x = 0, y = 0, width = 400, height = 300, bins = 8; in main() local 31 PetscCall(PetscCIntCast(h, &height)); in main() 41 PetscCall(PetscDrawCreate(PETSC_COMM_WORLD, 0, "Title", x, y, width, height, &draw)); in main()
|
| H A D | ex3.c | 18 int x = 0, y = 0, width = 400, height = 300; in main() local 34 PetscCall(PetscOptionsGetMPIInt(NULL, NULL, "-height", &height, NULL)); in main() 52 PetscCall(PetscDrawCreate(PETSC_COMM_WORLD, 0, "Title", x, y, width, height, &draw)); in main()
|
| H A D | ex4.c | 30 int x = 0, y = 0, width = 256, height = 256; in main() local 35 PetscCall(PetscDrawCreate(PETSC_COMM_WORLD, NULL, "Title", x, y, width, height, &draw)); in main()
|
| H A D | ex10.c | 9 int x = 0, y = 0, width = 300, height = 300; in main() local 13 PetscCall(PetscDrawCreate(PETSC_COMM_WORLD, 0, "Title", x, y, width, height, &draw)); in main()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex16.c | 38 static PetscErrorCode CreateHalfDomainLabel(DM dm, PetscBool lower, PetscReal height, DMLabel *labe… in CreateHalfDomainLabel() argument 52 if (height > 0.0 && PetscAbsReal(centroid[1] - height) > PETSC_SMALL) continue; in CreateHalfDomainLabel() 82 …rrorCode CreateVolumeSubmesh(DM dm, PetscBool domain, PetscBool lower, PetscReal height, DM *subdm) in CreateVolumeSubmesh() argument 87 if (domain) PetscCall(CreateHalfDomainLabel(dm, lower, height, &label)); in CreateVolumeSubmesh() 138 PetscReal height = -1.0; in main() local 143 PetscCall(PetscOptionsGetReal(NULL, NULL, "-height", &height, NULL)); in main() 149 PetscCall(CreateVolumeSubmesh(dm, domain, PETSC_TRUE, height, &subdm)); in main() 152 PetscCall(CreateVolumeSubmesh(dm, domain, PETSC_FALSE, height, &subdm)); in main()
|
| H A D | ex49.c | 77 …e CheckOffsets(DM dm, AppCtx *user, const char *domain_name, PetscInt label_value, PetscInt height) in CheckOffsets() argument 87 …PetscCall(PetscPrintf(PETSC_COMM_WORLD, "## %s: '%s' {%" PetscInt_FMT "}%s\n", height_name[height]… in CheckOffsets() 103 …PetscCall(DMPlexGetLocalOffsets(dm, domain_label, label_value, height, f, &Ncell, &Ncl, &Nc, &n, &… in CheckOffsets() 151 if (isDG && height) PetscFunctionReturn(PETSC_SUCCESS); in CheckOffsets() 154 …PetscCall(DMPlexGetLocalOffsets(cdm, domain_label, label_value, height, 0, &Ncell, &Ncl, &Nc, &n, … in CheckOffsets()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexceed.c | 3 PetscErrorCode DMGetPoints_Internal(DM dm, DMLabel domainLabel, PetscInt labelVal, PetscInt height,… in DMGetPoints_Internal() argument 12 PetscCall(DMLabelGetStratumIS(depthLabel, depth - height, &depthIS)); in DMGetPoints_Internal() 58 …LocalOffsets(DM dm, DMLabel domain_label, PetscInt label_value, PetscInt height, PetscInt dm_field… in DMPlexGetLocalOffsets() argument 94 PetscCall(DMGetPoints_Internal(dm, domain_label, label_value, height, &iter_is)); in DMPlexGetLocalOffsets() 108 PetscCall(PetscFEGetHeightSubspace(fe, height, &fe)); in DMPlexGetLocalOffsets() 109 …), PETSC_ERR_ARG_OUTOFRANGE, "Height %" PetscInt_FMT " is invalid for DG discretizations", height); in DMPlexGetLocalOffsets() 120 PetscInt P = dim - height ? (PetscInt)PetscPowReal(*cell_size, 1.0 / (dim - height)) : 0; in DMPlexGetLocalOffsets() 127 if (height > 0) { in DMPlexGetLocalOffsets() 200 PetscInt dim, height = 1, dm_field = 0, ds_field = 0, Nf, NfInt = 0, Nc; in DMPlexGetLocalOffsetsSupport() local 212 PetscCall(DMGetPoints_Internal(dm, domain_label, label_value, height, &iter_is)); in DMPlexGetLocalOffsetsSupport() [all …]
|
| H A D | plexpartition.c | 12 static PetscErrorCode DMPlexCreatePartitionerGraph_Overlap(DM dm, PetscInt height, PetscInt *numVer… in DMPlexCreatePartitionerGraph_Overlap() argument 30 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_Overlap() 54 PetscCall(DMPlexGetHeightStratum(ovdm, height, &cStart, &cEnd)); in DMPlexCreatePartitionerGraph_Overlap() 111 static PetscErrorCode DMPlexCreatePartitionerGraph_Native(DM dm, PetscInt height, PetscInt *numVert… in DMPlexCreatePartitionerGraph_Native() argument 132 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_Native() 145 PetscCall(DMPlexGetHeightStratum(dm, height, &pStart, &pEnd)); in DMPlexCreatePartitionerGraph_Native() 167 PetscCall(DMPlexGetHeightStratum(dm, height + 1, &fStart, &fEnd)); in DMPlexCreatePartitionerGraph_Native() 316 static PetscErrorCode DMPlexCreatePartitionerGraph_ViaMat(DM dm, PetscInt height, PetscInt *numVert… in DMPlexCreatePartitionerGraph_ViaMat() argument 333 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_ViaMat() 349 PetscCall(DMPlexGetHeightStratum(dm, height, &cStart, &cEnd)); in DMPlexCreatePartitionerGraph_ViaMat() [all …]
|
| /petsc/src/sys/classes/draw/interface/ |
| H A D | dtext.c | 185 PetscErrorCode PetscDrawStringSetSize(PetscDraw draw, PetscReal width, PetscReal height) in PetscDrawStringSetSize() argument 189 PetscTryTypeMethod(draw, stringsetsize, width, height); in PetscDrawStringSetSize() 209 PetscErrorCode PetscDrawStringGetSize(PetscDraw draw, PetscReal *width, PetscReal *height) in PetscDrawStringGetSize() argument 213 PetscUseTypeMethod(draw, stringgetsize, width, height); in PetscDrawStringGetSize()
|
| /petsc/src/dm/dt/space/impls/poly/ |
| H A D | spacepoly.c | 303 static PetscErrorCode PetscSpaceGetHeightSubspace_Polynomial(PetscSpace sp, PetscInt height, PetscS… in PetscSpaceGetHeightSubspace_Polynomial() argument 314 …height <= dim && height >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Asked for space at heigh… in PetscSpaceGetHeightSubspace_Polynomial() 316 if (height <= dim) { in PetscSpaceGetHeightSubspace_Polynomial() 317 if (!poly->subspaces[height - 1]) { in PetscSpaceGetHeightSubspace_Polynomial() 327 PetscCall(PetscSpaceSetNumVariables(sub, dim - height)); in PetscSpaceGetHeightSubspace_Polynomial() 330 poly->subspaces[height - 1] = sub; in PetscSpaceGetHeightSubspace_Polynomial() 332 *subsp = poly->subspaces[height - 1]; in PetscSpaceGetHeightSubspace_Polynomial()
|
| /petsc/src/dm/dt/space/impls/ptrimmed/ |
| H A D | spaceptrimmed.c | 300 static PetscErrorCode PetscSpaceGetHeightSubspace_Ptrimmed(PetscSpace sp, PetscInt height, PetscSpa… in PetscSpaceGetHeightSubspace_Ptrimmed() argument 307 …height <= dim && height >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Asked for space at heigh… in PetscSpaceGetHeightSubspace_Ptrimmed() 309 if ((dim - height) <= PetscAbsInt(pt->formDegree)) { in PetscSpaceGetHeightSubspace_Ptrimmed() 310 if (!pt->subspaces[height - 1]) { in PetscSpaceGetHeightSubspace_Ptrimmed() 317 PetscCall(PetscDTBinomialInt(dim - height, PetscAbsInt(pt->formDegree), &Nfsub)); in PetscSpaceGetHeightSubspace_Ptrimmed() 327 PetscCall(PetscSpaceSetNumVariables(sub, dim - height)); in PetscSpaceGetHeightSubspace_Ptrimmed() 330 pt->subspaces[height - 1] = sub; in PetscSpaceGetHeightSubspace_Ptrimmed() 332 *subsp = pt->subspaces[height - 1]; in PetscSpaceGetHeightSubspace_Ptrimmed()
|
| /petsc/src/dm/dt/space/impls/sum/ |
| H A D | spacesum.c | 505 static PetscErrorCode PetscSpaceGetHeightSubspace_Sum(PetscSpace sp, PetscInt height, PetscSpace *s… in PetscSpaceGetHeightSubspace_Sum() argument 516 …height <= dim && height >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Asked for space at heigh… in PetscSpaceGetHeightSubspace_Sum() 518 if (height <= dim) { in PetscSpaceGetHeightSubspace_Sum() 519 if (!sum->heightsubspaces[height - 1]) { in PetscSpaceGetHeightSubspace_Sum() 530 PetscCall(PetscSpaceSetNumVariables(sub, dim - height)); in PetscSpaceGetHeightSubspace_Sum() 534 PetscCall(PetscSpaceGetHeightSubspace(sum->sumspaces[i], height, &subh)); in PetscSpaceGetHeightSubspace_Sum() 538 sum->heightsubspaces[height - 1] = sub; in PetscSpaceGetHeightSubspace_Sum() 540 *subsp = sum->heightsubspaces[height - 1]; in PetscSpaceGetHeightSubspace_Sum()
|
| /petsc/src/dm/dt/space/impls/tensor/ |
| H A D | spacetensor.c | 572 static PetscErrorCode PetscSpaceGetHeightSubspace_Tensor(PetscSpace sp, PetscInt height, PetscSpace… in PetscSpaceGetHeightSubspace_Tensor() argument 583 …height <= dim && height >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Asked for space at heigh… in PetscSpaceGetHeightSubspace_Tensor() 585 if (height <= dim) { in PetscSpaceGetHeightSubspace_Tensor() 586 if (!tens->heightsubspaces[height - 1]) { in PetscSpaceGetHeightSubspace_Tensor() 597 PetscCall(PetscSpaceSetNumVariables(sub, dim - height)); in PetscSpaceGetHeightSubspace_Tensor() 598 PetscCall(PetscSpaceTensorSetNumSubspaces(sub, dim - height)); in PetscSpaceGetHeightSubspace_Tensor() 599 for (i = 0; i < dim - height; i++) PetscCall(PetscSpaceTensorSetSubspace(sub, i, bsp)); in PetscSpaceGetHeightSubspace_Tensor() 601 tens->heightsubspaces[height - 1] = sub; in PetscSpaceGetHeightSubspace_Tensor() 603 *subsp = tens->heightsubspaces[height - 1]; in PetscSpaceGetHeightSubspace_Tensor()
|
| /petsc/src/dm/impls/da/ |
| H A D | dalocal.c | 234 PetscErrorCode DMDAGetHeightStratum(DM dm, PetscInt height, PeOp PetscInt *pStart, PeOp PetscInt *p… in DMDAGetHeightStratum() argument 245 if (height == 0) { in DMDAGetHeightStratum() 249 } else if (height == 1) { in DMDAGetHeightStratum() 253 } else if (height == dim) { in DMDAGetHeightStratum() 257 } else if (height < 0) { in DMDAGetHeightStratum() 261 …scObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "No points of height %" PetscInt_FMT " in the DA", height); in DMDAGetHeightStratum()
|
| /petsc/src/dm/impls/plex/tutorials/output/ |
| H A D | ex1_submesh_0.out | 4 Cells are at height 1
|
| /petsc/src/dm/field/impls/ds/ |
| H A D | dmfieldds.c | 9 PetscInt height; /* Point height at which we want values and number of discretizations */ member 25 for (i = 0; i < dsfield->height; i++) PetscCall(PetscObjectDereference(dsfield->disc[i])); in DMFieldDestroy_DS() 29 for (i = 0; i < dsfield->height; i++) PetscCall(PetscObjectDereference(dsfield->discDG[i])); in DMFieldDestroy_DS() 57 static PetscErrorCode DMFieldDSGetHeightDisc(DMField field, PetscInt height, PetscObject discList[]… in DMFieldDSGetHeightDisc() argument 60 …PetscCheck(height >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Height %" PetscInt_FMT " must … in DMFieldDSGetHeightDisc() 61 if (!discList[height]) { in DMFieldDSGetHeightDisc() 65 …D) PetscCall(PetscFECreateHeightTrace((PetscFE)discList[0], height, (PetscFE *)&discList[height])); in DMFieldDSGetHeightDisc() 67 *disc = discList[height]; in DMFieldDSGetHeightDisc() 164 PetscCall(DMFieldDSGetHeightDisc(field, dsfield->height - 1 - dim, dsfield->disc, &disc)); in DMFieldEvaluateFE_DS() 472 for (h = 0; h < dsfield->height; h++) { in DMFieldEvaluateFV_DS() [all …]
|
| /petsc/include/petsc/private/ |
| H A D | cupminterface.hpp | 717 …dentity_t<D> *src, std::size_t src_pitch, std::size_t width, std::size_t height, cupmMemcpyKind_t … in PetscCUPMMemcpy2DAsync() 723 const auto size = height * width_bytes; in PetscCUPMMemcpy2DAsync() 730 …upmMemcpy2DAsync(dest, dest_pitch_bytes, src, src_pitch_bytes, width_bytes, height, kind, stream)); in PetscCUPMMemcpy2DAsync() 732 …PetscCallCUPM(cupmMemcpy2D(dest, dest_pitch_bytes, src, src_pitch_bytes, width_bytes, height, kind… in PetscCUPMMemcpy2DAsync() 739 …dentity_t<D> *src, std::size_t src_pitch, std::size_t width, std::size_t height, cupmMemcpyKind_t … in PetscCUPMMemcpy2D() 742 PetscCall(PetscCUPMMemcpy2DAsync(dest, dest_pitch, src, src_pitch, width, height, kind)); in PetscCUPMMemcpy2D() 774 …ync(D *ptr, std::size_t pitch, int value, std::size_t width, std::size_t height, cupmStream_t stre… in PetscCUPMMemset2DAsync() 779 const auto size = width_bytes * height; in PetscCUPMMemset2DAsync() 785 PetscCallCUPM(cupmMemset2DAsync(ptr, pitch_bytes, value, width_bytes, height, stream)); in PetscCUPMMemset2DAsync() 787 PetscCallCUPM(cupmMemset2D(ptr, pitch_bytes, value, width_bytes, height)); in PetscCUPMMemset2DAsync()
|
| H A D | partitionerimpl.h | 23 PetscInt height; /* Height of points to partition into non-overlapping subsets */ member
|