Lisandro,

     I added the code

   if ((reuse == MAT_REUSE_MATRIX) && (issame || sametype))  
PetscFunctionReturn(0);

   do you think this will handle the cases appropriately.

    Barry

On Feb 5, 2008, at 12:49 PM, Lisandro Dalcin wrote:

> What is the expected behavior of the following, assuming option
> '-matconvert_type' is not given?
>
> MatConvert(A, MATSAME, MAT_REUSE_MATRIX, &A)
>
> Should it be a no-op? I have to ask because if that is the case, It
> seems the current code is broken. I'm missing something?
>
> -- 
> 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