Code_Saturne
CFD tool
Macros | Typedefs | Enumerations | Functions | Variables
ecs_def.h File Reference
#include "cs_config.h"
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <libintl.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define restrict
 
#define ECS_ABS(a)   ((a) < 0 ? -(a) : (a)) /* Absolute value */
 
#define ECS_MIN(a, b)   ((a) > (b) ? (b) : (a)) /* Minimum */
 
#define ECS_MAX(a, b)   ((a) < (b) ? (b) : (a)) /* Maximum */
 
#define ECS_PATH_SEP   '/'
 
#define ECS_REAL_PRECISION   1.e-13
 
#define ECS_STR_SIZE   80
 
#define ECS_PAS_NUL   0
 
#define ECS_PAS_UNITE   1
 
#define ECS_LNG_AFF_STR   43
 
#define ECS_LNG_AFF_ENT   8
 
#define ECS_LNG_AFF_REE_MANTIS   11
 
#define ECS_LNG_AFF_REE_PRECIS   2
 
#define ECS_FMT_AFF_REE_PARAM   "%.15E"
 
#define _(String)   gettext(String)
 
#define gettext_noop(String)   String
 
#define N_(String)   gettext_noop(String)
 
#define BEGIN_C_DECLS
 
#define END_C_DECLS
 

Typedefs

typedef int ecs_int_t
 
typedef size_t ecs_size_t
 
typedef double ecs_coord_t
 
typedef char ecs_byte_t
 

Enumerations

enum  ecs_type_t {
  ECS_TYPE_char, ECS_TYPE_ecs_coord_t, ECS_TYPE_ecs_int_t, ECS_TYPE_ecs_size_t,
  ECS_TYPE_size_t, ECS_TYPE_void
}
 
enum  ecs_elt_typ_t {
  ECS_ELT_TYP_NUL, ECS_ELT_TYP_FAC_TRIA, ECS_ELT_TYP_FAC_QUAD, ECS_ELT_TYP_CEL_TETRA,
  ECS_ELT_TYP_CEL_PYRAM, ECS_ELT_TYP_CEL_PRISM, ECS_ELT_TYP_CEL_HEXA, ECS_ELT_TYP_FAC_POLY,
  ECS_ELT_TYP_CEL_POLY, ECS_ELT_TYP_FIN
}
 

Functions

void ecs_init_gestion_erreur (void)
 
void ecs_exit (int statut)
 
void ecs_warn (void)
 
void ecs_error (const char *file_name, const int line_num, const int sys_error_code, const char *format,...)
 
void ecs_print_padded_str (const char *str, int width)
 

Variables

char ecs_glob_build_date []
 
int ecs_glob_have_cgns
 
int ecs_glob_cgns_ver_maj
 
int ecs_glob_cgns_ver_min
 
int ecs_glob_cgns_ver_rel
 
int ecs_glob_have_med
 
const ecs_elt_typ_t ecs_glob_typ_elt [2][9]
 

Macro Definition Documentation

◆ _

#define _ (   String)    gettext(String)

◆ BEGIN_C_DECLS

#define BEGIN_C_DECLS

◆ ECS_ABS

#define ECS_ABS (   a)    ((a) < 0 ? -(a) : (a)) /* Absolute value */

◆ ECS_FMT_AFF_REE_PARAM

#define ECS_FMT_AFF_REE_PARAM   "%.15E"

◆ ECS_LNG_AFF_ENT

#define ECS_LNG_AFF_ENT   8

◆ ECS_LNG_AFF_REE_MANTIS

#define ECS_LNG_AFF_REE_MANTIS   11

◆ ECS_LNG_AFF_REE_PRECIS

#define ECS_LNG_AFF_REE_PRECIS   2

◆ ECS_LNG_AFF_STR

#define ECS_LNG_AFF_STR   43

◆ ECS_MAX

#define ECS_MAX (   a,
 
)    ((a) < (b) ? (b) : (a)) /* Maximum */

◆ ECS_MIN

#define ECS_MIN (   a,
 
)    ((a) > (b) ? (b) : (a)) /* Minimum */

◆ ECS_PAS_NUL

#define ECS_PAS_NUL   0

◆ ECS_PAS_UNITE

#define ECS_PAS_UNITE   1

◆ ECS_PATH_SEP

#define ECS_PATH_SEP   '/'

◆ ECS_REAL_PRECISION

#define ECS_REAL_PRECISION   1.e-13

◆ ECS_STR_SIZE

#define ECS_STR_SIZE   80

◆ END_C_DECLS

#define END_C_DECLS

◆ gettext_noop

#define gettext_noop (   String)    String

◆ N_

#define N_ (   String)    gettext_noop(String)

◆ restrict

#define restrict

Typedef Documentation

◆ ecs_byte_t

typedef char ecs_byte_t

◆ ecs_coord_t

typedef double ecs_coord_t

◆ ecs_int_t

typedef int ecs_int_t

◆ ecs_size_t

typedef size_t ecs_size_t

Enumeration Type Documentation

◆ ecs_elt_typ_t

Enumerator
ECS_ELT_TYP_NUL 
ECS_ELT_TYP_FAC_TRIA 
ECS_ELT_TYP_FAC_QUAD 
ECS_ELT_TYP_CEL_TETRA 
ECS_ELT_TYP_CEL_PYRAM 
ECS_ELT_TYP_CEL_PRISM 
ECS_ELT_TYP_CEL_HEXA 
ECS_ELT_TYP_FAC_POLY 
ECS_ELT_TYP_CEL_POLY 
ECS_ELT_TYP_FIN 

◆ ecs_type_t

enum ecs_type_t
Enumerator
ECS_TYPE_char 
ECS_TYPE_ecs_coord_t 
ECS_TYPE_ecs_int_t 
ECS_TYPE_ecs_size_t 
ECS_TYPE_size_t 
ECS_TYPE_void 

Function Documentation

◆ ecs_error()

void ecs_error ( const char *  file_name,
const int  line_num,
const int  sys_error_code,
const char *  format,
  ... 
)
Here is the call graph for this function:

◆ ecs_exit()

void ecs_exit ( int  statut)
Here is the call graph for this function:

◆ ecs_init_gestion_erreur()

void ecs_init_gestion_erreur ( void  )

◆ ecs_print_padded_str()

void ecs_print_padded_str ( const char *  str,
int  width 
)

◆ ecs_warn()

void ecs_warn ( void  )

Variable Documentation

◆ ecs_glob_build_date

char ecs_glob_build_date[]

◆ ecs_glob_cgns_ver_maj

int ecs_glob_cgns_ver_maj

◆ ecs_glob_cgns_ver_min

int ecs_glob_cgns_ver_min

◆ ecs_glob_cgns_ver_rel

int ecs_glob_cgns_ver_rel

◆ ecs_glob_have_cgns

int ecs_glob_have_cgns

◆ ecs_glob_have_med

int ecs_glob_have_med

◆ ecs_glob_typ_elt

const ecs_elt_typ_t ecs_glob_typ_elt[2][9]