~ubuntu-branches/ubuntu/trusty/rheolef/trusty

« back to all changes in this revision

Viewing changes to nfem/basis/numbering.cc

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito
  • Date: 2012-04-06 09:12:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120406091221-m58me99p1nxqui49
Tags: 6.0-1
* New upstream release 6.0 (major changes):
  - massively distributed and parallel support
  - full FEM characteristic method (Lagrange-Gakerkin method) support
  - enhanced users documentation 
  - source code supports g++-4.7 (closes: #667356)
* debian/control: dependencies for MPI distributed solvers added
* debian/rules: build commands simplified
* debian/librheolef-dev.install: man1/* to man9/* added
* debian/changelog: package description rewritted (closes: #661689)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// file automatically generated by: make_numbering_cxx.sh
2
 
///
3
 
/// This file is part of Rheolef.
4
 
///
5
 
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
6
 
///
7
 
/// Rheolef is free software; you can redistribute it and/or modify
8
 
/// it under the terms of the GNU General Public License as published by
9
 
/// the Free Software Foundation; either version 2 of the License, or
10
 
/// (at your option) any later version.
11
 
///
12
 
/// Rheolef is distributed in the hope that it will be useful,
13
 
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
/// GNU General Public License for more details.
16
 
///
17
 
/// You should have received a copy of the GNU General Public License
18
 
/// along with Rheolef; if not, write to the Free Software
19
 
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
 
///
21
 
/// =========================================================================
22
 
#include "rheolef/numbering.h"
23
 
#include "P0_numbering.h"
24
 
#include "P1_numbering.h"
25
 
#include "P2_numbering.h"
26
 
#include "P1d_numbering.h"
27
 
#include "P2d_numbering.h"
28
 
#include "bubble_numbering.h"
29
 
#include "P1pw_numbering.h"
30
 
#include "H3_numbering.h"
31
 
namespace rheolef {
32
 
using namespace std;
33
 
 
34
 
numbering_rep* 
35
 
numbering_rep::make_ptr (string name) 
36
 
{
37
 
  // TODO: use gperf instead of a long if-else test suite
38
 
  if (name == "") return 0;
39
 
  if (name == "P0_numbering") return new_macro(numbering_P0);
40
 
  if (name == "P1_numbering") return new_macro(numbering_P1);
41
 
  if (name == "P2_numbering") return new_macro(numbering_P2);
42
 
  if (name == "P1d_numbering") return new_macro(numbering_P1d);
43
 
  if (name == "P2d_numbering") return new_macro(numbering_P2d);
44
 
  if (name == "bubble_numbering") return new_macro(numbering_bubble);
45
 
  if (name == "P1pw_numbering") return new_macro(numbering_P1pw);
46
 
  if (name == "H3_numbering") return new_macro(numbering_H3);
47
 
  error_macro ("undefined numbering `" << name << "'");
48
 
}
49
 
 
50
 
} // namespace rheolef