~ubuntu-branches/ubuntu/trusty/deal.ii/trusty

« back to all changes in this revision

Viewing changes to deal.II/source/grid/tria.all_dimensions.cc

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV, Adam C. Powell, IV, Denis Barbier
  • Date: 2010-07-29 13:47:01 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100729134701-akb8jb3stwge8tcm
Tags: 6.3.1-1
[ Adam C. Powell, IV ]
* Changed to source format 3.0 (quilt).
* Changed maintainer to debian-science with Adam Powell as uploader.
* Added source lintian overrides about Adam Powell's name.
* Added Vcs info on git repository.
* Bumped Standards-Version.
* Changed stamp-patch to patch target and fixed its application criterion.
* Moved make_dependencies and expand_instantiations to a versioned directory
  to avoid shlib package conflicts.

[ Denis Barbier ]
* New upstream release (closes: #562332).
  + Added libtbb support.
  + Forward-ported all patches.
* Updates for new PETSc version, including workaround for different versions
  of petsc and slepc.
* Add debian/watch.
* Update to debhelper 7.
* Added pdebuild patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//---------------------------------------------------------------------------
2
 
//    $Id: tria.all_dimensions.cc 14038 2006-10-23 02:46:34Z bangerth $
 
2
//    $Id: tria.all_dimensions.cc 20149 2009-11-23 04:06:17Z bangerth $
3
3
//    Version: $Name$
4
4
//
5
 
//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
 
5
//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors
6
6
//
7
7
//    This file is subject to QPL and may not be  distributed
8
8
//    without copyright and license information. Please refer
37
37
bool
38
38
SubCellData::check_consistency (const unsigned int dim) const
39
39
{
40
 
  switch (dim) 
 
40
  switch (dim)
41
41
    {
42
42
      case 1:
43
43
            return ((boundary_lines.size() == 0) &&
54
54
  namespace Triangulation
55
55
  {
56
56
 
57
 
    NumberCache<1>::NumberCache () :
 
57
    NumberCache<1>::NumberCache ()
 
58
                    :
 
59
                    n_levels (0),
58
60
                    n_lines (0),
59
 
                    n_active_lines (0) 
 
61
                    n_active_lines (0)
60
62
                                       // all other fields are
61
63
                                       // default constructed
62
64
    {}
66
68
    unsigned int
67
69
    NumberCache<1>::memory_consumption () const
68
70
    {
69
 
      return (MemoryConsumption::memory_consumption (n_lines) +
 
71
      return (MemoryConsumption::memory_consumption (n_levels) +
 
72
              MemoryConsumption::memory_consumption (n_lines) +
70
73
              MemoryConsumption::memory_consumption (n_lines_level) +
71
74
              MemoryConsumption::memory_consumption (n_active_lines) +
72
75
              MemoryConsumption::memory_consumption (n_active_lines_level));
75
78
 
76
79
    NumberCache<2>::NumberCache () :
77
80
                    n_quads (0),
78
 
                    n_active_quads (0) 
 
81
                    n_active_quads (0)
79
82
                                       // all other fields are
80
83
                                       // default constructed
81
84
    {}
96
99
 
97
100
    NumberCache<3>::NumberCache () :
98
101
                    n_hexes (0),
99
 
                    n_active_hexes (0) 
 
102
                    n_active_hexes (0)
100
103
                                       // all other fields are
101
104
                                       // default constructed
102
105
    {}