1
#ifndef _RHEOLEF_BUBBLE_NUMBERING_H
2
#define _RHEOLEF_BUBBLE_NUMBERING_H
4
/// This file is part of Rheolef.
6
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
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.
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.
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
22
/// =========================================================================
23
#include "rheolef/numbering.h"
27
template <class T, class M>
28
class numbering_bubble : public numbering_rep<T,M> {
32
typedef numbering_rep<T,M> base;
33
typedef typename base::size_type size_type;
37
numbering_bubble() { base::_basis = basis("bubble"); }
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;
54
#endif // _RHEOLEF_BUBBLE_NUMBERING_H