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