On 11/22/07, Zhifeng Sheng <z.sheng at ewi.tudelft.nl> wrote: > In my application, I have small matrices that are created and destroied, > those matrices are of the same nozero pattern. > I wonder if there is a way to reuse that matrices instead of destroy > them every time.
Just do not destroy them! Use the matrices, and then start again your loop with MatSetValues(), calling MatAssemblyBegin() and MatAssemblyEnd() after the loop. -- 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
