[petsc-dev] DAGet[Ghosted]Coordinates and refcounts

Barry Smith bsmith at mcs.anl.gov
Mon Aug 2 16:21:37 CDT 2010


On Aug 2, 2010, at 9:38 AM, Lisandro Dalcin wrote:

> DAGet[Ghosted]Coordinates return a new reference to the coordinate
> vector. However, this is not the usual pattern of other XXXGetYYY
> calls...

      What do you suggest? (1)  Provide a DARestoreCoordinates() that does the dereference?  (2) remove the reference from the calls (3) change the name from get?

      I like (1) but it is kind of artificial.

   Barry

> 
> 
> -- 
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169




More information about the petsc-dev mailing list