Config.h 1.74 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/******************************************************************************
 *
 * AMDiS - Adaptive multidimensional simulations
 *
 * Copyright (C) 2013 Dresden University of Technology. All Rights Reserved.
 * Web: https://fusionforge.zih.tu-dresden.de/projects/amdis
 *
 * Authors: 
 * Simon Vey, Thomas Witkowski, Andreas Naumann, Simon Praetorius, et al.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *
 * This file is part of AMDiS
 *
 * See also license.opensource.txt in the distribution.
 * 
 ******************************************************************************/



/** \file Config.h */

25
26
27
28
29
30
31
#pragma once

/** \brief current AMDiS version */
#ifndef AMDIS_VERSION
#define AMDIS_VERSION  "AMDiS: Version 0.9.1"
#endif

32
33
34
35
36
37
38
39
40
#ifdef DEBUG
#undef DEBUG
#endif
#ifdef NDEBUG
#define DEBUG 0
#else
#define DEBUG 1
#endif

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include <boost/config.hpp>

#define CACHE_LINE 16

#if defined(__clang__)					// Clang/LLVM.
  #include "config/Config_clang.h"
  
#elif defined(__ICC) || defined(__INTEL_COMPILER)	// Intel ICC/ICPC. 
  #include "config/Config_intel.h"
  
#elif defined(__GNUC__) || defined(__GNUG__)		// GNU GCC/G++.
  #include "config/Config_gcc.h"
  
#elif defined(__HP_cc) || defined(__HP_aCC)
  error: not supported compiler
  
#elif defined(__IBMC__) || defined(__IBMCPP__)
  error: not supported compiler
  
#elif defined(_MSC_VER)					// Microsoft Visual Studio. 
  #include "config/Config_msc.h"
  
#elif defined(__PGI)					// Portland Group PGCC/PGCPP.
  error: not supported compiler
//   #include "Config_pgi.h"  

#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  error: not supported compiler
#endif

71
#include "config/Config_defaults.h"