NexGenAnalytics / Trilinos

Primary repository for the Trilinos Project
https://trilinos.org/
Other
0 stars 2 forks source link

Zoltan2: CoordinateModel refactor API #34

Open cwschilly opened 1 year ago

mperrinel commented 1 year ago

Coordinates model accepts MatrixAdapter, VectorAdapter, MeshAdapter, GraphAdapter but no IdentifierAdapter

mperrinel commented 1 year ago

After analysis. The following tasks have to be done in order to match the new Adapters API

// Host case
   typename Adapter::ConstIdsHostView kgids;
    ia->getIDsHostView(kgids);
   // getCoordinatesHostView, getWeightsHostView

// Device case 
   typename Adapter::ConstIdsDeviceView kgids;
   ia->getIDsDeviceView(kgids);
   // getCoordinatesDeviceView, getWeightsDeviceView