~florian-rathgeber/+junk/dolfin-gpu

« back to all changes in this revision

Viewing changes to src/GPUForm.cu

  • Committer: Florian Rathgeber
  • Date: 2010-08-10 10:15:23 UTC
  • Revision ID: florian@thehoff-20100810101523-3imffr7p3s5dejvm
GPUForm cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
        vertex_values[Idx1d(cell->index(),i,_gpu_mesh->ncells)] = cell_coefficients[i];
178
178
  }
179
179
}
180
 
//{
181
 
  //const uint ncells = mesh.num_cells();
182
 
  //// Local data for vertex values
183
 
  //const uint size = expr.value_size();
184
 
  //Array<double> local_vertex_values(size);
185
 
  //Data data;
186
 
 
187
 
  //// Iterate over cells, overwriting values when repeatedly visiting vertices
188
 
  //UFCCell ufc_cell(mesh);
189
 
  //for (CellIterator cell(mesh); !cell.end(); ++cell)
190
 
  //{
191
 
    //const uint nverts = cell->num_entities(0);
192
 
 
193
 
    //// Update cell data
194
 
    //ufc_cell.update(*cell);
195
 
    //data.set(*cell, ufc_cell, -1);
196
 
 
197
 
    //// Iterate over cell vertices
198
 
    //for (VertexIterator vertex(*cell); !vertex.end(); ++vertex)
199
 
    //{
200
 
      //// Update coordinate data
201
 
      //data.set(mesh.geometry().dim(), vertex->x());
202
 
 
203
 
      //// Evaluate at vertex
204
 
      //expr.eval(local_vertex_values, data);
205
 
 
206
 
      //// Copy to array
207
 
      //for (uint i = 0; i < size; i++)
208
 
        //vertex_values[Idxnd(cell->index(),vertex.pos(),i,ncells,nverts)]
209
 
          //= local_vertex_values[i];
210
 
    //}
211
 
  //}
212
 
//}
213
180
//-----------------------------------------------------------------------------