petsc-3.6.2 2015-10-02
Report Typos and Errors

# MatSetErrorIfFPE

Causes Mat to generate an error if a FPE, for example a zero pivot, is detected.

### Synopsis

    #include "petscmat.h"
    PetscErrorCode  MatSetErrorIfFPE(Mat mat,PetscBool flg)

Logically Collective on Mat

### Input Parameters

| mat | - matrix obtained from MatCreate()
| flg | - PETSC_TRUE indicates you want the error generated

### Keywords

Mat, set, initial guess, nonzero

### See Also

PCSetErrorIfFailure()

Level:advanced
Location: src/mat/utils/gcreate.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages