OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Centering.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /***************************************************************************
3  *
4  * The IPPL Framework
5  *
6  *
7  * Visit http://people.web.psi.ch/adelmann/ for more details
8  *
9  ***************************************************************************/
10 
11 // Centering.h
12 // Vert and Cell classes used to indicate Field centering method; see also
13 // the file CartesianCentering.h for more centering classes.
14 
15 #ifndef CENTERING_H
16 #define CENTERING_H
17 
18 #include <iostream>
19 
20 // Cell-centered, all components, for all dimensions in cartesian-mesh case.
21 // Recommendation: use CommonCartesianCenterings<D,NComponents,0U>::allCell
22 // instead of this for cartesian meshes.
23 // Keep this class around for backwards compatibility, and possibly for use
24 // with non-cartesian meshes.
25 class Centering
26 {
27 public:
28  static const char* CenteringEnum_Names[3];
29 };
30 
31 class Cell
32 {
33 public:
34  static const char* CenteringName;
35  static void print_Centerings(std::ostream&);
36 };
37 // Vertex-centered, all components, for all dimensions in cartesian-mesh case.
38 // Recommendation: use CommonCartesianCenterings<D,NComponents,0U>::allVert
39 // instead of this for cartesian meshes.
40 // Keep this class around for backwards compatibility, and possibly for use
41 // with non-cartesian meshes.
42 class Vert
43 {
44 public:
45  static const char* CenteringName;
46  static void print_Centerings(std::ostream&);
47 };
48 
49 class Edge
50 {
51 public:
52  static const char* CenteringName;
53  static void print_Centerings(std::ostream&);
54 };
55 
56 #endif // CENTERING_H
57 
58 /***************************************************************************
59  * $RCSfile: Centering.h,v $ $Author: adelmann $
60  * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:28 $
61  * IPPL_VERSION_ID: $Id: Centering.h,v 1.1.1.1 2003/01/23 07:40:28 adelmann Exp $
62  ***************************************************************************/
static void print_Centerings(std::ostream &)
Definition: Centering.cpp:48
Definition: Centering.h:42
static const char * CenteringName
Definition: Centering.h:45
static void print_Centerings(std::ostream &)
Definition: Centering.cpp:43
Definition: Centering.h:49
static const char * CenteringEnum_Names[3]
Definition: Centering.h:28
Definition: Centering.h:31
static void print_Centerings(std::ostream &)
Definition: Centering.cpp:38
static const char * CenteringName
Definition: Centering.h:34
static const char * CenteringName
Definition: Centering.h:52