[petsc-users] create a matrix in C++ constructor
Lisandro Dalcín
dalcinl at gmail.com
Mon Dec 21 18:04:29 CST 2009
2009/12/21 Umut Tabak <u.tabak at tudelft.nl>:
> Matthew Knepley wrote:
>>
>> Then it is not MatCreate() causing your SEGV.
>>
>> Matt
>>
> Dear Matthew,
>
> Attached are the makefile and the test codes for this crash. When I check
> with ddd, I get the crash on that line.
You forgot to call PetscInitialize()/PetscFinalize() in testMatrix.cc
--
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