Dune Core Modules (2.6.0)

dim.hh
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
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
Dune namespace.
Definition: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)