← Back to team overview

dolfin team mailing list archive

Data::update

 

Is there a reason why Data::update doesn't invalidate the things that are not updated? We presently have

  void Data::update(const ufc::cell& ufc_cell, const double* x)
  {
    _ufc_cell = &ufc_cell;
    this->x = x;
  }

but should this be

  void Data::update(const ufc::cell& ufc_cell, const double* x)
  {
    _dolfin_cell = 0;
    _ufc_cell = &ufc_cell;
    _facet = -1;
    this->x = x;
  }

?

Garth


Follow ups