[petsc-users] Naturally ordered to DA vector copy

Lisandro Dalcin dalcinl at gmail.com
Wed Jul 20 10:42:05 CDT 2011


On 20 July 2011 01:34, khalid ashraf <khalid_eee at yahoo.com> wrote:
> Hello,
> In my application, I need to do both Finite element(FEM) and Finite
> Difference(FD) computations.
> I am doing the FD using the DA and FEM using natural numbering(x changes
> fastest, then y then z).
> My question is what would be the fastest way to copy the FEM vectors to the
> FD vectors. Looks like
> DAGetAO may provide a mapping between DA vector layout and natural layout.
> Since I am not very familiar with programming using AO, just wanted to ask
> if there is a more efficient/easier way to copy from the naturally ordered
> vector to the DA vector before delving into AO. If I have to use AO, could
> you please redirect me to some related example.
> Thanks in advance.
> Khalid

DMDAGlobalToNaturalBegin/End and DMDANaturalToGlobalBegin/End

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


More information about the petsc-users mailing list