| 1 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 2 |
// vi: set et ts=4 sw=2 sts=2: |
| 3 |
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 4 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
|
| 6 |
/** \file |
| 7 |
\brief Globally set data types |
| 8 |
|
| 9 |
The basic types (normally 'short', 'int', 'float' and 'double') are |
| 10 |
replaced by 'SHORT', 'INT', 'FLOAT' and 'DOUBLE'. The type 'DOUBLE' |
| 11 |
is used for all Cartesian coordinates of the (x,y[,z])-directions of |
| 12 |
the grids. |
| 13 |
*/ |
| 14 |
|
| 15 |
#ifndef UGTYPES_H |
| 16 |
#define UGTYPES_H |
| 17 |
|
| 18 |
#include "namespace.h" |
| 19 |
|
| 20 |
START_UG_NAMESPACE |
| 21 |
|
| 22 |
/* standard types */ |
| 23 |
|
| 24 |
typedef short SHORT; |
| 25 |
|
| 26 |
/* these types are used for several bitfields. I'd guess that it needs |
| 27 |
at least 32 bits... */ |
| 28 |
typedef int INT; |
| 29 |
typedef unsigned int UINT; |
| 30 |
|
| 31 |
typedef float FLOAT; |
| 32 |
typedef double DOUBLE; |
| 33 |
|
| 34 |
END_UG_NAMESPACE |
| 35 |
|
| 36 |
#endif |