dune-grid  2.11
dim.hh
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 // vi: set et ts=4 sw=2 sts=2:
5 #ifndef DUNE_DGF_DIMBLOCK_HH
6 #define DUNE_DGF_DIMBLOCK_HH
7 
8 #include <iostream>
9 
11 
12 
13 namespace Dune
14 {
15 
16  namespace dgf
17  {
18  class DimBlock : public BasicBlock {
19  int _dimworld; // dimension of world
20  int _dim; // dimension of grid
21  public:
22  const static char* ID;
23  // initialize block and get dimension of world
24  DimBlock ( std :: istream &in );
25  // get dimension of world found in block
26  int dim() {
27  return _dim;
28  }
29  int dimworld() {
30  return _dimworld;
31  }
32  // some information
33  bool ok() {
34  return true;
35  }
36  };
37 
38  } // end namespace dgf
39 
40 } // end namespace Dune
41 
42 #endif
int dimworld()
Definition: dim.hh:29
bool ok()
Definition: dim.hh:33
int dim()
Definition: dim.hh:26
Include standard header files.
Definition: agrid.hh:59
Definition: dim.hh:18
DimBlock(std ::istream &in)
Definition: dim.cc:16
Definition: basic.hh:30
static const char * ID
Definition: dim.hh:22