dune-grid 2.8.0
Loading...
Searching...
No Matches
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
11namespace 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
Include standard header files.
Definition: agrid.hh:58
Definition: basic.hh:29
Definition: dim.hh:16
int dimworld()
Definition: dim.hh:27
static const char * ID
Definition: dim.hh:20
bool ok()
Definition: dim.hh:31
int dim()
Definition: dim.hh:24