~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/mesh/MeshFunction.cpp

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  {
40
40
    s << str(false) << std::endl << std::endl;
41
41
 
42
 
    for (uint i = 0; i < _size; i++)
 
42
    for (std::size_t i = 0; i < _size; i++)
43
43
      s << "  (" << _dim << ", " << i << "): " << _values[i] << std::endl;
44
44
  }
45
45
  else
47
47
  return s.str();
48
48
}
49
49
//-----------------------------------------------------------------------------
50
 
template<> std::string MeshFunction<dolfin::uint>::str(bool verbose) const
 
50
template<> std::string MeshFunction<std::size_t>::str(bool verbose) const
51
51
{
52
52
  std::stringstream s;
53
53
 
55
55
  {
56
56
    s << str(false) << std::endl << std::endl;
57
57
 
58
 
    for (uint i = 0; i < _size; i++)
 
58
    for (std::size_t i = 0; i < _size; i++)
59
59
      s << "  (" << _dim << ", " << i << "): " << _values[i] << std::endl;
60
60
  }
61
61
  else