Code_Saturne
CFD tool
Macros | Typedefs | Enumerations | Functions
cs_restart.h File Reference
#include "cs_defs.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CS_RESTART_SUCCES   0 /* Success */
 
#define CS_RESTART_ERR_FILE_NUM   -1 /* No restart file for the given number */
 
#define CS_RESTART_ERR_LOCATION   -2 /* Undefined location / incorrect size */
 
#define CS_RESTART_ERR_VAL_TYPE   -3 /* Unknown or unexpected value type */
 
#define CS_RESTART_ERR_N_VALS   -4 /* Number of values does not match */
 
#define CS_RESTART_ERR_MODE   -5 /* Incompatible access mode */
 
#define CS_RESTART_ERR_EXISTS   -6 /* Section not available */
 

Typedefs

typedef struct _cs_restart_t cs_restart_t
 

Enumerations

enum  cs_restart_mode_t { CS_RESTART_MODE_READ, CS_RESTART_MODE_WRITE }
 

Functions

void indsui (cs_int_t *isuite)
 
void opnsui (const char *nomsui, const cs_int_t *lngnom, const cs_int_t *ireawr, cs_int_t *numsui, cs_int_t *ierror CS_ARGF_SUPP_CHAINE)
 
void clssui (const cs_int_t *numsui, cs_int_t *ierror)
 
void tstsui (const cs_int_t *numsui, cs_int_t *indcel, cs_int_t *indfac, cs_int_t *indfbr, cs_int_t *indsom)
 
void infsui (const cs_int_t *numsui)
 
void lecsui (const cs_int_t *numsui, const char *nomrub, const cs_int_t *lngnom, const cs_int_t *itysup, const cs_int_t *nbvent, const cs_int_t *irtype, void *tabvar, cs_int_t *ierror CS_ARGF_SUPP_CHAINE)
 
void ecrsui (const cs_int_t *numsui, const char *nomrub, const cs_int_t *lngnom, const cs_int_t *itysup, const cs_int_t *nbvent, const cs_int_t *irtype, const void *tabvar, cs_int_t *ierror CS_ARGF_SUPP_CHAINE)
 
int cs_restart_present (void)
 
cs_restart_tcs_restart_create (const char *name, const char *path, cs_restart_mode_t mode)
 
cs_restart_tcs_restart_destroy (cs_restart_t *restart)
 
void cs_restart_check_base_location (const cs_restart_t *restart, bool *match_cell, bool *match_i_face, bool *match_b_face, bool *match_vertex)
 
int cs_restart_add_location (cs_restart_t *restart, const char *location_name, cs_gnum_t n_glob_ents, cs_lnum_t n_ents, const cs_gnum_t *ent_global_num)
 
void cs_restart_dump_index (const cs_restart_t *restart)
 
int cs_restart_read_section (cs_restart_t *restart, const char *sec_name, int location_id, cs_int_t n_location_vals, cs_type_t val_type, void *val)
 
void cs_restart_write_section (cs_restart_t *restart, const char *sec_name, int location_id, cs_int_t n_location_vals, cs_type_t val_type, const void *val)
 
void cs_restart_print_stats (void)
 

Macro Definition Documentation

◆ CS_RESTART_ERR_EXISTS

#define CS_RESTART_ERR_EXISTS   -6 /* Section not available */

◆ CS_RESTART_ERR_FILE_NUM

#define CS_RESTART_ERR_FILE_NUM   -1 /* No restart file for the given number */

◆ CS_RESTART_ERR_LOCATION

#define CS_RESTART_ERR_LOCATION   -2 /* Undefined location / incorrect size */

◆ CS_RESTART_ERR_MODE

#define CS_RESTART_ERR_MODE   -5 /* Incompatible access mode */

◆ CS_RESTART_ERR_N_VALS

#define CS_RESTART_ERR_N_VALS   -4 /* Number of values does not match */

◆ CS_RESTART_ERR_VAL_TYPE

#define CS_RESTART_ERR_VAL_TYPE   -3 /* Unknown or unexpected value type */

◆ CS_RESTART_SUCCES

#define CS_RESTART_SUCCES   0 /* Success */

Typedef Documentation

◆ cs_restart_t

typedef struct _cs_restart_t cs_restart_t

Enumeration Type Documentation

◆ cs_restart_mode_t

Enumerator
CS_RESTART_MODE_READ 
CS_RESTART_MODE_WRITE 

Function Documentation

◆ clssui()

void clssui ( const cs_int_t numsui,
cs_int_t ierror 
)

◆ cs_restart_add_location()

int cs_restart_add_location ( cs_restart_t restart,
const char *  location_name,
cs_gnum_t  n_glob_ents,
cs_lnum_t  n_ents,
const cs_gnum_t ent_global_num 
)
Here is the call graph for this function:

◆ cs_restart_check_base_location()

void cs_restart_check_base_location ( const cs_restart_t restart,
bool match_cell,
bool match_i_face,
bool match_b_face,
bool match_vertex 
)
Here is the call graph for this function:

◆ cs_restart_create()

cs_restart_t* cs_restart_create ( const char *  name,
const char *  path,
cs_restart_mode_t  mode 
)
Here is the call graph for this function:

◆ cs_restart_destroy()

cs_restart_t* cs_restart_destroy ( cs_restart_t restart)
Here is the call graph for this function:

◆ cs_restart_dump_index()

void cs_restart_dump_index ( const cs_restart_t restart)
Here is the call graph for this function:

◆ cs_restart_present()

int cs_restart_present ( void  )

◆ cs_restart_print_stats()

void cs_restart_print_stats ( void  )
Here is the call graph for this function:

◆ cs_restart_read_section()

int cs_restart_read_section ( cs_restart_t restart,
const char *  sec_name,
int  location_id,
cs_int_t  n_location_vals,
cs_type_t  val_type,
void *  val 
)
Here is the call graph for this function:

◆ cs_restart_write_section()

void cs_restart_write_section ( cs_restart_t restart,
const char *  sec_name,
int  location_id,
cs_int_t  n_location_vals,
cs_type_t  val_type,
const void *  val 
)
Here is the call graph for this function:

◆ ecrsui()

void ecrsui ( const cs_int_t numsui,
const char *  nomrub,
const cs_int_t lngnom,
const cs_int_t itysup,
const cs_int_t nbvent,
const cs_int_t irtype,
const void *  tabvar,
cs_int_t *ierror  CS_ARGF_SUPP_CHAINE 
)
Here is the call graph for this function:

◆ indsui()

void indsui ( cs_int_t isuite)
Here is the call graph for this function:

◆ infsui()

void infsui ( const cs_int_t numsui)

◆ lecsui()

void lecsui ( const cs_int_t numsui,
const char *  nomrub,
const cs_int_t lngnom,
const cs_int_t itysup,
const cs_int_t nbvent,
const cs_int_t irtype,
void *  tabvar,
cs_int_t *ierror  CS_ARGF_SUPP_CHAINE 
)
Here is the call graph for this function:

◆ opnsui()

void opnsui ( const char *  nomsui,
const cs_int_t lngnom,
const cs_int_t ireawr,
cs_int_t numsui,
cs_int_t *ierror  CS_ARGF_SUPP_CHAINE 
)
Here is the call graph for this function:

◆ tstsui()

void tstsui ( const cs_int_t numsui,
cs_int_t indcel,
cs_int_t indfac,
cs_int_t indfbr,
cs_int_t indsom 
)