Home
last modified time | relevance | path

Searched refs:PetscCIntCast (Results 1 – 16 of 16) sorted by relevance

/petsc/src/sys/classes/draw/tests/
H A Dex9.c30 PetscCall(PetscCIntCast(w, &width)); in main()
31 PetscCall(PetscCIntCast(h, &height)); in main()
32 PetscCall(PetscCIntCast(nn, &n)); in main()
33 PetscCall(PetscCIntCast(b, &bins)); in main()
34 PetscCall(PetscCIntCast(c, &color)); in main()
/petsc/src/dm/impls/plex/generators/triangle/
H A Dtrigenerate.c89 PetscCall(PetscCIntCast(vEnd - vStart, &in.numberofpoints)); in DMPlexGenerate_Triangle()
108 PetscCall(PetscCIntCast(val, &in.pointmarkerlist[idx])); in DMPlexGenerate_Triangle()
114 PetscCall(PetscCIntCast(eEnd - eStart, &in.numberofsegments)); in DMPlexGenerate_Triangle()
125 PetscCall(PetscCIntCast(cone[0] - vStart, &in.segmentlist[idx * 2 + 0])); in DMPlexGenerate_Triangle()
126 PetscCall(PetscCIntCast(cone[1] - vStart, &in.segmentlist[idx * 2 + 1])); in DMPlexGenerate_Triangle()
130 PetscCall(PetscCIntCast(val, &in.segmentmarkerlist[idx])); in DMPlexGenerate_Triangle()
253 PetscCall(PetscCIntCast(vEnd - vStart, &in.numberofpoints)); in DMPlexRefine_Triangle()
272 PetscCall(PetscCIntCast(val, &in.pointmarkerlist[idx])); in DMPlexRefine_Triangle()
282 PetscCall(PetscCIntCast(cEnd - cStart, &in.numberoftriangles)); in DMPlexRefine_Triangle()
301 …for (v = 0; v < 3; ++v) PetscCall(PetscCIntCast(closure[(v + closureSize - 3) * 2] - vStart, &in.t… in DMPlexRefine_Triangle()
/petsc/src/sys/logging/handler/impls/nested/
H A Dxmlviewer.c20 PetscCall(PetscCIntCast(XMLSectionDepthPetsc, &XMLSectionDepth)); in PetscViewerXMLStartSection()
52 PetscCall(PetscCIntCast(XMLSectionDepthPetsc, &XMLSectionDepth)); in PetscViewerXMLEndSection()
55 PetscCall(PetscCIntCast(XMLSectionDepthPetsc, &XMLSectionDepth)); in PetscViewerXMLEndSection()
75 PetscCall(PetscCIntCast(XMLSectionDepthPetsc, &XMLSectionDepth)); in PetscViewerXMLPutString()
91 PetscCall(PetscCIntCast(XMLSectionDepthPetsc, &XMLSectionDepth)); in PetscViewerXMLPutInt()
108 PetscCall(PetscCIntCast(XMLSectionDepthPetsc, &XMLSectionDepth)); in PetscViewerXMLPutDouble()
/petsc/src/sys/logging/state/
H A Dlogstate.c32 …PetscCall(PetscCIntCast(max_events + 1, &s->bt_num_events)); // one extra column for default stage… in PetscLogStateCreate()
33 PetscCall(PetscCIntCast(max_stages, &s->bt_num_stages)); in PetscLogStateCreate()
181 PetscCall(PetscCIntCast(new_num_events, &state->bt_num_events)); in PetscLogStateResize()
182 PetscCall(PetscCIntCast(new_num_stages, &state->bt_num_stages)); in PetscLogStateResize()
H A Dlogregistry.c263 PetscCall(PetscCIntCast(next_loc, &p)); in PetscLogGlobalNamesCreate_Internal()
/petsc/src/sys/classes/draw/utils/
H A Dlg.c138 PetscCall(PetscCIntCast(n, &in)); in PetscDrawLGAddPoints()
H A Dlgc.c168 PetscCall(PetscCIntCast(dim, &lg->dim)); in PetscDrawLGCreate()
293 PetscCall(PetscCIntCast(dim, &lg->dim)); in PetscDrawLGSetDimension()
H A Dbars.c88 PetscCall(PetscCIntCast(bins, &bar->numBins)); in PetscDrawBarSetData()
H A Dhists.c535 PetscCall(PetscCIntCast(numBins, &inumBins)); in PetscDrawHGView()
565 PetscCall(PetscCIntCast(numBinsOld, &inumBins)); in PetscDrawHGView()
/petsc/src/sys/classes/draw/impls/x/
H A Dxops.c758 PetscCall(PetscCIntCast(xywh[0], &x)); in PetscDrawCreate_X()
759 PetscCall(PetscCIntCast(xywh[1], &y)); in PetscDrawCreate_X()
760 PetscCall(PetscCIntCast(xywh[2], &w)); in PetscDrawCreate_X()
761 PetscCall(PetscCIntCast(xywh[3], &h)); in PetscDrawCreate_X()
/petsc/src/sys/classes/draw/impls/image/
H A Ddrawimage.c558 PetscCall(PetscCIntCast(size[0], &w)); in PetscDrawCreate_Image()
559 PetscCall(PetscCIntCast(size[1], &h)); in PetscDrawCreate_Image()
/petsc/src/ksp/pc/impls/gamg/
H A Dgeo.c153 PetscCall(PetscCIntCast(nFineLoc, &nPlotPts)); /* locals */ in triangulateAndFormProl()
156 PetscCall(PetscCIntCast(nselected_2, &in.numberofpoints)); in triangulateAndFormProl()
/petsc/src/sys/dll/
H A Dreg.c534 PetscCall(PetscCIntCast(size, n)); in PetscFunctionListGet()
/petsc/doc/changes/
H A D323.md29 - Add `PetscCIntCast()`
/petsc/src/sys/classes/viewer/impls/cgns/
H A Dcgnsv.c69 for (PetscCount i = 0; i < size; i++) PetscCall(PetscCIntCast(steps[i], &steps_int[i])); in PetscViewerFileClose_CGNS()
/petsc/include/
H A Dpetscsys.h2101 static inline PetscErrorCode PetscCIntCast(MPIU_Count a, int *b) in PetscCIntCast() function