~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to dolfin/common/types.h

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// You should have received a copy of the GNU Lesser General Public License
16
16
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17
17
//
 
18
// Modified by Garth N. Wells, 2012
 
19
//
18
20
// First added:  2008-04-22
19
 
// Last changed: 2011-08-10
 
21
// Last changed: 2012-11-17
20
22
//
21
23
// This file provides DOLFIN typedefs for basic types.
22
24
 
24
26
#define __DOLFIN_TYPES_H
25
27
 
26
28
#include <complex>
27
 
#include <set>
 
29
 
 
30
#ifdef HAS_PETSC
 
31
#include <petscsys.h>
 
32
#endif
28
33
 
29
34
namespace dolfin
30
35
{
31
36
 
32
 
  // Unsigned integers
33
 
  typedef unsigned int uint;
34
 
 
35
 
  // Complex numbers
 
37
  /// Index type for compatibility with linear algebra backend(s)
 
38
  #ifdef HAS_PETSC
 
39
  typedef PetscInt DolfinIndex;
 
40
  #else
 
41
  typedef int DolfinIndex;
 
42
  #endif
 
43
 
 
44
  /// Unsigned integers
 
45
  //typedef unsigned int uint;
 
46
 
 
47
  /// Complex numbers
36
48
  typedef std::complex<double> complex;
37
49
 
38
50
}