~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/adaptivity/marking.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:
42
42
  }
43
43
 
44
44
  // Count number of marked cells
45
 
  uint num_marked = 0;
46
 
  for(uint i=0; i < markers.size(); i++)
 
45
  std::size_t num_marked = 0;
 
46
  for(std::size_t i = 0; i < markers.size(); i++)
47
47
  {
48
48
    if (markers[i])
49
49
      num_marked++;
50
50
  }
51
51
 
52
52
  // Report the number of marked cells
53
 
  log(INFO,
 
53
  log(PROGRESS,
54
54
      "Marking %d cells out of %d (%.1f%%) for refinement",
55
55
      num_marked, markers.size(), 100.0*num_marked/markers.size());
56
56
}
67
67
 
68
68
  // Sort cell indices by indicators and compute sum of error
69
69
  // indicators
70
 
  std::map<double, uint> sorted_cells;
71
 
  std::map<double, uint>::reverse_iterator it;
 
70
  std::map<double, std::size_t> sorted_cells;
 
71
  std::map<double, std::size_t>::reverse_iterator it;
72
72
  double eta_T_H = 0;
73
 
  for (dolfin::uint i = 0; i < mesh.num_cells(); i++)
 
73
  for (std::size_t i = 0; i < mesh.num_cells(); i++)
74
74
  {
75
75
    const double value = indicators[i];
76
76
    eta_T_H += value;