I would to propose some changes to error checking macros for optimized builds.

1.- SETERRQXXX: define them as

#define SETERRQ[1|2|..](ierr,...)   return ierr

2.- CHKERRQ: define them as

#define CHKERRQ(ierr)  if (ierr) return ierr

For (1), it should be no performace impact. For (2), the extra check
at almost every line of PETSc source code could impact performace, but
any of you have a clear idea of how much?

-- 
Lisandro Dalc?n
---------------
Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC)
Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC)
Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET)
PTLC - G?emes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594


Reply via email to