dune-grid  2.2.1
dim.hh
Go to the documentation of this file.
1 #ifndef DUNE_DGF_DIMBLOCK_HH
2 #define DUNE_DGF_DIMBLOCK_HH
3 
4 #include <iostream>
5 
7 
8 
9 namespace Dune
10 {
11 
12  namespace dgf
13  {
14  class DimBlock : public BasicBlock {
15  int _dimworld; // dimension of world
16  int _dim; // dimension of grid
17  public:
18  const static char* ID;
19  // initialize block and get dimension of world
20  DimBlock ( std :: istream &in );
21  // get dimension of world found in block
22  int dim() {
23  return _dim;
24  }
25  int dimworld() {
26  return _dimworld;
27  }
28  // some information
29  bool ok() {
30  return true;
31  }
32  };
33 
34  } // end namespace dgf
35 
36 } // end namespace Dune
37 
38 #endif