dune-grid
2.3beta2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
io
file
dgfparser
blocks
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
8
#include <
dune/grid/io/file/dgfparser/blocks/basic.hh
>
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
Generated on Mon Feb 10 2014 21:12:28 for dune-grid by
1.8.1.2