~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to nfem/pbasis/bubble_numbering.h

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _RHEOLEF_BUBBLE_NUMBERING_H
 
2
#define _RHEOLEF_BUBBLE_NUMBERING_H
 
3
///
 
4
/// This file is part of Rheolef.
 
5
///
 
6
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
 
7
///
 
8
/// Rheolef is free software; you can redistribute it and/or modify
 
9
/// it under the terms of the GNU General Public License as published by
 
10
/// the Free Software Foundation; either version 2 of the License, or
 
11
/// (at your option) any later version.
 
12
///
 
13
/// Rheolef is distributed in the hope that it will be useful,
 
14
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
/// GNU General Public License for more details.
 
17
///
 
18
/// You should have received a copy of the GNU General Public License
 
19
/// along with Rheolef; if not, write to the Free Software
 
20
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
///
 
22
/// =========================================================================
 
23
#include "rheolef/numbering.h"
 
24
 
 
25
namespace rheolef { 
 
26
 
 
27
template <class T, class M>
 
28
class numbering_bubble : public numbering_rep<T,M> {
 
29
public:
 
30
// typedefs:
 
31
 
 
32
  typedef numbering_rep<T,M>       base;
 
33
  typedef typename base::size_type size_type;
 
34
 
 
35
// allocator:
 
36
 
 
37
  numbering_bubble() { base::_basis = basis("bubble"); }
 
38
 
 
39
// global method:
 
40
 
 
41
  std::string name() const;
 
42
  size_type degree () const;
 
43
  void set_degree (size_type degree) const;
 
44
  bool is_continuous() const;
 
45
  size_type       ndof (const geo_size& gs, size_type map_dim) const;
 
46
  size_type   dis_ndof (const geo_size& gs, size_type map_dim) const;
 
47
  void        dis_idof (const geo_size& gs, const geo_element& K, std::vector<size_type>& dis_idof) const;
 
48
  void set_ios_permutations (const geo_basic<T,M>& omega,
 
49
                array<size_type,M>&   idof2ios_dis_idof,
 
50
                array<size_type,M>&   ios_idof2dis_idof) const;
 
51
};
 
52
 
 
53
}// namespace rheolef
 
54
#endif // _RHEOLEF_BUBBLE_NUMBERING_H