 |
6.3
general documentation
|
|
Go to the documentation of this file.
34 #if defined(HAVE_CONFIG_H)
35 # 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
66 # define _(String) (String)
67 # define N_(String) String
68 # define textdomain(String) (String)
69 # define gettext(String) (String)
70 # define dgettext(Domain,String) (String)
71 # define dcgettext(Domain,String,Type) (String)
72 # define bindtextdomain(Domain, Directory) (Domain)
84 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
88 # if !defined(MPI_VERSION)
89 # define MPI_VERSION 1
94 # define MPI_INFO_NULL 0
99 #if defined(HAVE_OPENMP)
111 #if !defined(__STDC_VERSION__)
112 # define __STDC_VERSION__ 1989
120 #if (__STDC_VERSION__ < 199901L)
122 # if defined(__GNUC__)
123 # define inline __inline__
124 # define restrict __restrict__
134 # ifndef HAVE_RESTRICT
163 #elif HAVE_INTTYPES_H
164 # include <inttypes.h>
171 #if defined(HAVE_SYS_TYPES_H)
172 #include <sys/types.h>
178 # include <stdbool.h>
182 # define _Bool signed char;
190 # define __bool_true_false_are_defined 1
195 #if !defined(HAVE_INT32_T)
196 # if (SIZEOF_INT == 4)
198 # elif (SIZEOF_SHORT == 4)
199 typedef short int32_t;
207 #if !defined(HAVE_INT64_T)
208 # if (SIZEOF_INT == 8)
210 # elif (SIZEOF_LONG == 8)
211 typedef long int64_t;
212 # elif (HAVE_LONG_LONG == 8)
213 typedef long long int64_t;
221 #if !defined(HAVE_UINT32_T)
222 # if (SIZEOF_INT == 4)
223 typedef unsigned uint32_t;
224 # elif (SIZEOF_SHORT == 4)
225 typedef unsigned short uint32_t;
233 #if !defined(HAVE_UINT64_T)
234 # if (SIZEOF_INT == 8)
235 typedef unsigned uint64_t;
236 # elif (SIZEOF_LONG == 8)
237 typedef unsigned long uint64_t;
238 # elif (HAVE_LONG_LONG)
239 typedef unsigned long long uint64_t;
284 #if defined(HAVE_LONG_GNUM)
285 #if (SIZEOF_LONG == 8)
287 #elif (SIZEOF_LONG_LONG == 8)
298 #if defined(HAVE_LONG_LNUM)
363 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
365 # define CS_MPI_REAL MPI_DOUBLE
369 # if defined(HAVE_LONG_GNUM)
370 # if (SIZEOF_LONG == 8)
371 # define CS_MPI_GNUM MPI_UNSIGNED_LONG
372 # elif (SIZEOF_LONG_LONG == 8)
373 # if defined(MPI_UNSIGNED_LONG_LONG)
374 # define CS_MPI_GNUM MPI_UNSIGNED_LONG_LONG
375 # elif defined(MPI_LONG_LONG)
376 # define CS_MPI_GNUM MPI_LONG_LONG
379 # if !defined(CS_MPI_GNUM)
383 # define CS_MPI_GNUM MPI_UNSIGNED
388 # if defined(HAVE_LONG_LNUM)
389 # define CS_MPI_LNUM MPI_LONG
391 # define CS_MPI_LNUM MPI_INT
394 # define CS_MPI_EFLAG MPI_UNSIGNED
395 # define CS_MPI_FLAG MPI_UNSIGNED_SHORT
396 # define CS_MPI_COORD MPI_DOUBLE
403 #if defined(HAVE_LONG_GNUM)
404 # define CS_GNUM_TYPE CS_UINT64
405 #elif (SIZEOF_INT == 8)
406 # define CS_GNUM_TYPE CS_UINT64
408 # define CS_GNUM_TYPE CS_UINT32
411 #if defined(HAVE_LONG_LNUM)
412 # if (SIZEOF_LONG == 8)
413 # define CS_LNUM_TYPE CS_INT64
415 # define CS_LNUM_TYPE CS_INT32
418 # if (SIZEOF_INT == 8)
419 # define CS_LNUM_TYPE CS_INT64
421 # define CS_LNUM_TYPE CS_INT32
425 #if (SIZEOF_INT == 8)
426 # define CS_INT_TYPE CS_INT64
428 # define CS_INT_TYPE CS_INT32
431 #if (SIZEOF_INT == 8)
432 # define CS_UINT_TYPE CS_UINT64
434 # define CS_UINT_TYPE CS_UINT32
437 #define CS_FLAG_TYPE CS_UINT16
438 #define CS_EFLAG_TYPE CS_UINT_TYPE
439 #define CS_REAL_TYPE CS_DOUBLE
440 #define CS_COORD_TYPE CS_DOUBLE
446 #define CS_THR_MIN 128
451 #define CS_CL_SIZE 64
457 #define CS_ABS(a) ((a) < 0 ? -(a) : (a))
458 #define CS_MIN(a,b) ((a) < (b) ? (a) : (b))
459 #define CS_MAX(a,b) ((a) > (b) ? (a) : (b))
481 #define CS_UNUSED(x) (void)(x)
482 #define CS_NO_WARN_IF_UNUSED(x) (void)(x)
491 #if defined(__cplusplus)
492 # define BEGIN_C_DECLS extern "C" {
493 # define END_C_DECLS }
495 # define BEGIN_C_DECLS
508 #if !defined (__hpux)
509 #define CS_PROCF(x, y) x##_
511 #define CS_PROCF(x, y) x
521 #if defined (__uxpv__)
522 #define CS_ARGF_SUPP_CHAINE
524 #define CS_ARGF_SUPP_CHAINE , ...
542 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
555 #if defined(HAVE_MPI) && !defined(CS_IGNORE_MPI)
580 return ((i > 0) ? ((i-1)/m+1)*m : 0);
MPI_Datatype cs_datatype_to_mpi[]
Definition: cs_defs.c:157
@ CS_FLOAT
Definition: cs_defs.h:261
MPI_Comm cs_glob_mpi_comm
Definition: cs_defs.c:179
char cs_byte_t
Definition: cs_defs.h:305
cs_real_t cs_real_10_t[10]
Definition: cs_defs.h:322
@ CS_NO_INTERLACE
Definition: cs_defs.h:467
cs_real_33_t cs_real_332_t[2]
vector of 2 3x3 matrices of floating-point values
Definition: cs_defs.h:336
cs_real_t cs_real_333_t[3][3][3]
Definition: cs_defs.h:328
cs_real_t cs_real_99_t[9][9]
Definition: cs_defs.h:326
cs_real_t cs_real_69_t[6][9]
Definition: cs_defs.h:334
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:317
const size_t cs_datatype_size[]
Definition: cs_defs.c:133
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:316
cs_real_66_t cs_real_662_t[2]
Definition: cs_defs.h:338
const char * cs_datatype_name[]
Definition: cs_defs.c:143
double cs_real_t
Floating-point value.
Definition: cs_defs.h:304
@ CS_UINT32
Definition: cs_defs.h:266
Definition: cs_defs.h:341
@ CS_INT32
Definition: cs_defs.h:264
@ CS_DOUBLE
Definition: cs_defs.h:262
int cs_glob_rank_id
Definition: cs_defs.c:174
cs_datatype_t
Definition: cs_defs.h:257
const char cs_empty_string[]
Definition: cs_defs.c:129
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:283
@ CS_INT64
Definition: cs_defs.h:265
cs_real_t cs_real_9_t[9]
Definition: cs_defs.h:321
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:319
@ CS_INTERLACE
Definition: cs_defs.h:466
@ CS_UINT64
Definition: cs_defs.h:267
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_real_t cs_real_34_t[3][4]
Definition: cs_defs.h:330
int cs_glob_n_threads
Definition: cs_defs.c:172
cs_interlace_t
Definition: cs_defs.h:464
int cs_glob_n_ranks
Definition: cs_defs.c:175
cs_coord_t cs_coord_3_t[3]
Definition: cs_defs.h:313
@ CS_DATATYPE_NULL
Definition: cs_defs.h:259
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:325
cs_lnum_t cs_lnum_2_t[2]
vector of 2 local mesh-entity ids
Definition: cs_defs.h:310
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:324
cs_real_t cs_real_4_t[4]
vector of 4 floating-point values
Definition: cs_defs.h:318
unsigned short int cs_flag_t
Definition: cs_defs.h:306
@ CS_CHAR
Definition: cs_defs.h:260
@ CS_UINT16
Definition: cs_defs.h:263
double cs_coord_t
Definition: cs_defs.h:302
Definition: cs_defs.h:350
cs_real_t cs_real_63_t[6][3]
Definition: cs_defs.h:332
cs_lnum_t cs_lnum_3_t[3]
Definition: cs_defs.h:311