Home
last modified time | relevance | path

Searched refs:tot (Results 1 – 7 of 7) sorted by relevance

/petsc/src/mat/impls/composite/
H A Dmcomposite.c135 PetscInt i, j, k, n, nuniq, lo, hi, mid, *gindices, *buf, *tmp, tot; in MatMult_Composite() local
161 tot = 0; in MatMult_Composite()
165 tot += n; in MatMult_Composite()
167 PetscCall(PetscMalloc3(tot, &shell->location, tot, &shell->larray, shell->nmat, &shell->lvecs)); in MatMult_Composite()
168 shell->len = tot; in MatMult_Composite()
171 …PetscCall(PetscMalloc1(tot, &gindices)); /* No Malloc2() since we will give one to PETSc and free … in MatMult_Composite()
172 PetscCall(PetscMalloc1(tot, &buf)); in MatMult_Composite()
203 tot = 0; in MatMult_Composite()
217 shell->location[tot + i] = lo; /* gindices[lo] = garray[i] */ in MatMult_Composite()
220 tot += n; in MatMult_Composite()
[all …]
/petsc/src/sys/logging/handler/impls/nested/
H A Dxmlviewer.c160 PetscLogDouble min, tot, ratio, avg; in PetscPrintXMLGlobalPerformanceElement() local
174 PetscCallMPI(MPIU_Allreduce(&local_val, &tot, 1, MPIU_PETSCLOGDOUBLE, MPI_SUM, comm)); in PetscPrintXMLGlobalPerformanceElement()
175 avg = tot / ((PetscLogDouble)size); in PetscPrintXMLGlobalPerformanceElement()
184 if (print_total) PetscCall(PetscViewerXMLPutDouble(viewer, "total", tot, "%e")); in PetscPrintXMLGlobalPerformanceElement()
245 PetscLogDouble minvalue, maxvalue, tot; in PetscPrintXMLNestedLinePerfResults() local
261 PetscCallMPI(MPIU_Allreduce(&value, &tot, 1, MPIU_PETSCLOGDOUBLE, MPI_SUM, comm)); in PetscPrintXMLNestedLinePerfResults()
268 PetscCall(PetscViewerXMLPutDouble(viewer, "avgvalue", tot / size, "%g")); in PetscPrintXMLNestedLinePerfResults()
274 PetscCall(PetscViewerXMLPutDouble(viewer, "value", tot / size, "%g")); in PetscPrintXMLNestedLinePerfResults()
/petsc/src/sys/logging/handler/impls/default/
H A Dlogdefault.c1278 PetscLogDouble min, max, tot, ratio, avg, x, y; in PetscLogHandlerView_Default_Info() local
1346 PetscCallMPI(MPIU_Allreduce(&locTotalTime, &tot, 1, MPIU_PETSCLOGDOUBLE, MPI_SUM, comm)); in PetscLogHandlerView_Default_Info()
1347 avg = tot / ((PetscLogDouble)size); in PetscLogHandlerView_Default_Info()
1351 TotalTime = tot; in PetscLogHandlerView_Default_Info()
1361 PetscCallMPI(MPIU_Allreduce(&avg, &tot, 1, MPIU_PETSCLOGDOUBLE, MPI_SUM, comm)); in PetscLogHandlerView_Default_Info()
1362 avg = tot / ((PetscLogDouble)size); in PetscLogHandlerView_Default_Info()
1369 PetscCallMPI(MPIU_Allreduce(&petsc_TotalFlops, &tot, 1, MPIU_PETSCLOGDOUBLE, MPI_SUM, comm)); in PetscLogHandlerView_Default_Info()
1370 avg = tot / ((PetscLogDouble)size); in PetscLogHandlerView_Default_Info()
1373 …ASCIIPrintf(viewer, "Flops: %5.3e %7.3f %5.3e %5.3e\n", max, ratio, avg, tot)); in PetscLogHandlerView_Default_Info()
1374 TotalFlops = tot; in PetscLogHandlerView_Default_Info()
[all …]
/petsc/src/snes/impls/composite/
H A Dsnescomposite.c190 PetscScalar tot, total, ftf; in SNESCompositeApply_AdditiveOptimal() local
270 tot = 0.; in SNESCompositeApply_AdditiveOptimal()
275 tot += jac->beta[i]; in SNESCompositeApply_AdditiveOptimal()
278 PetscCall(VecScale(X, 1. - tot)); in SNESCompositeApply_AdditiveOptimal()
/petsc/src/sys/logging/
H A Dplog.c128 PetscErrorCode PetscAddLogDouble(PetscLogDouble *tot, PetscLogDouble *tot_th, PetscLogDouble tmp) in PetscAddLogDouble() argument
132 *tot += tmp; in PetscAddLogDouble()
137 PetscErrorCode PetscAddLogDoubleCnt(PetscLogDouble *cnt, PetscLogDouble *tot, PetscLogDouble *cnt_t… in PetscAddLogDoubleCnt() argument
142 *tot += (PetscLogDouble)tmp; in PetscAddLogDoubleCnt()
/petsc/src/mat/impls/aij/mpi/kokkos/
H A Dmpiaijkok.kokkos.cxx269 PetscInt tot, key, val; // total unique global indices. key is global id; val is local id in ReduceTwoSetsOfGlobalIndices() local
273 tot = 0; in ReduceTwoSetsOfGlobalIndices()
277 …if (val < 0) PetscCall(PetscHMapISet(g2l, indices[i], tot++)); // val < 0 means gid is not in the… in ReduceTwoSetsOfGlobalIndices()
282 if (val < 0) PetscCall(PetscHMapISet(g2l, garray1[i], tot++)); in ReduceTwoSetsOfGlobalIndices()
286 n2 = tot; in ReduceTwoSetsOfGlobalIndices()
288 tot = 0; in ReduceTwoSetsOfGlobalIndices()
293 garray2[tot++] = key; in ReduceTwoSetsOfGlobalIndices()
299 …for (PetscInt i = 0; i < tot; i++) PetscCall(PetscHMapISet(g2l, garray2[i], i)); // i is the local… in ReduceTwoSetsOfGlobalIndices()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas2956 (melt/tot-spe-scheil? #f)
6817 (dynamesh/remesh/rdc/max-bl-tot-height 1.5)
6818 (dynamesh/remesh/rdc/min-bl-tot-height 0.5)