# PetscCompareScalar

Compares scalars while running with PETScs incremental debugger.

### Synopsis

    #include "petsc.h"
    int PetscCompareScalar(PetscScalar d)

Collective on PETSC_COMM_WORLD

### Input Parameter

d -scalar to compare

### Options Database Key

-compare -Activates PetscCompareDouble(), PetscCompareInt(), and PetscCompareScalar()

### See Also

PetscCompareInt(), PetscComparseDouble()

Level:advanced
Location: src/sys/src/objects/init.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages