[petsc-users] AOSOA configuration using DMDA

Mani Chandra mc0710 at gmail.com
Sat Nov 23 15:38:55 CST 2013


Hi,

Is it possible to use an Arrays of Structs of Arrays (AOSOA) configuration
using DMDAs? Something like

struct node {
  float var1[16], var2[16], var3[16];
}

Instead of

struct node {
  float var1, var2, var3;
}

as is the usual way of using DMDAs.

The global grid size of say a 2D grid would then decrease from NxN to (N/16)xN

I'm interested in doing this for ease of vectorization as described in
http://software.intel.com/en-us/articles/memory-layout-transformations

Thanks,
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131123/85de4625/attachment.html>


More information about the petsc-users mailing list