[petsc-users] create a matrix in C++ constructor

Lisandro Dalcín dalcinl at gmail.com
Mon Dec 21 17:35:11 CST 2009


On Mon, Dec 21, 2009 at 8:01 PM, Umut Tabak <u.tabak at tudelft.nl> wrote:
>
> "Mat A" initializes the pointer to null internally, am I right?
>

Mmm... do not rely on that behavior... I would explicitly initialize
A(0)  in the initialization list of every constructor...



-- 
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


More information about the petsc-users mailing list