DUNE PDELab (git)

dim.hh
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
10#include <dune/grid/io/file/dgfparser/blocks/basic.hh>
11
12
13namespace 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
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)