41 #if defined(HAVE_CONFIG_H)
42 # include "cs_config.h"
49 #if defined(ENABLE_NLS) && defined(HAVE_GETTEXT)
52 # define _(String) dgettext(PACKAGE, String)
54 # define N_(String) gettext_noop(String)
56 # define N_(String) String
61 # define _(String) (String)
62 # define N_(String) String
63 # define textdomain(String) (String)
64 # define gettext(String) (String)
65 # define dgettext(Domain,String) (String)
66 # define dcgettext(Domain,String,Type) (String)
67 # define bindtextdomain(Domain, Directory) (Domain)
75 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
79 #if defined(HAVE_OPENMP)
89 #if !defined(__STDC_VERSION__)
90 # define __STDC_VERSION__ 1989
98 #if (__STDC_VERSION__ < 199901L)
100 # if defined(__GNUC__)
101 # define inline __inline__
102 # define restrict __restrict__
133 #elif HAVE_INTTYPES_H
134 # include <inttypes.h>
141 #if defined(HAVE_SYS_TYPES_H)
142 #include <sys/types.h>
148 # include <stdbool.h>
154 # define _Bool signed char;
160 # define __bool_true_false_are_defined 1
165 #if !defined(HAVE_INT32_T)
166 # if (SIZEOF_INT == 4)
168 # elif (SIZEOF_SHORT == 4)
169 typedef short int32_t;
177 #if !defined(HAVE_INT64_T)
178 # if (SIZEOF_INT == 8)
180 # elif (SIZEOF_LONG == 8)
181 typedef long int64_t;
182 # elif (HAVE_LONG_LONG == 8)
183 typedef long long int64_t;
191 #if !defined(HAVE_UINT32_T)
192 # if (SIZEOF_INT == 4)
193 typedef unsigned uint32_t;
194 # elif (SIZEOF_SHORT == 4)
195 typedef unsigned short uint32_t;
203 #if !defined(HAVE_UINT64_T)
204 # if (SIZEOF_INT == 8)
205 typedef unsigned uint64_t;
206 # elif (SIZEOF_LONG == 8)
207 typedef unsigned long uint64_t;
208 # elif (HAVE_LONG_LONG)
209 typedef unsigned long long uint64_t;
246 #if defined(HAVE_LONG_GNUM)
247 #if (SIZEOF_LONG == 8)
249 #elif (SIZEOF_LONG_LONG == 8)
278 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
280 # define CS_MPI_INT MPI_INT
281 # define CS_MPI_REAL MPI_DOUBLE
285 # if defined(HAVE_LONG_GNUM)
286 # if (SIZEOF_LONG == 8)
287 # define CS_MPI_GNUM MPI_UNSIGNED_LONG
288 # elif (SIZEOF_LONG_LONG == 8)
289 # if defined(MPI_UNSIGNED_LONG_LONG)
290 # define CS_MPI_GNUM MPI_UNSIGNED_LONG_LONG
291 # elif defined(MPI_LONG_LONG)
292 # define CS_MPI_GNUM MPI_LONG_LONG
295 # if !defined(CS_MPI_GNUM)
299 # define CS_MPI_GNUM MPI_UNSIGNED
302 # define CS_MPI_LNUM MPI_INT
303 # define CS_MPI_COORD MPI_DOUBLE
310 #if defined(HAVE_LONG_GNUM)
311 # define CS_GNUM_TYPE CS_UINT64
312 #elif (SIZEOF_INT == 8)
313 # define CS_GNUM_TYPE CS_UINT64
315 # define CS_GNUM_TYPE CS_UINT32
318 #if (SIZEOF_INT == 8)
319 # define CS_LNUM_TYPE CS_INT64
321 # define CS_LNUM_TYPE CS_INT32
324 #if (SIZEOF_INT == 8)
325 # define CS_INT_TYPE CS_INT64
327 # define CS_INT_TYPE CS_INT32
330 #define CS_REAL_TYPE CS_DOUBLE
331 #define CS_COORD_TYPE CS_DOUBLE
337 #define CS_ABS(a) ((a) < 0 ? -(a) : (a))
338 #define CS_MIN(a,b) ((a) < (b) ? (a) : (b))
339 #define CS_MAX(a,b) ((a) > (b) ? (a) : (b))
361 #if defined(__cplusplus)
362 # define BEGIN_C_DECLS extern "C" {
363 # define END_C_DECLS }
365 # define BEGIN_C_DECLS
378 #if !defined (__hpux)
379 #define CS_PROCF(x, y) x##_
381 #define CS_PROCF(x, y) x
391 #if defined (__uxpv__)
392 #define CS_ARGF_SUPP_CHAINE
394 #define CS_ARGF_SUPP_CHAINE , ...
408 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
410 extern MPI_Datatype cs_datatype_to_mpi[];
421 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
423 extern MPI_Comm cs_glob_mpi_comm;
cs_datatype_t
Definition: cs_defs.h:223
Definition: cs_defs.h:230
Definition: cs_defs.h:229
Definition: cs_defs.h:349
cs_real_t cs_real_4_t[4]
Definition: cs_defs.h:272
char cs_byte_t
Definition: cs_defs.h:265
cs_interlace_t
Definition: cs_defs.h:347
Definition: cs_defs.h:225
int cs_glob_n_ranks
Definition: cs_defs.c:82
Definition: cs_defs.h:232
int cs_int_t
Definition: cs_defs.h:263
double cs_coord_t
Definition: cs_defs.h:261
Definition: cs_defs.h:350
int cs_lnum_t
Definition: cs_defs.h:260
Definition: cs_defs.h:227
int cs_glob_n_threads
Definition: cs_defs.c:79
unsigned cs_gnum_t
Definition: cs_defs.h:255
Definition: cs_defs.h:231
const size_t cs_datatype_size[]
Definition: cs_defs.c:43
Definition: cs_defs.h:226
double cs_real_t
Definition: cs_defs.h:264
const char * cs_datatype_name[]
Definition: cs_defs.c:52
cs_real_t cs_real_3_t[3]
Definition: cs_defs.h:271
Definition: cs_defs.h:228
int cs_glob_rank_id
Definition: cs_defs.c:81
#define _Bool
Definition: cs_defs.h:154
cs_real_t cs_real_33_t[3][3]
Definition: cs_defs.h:273
cs_lnum_t cs_lnum_2_t[2]
Definition: cs_defs.h:269