PetscLogFlops#

Log how many flops are performed in a calculation

Synopsis#

Input Parameter#

  • flops - the number of flops

Notes#

To limit the chance of integer overflow when multiplying by a constant, represent the constant as a double, not an integer. Use PetscLogFlops(4.0n) not PetscLogFlops(4n)

See Also#

PetscLogView(), PetscLogGpuFlops()

Level#

intermediate

Location#

include/petsclog.h

Examples#

src/sys/tutorials/ex3.c.html
src/sys/tutorials/ex3f90.F90.html
src/sys/tutorials/ex3f.F90.html
src/ksp/ksp/tutorials/ex9.c.html
src/snes/tutorials/ex14.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex18.c.html
src/snes/tutorials/ex19.c.html
src/snes/tutorials/ex22.c.html
src/snes/tutorials/ex33.c.html
src/snes/tutorials/ex46.c.html


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages