1 #ifndef __CS_RESTART_H__
2 #define __CS_RESTART_H__
51 #define CS_RESTART_SUCCESS 0
52 #define CS_RESTART_ERR_FILE_NUM -1
53 #define CS_RESTART_ERR_LOCATION -2
54 #define CS_RESTART_ERR_VAL_TYPE -3
55 #define CS_RESTART_ERR_N_VALS -4
56 #define CS_RESTART_ERR_MODE -5
57 #define CS_RESTART_ERR_EXISTS -6
86 typedef struct _cs_restart_t cs_restart_t;
671 const char *location_name,
702 const char *sec_name,
724 const char *sec_name,
744 const char *sec_name,
784 int particles_location_id,
812 bool number_by_coords,
841 const char *sec_name,
864 const char *sec_name,
888 const char *sec_name,
889 const char *old_name,
912 const char *sec_name,
913 const char *old_name,
940 const char *sec_name,
941 const char *old_name_x,
942 const char *old_name_y,
943 const char *old_name_z,
Definition: cs_restart.h:78
int cs_restart_read_section(cs_restart_t *restart, const char *sec_name, int location_id, int n_location_vals, cs_restart_val_type_t val_type, void *val)
Definition: cs_restart.c:2840
time step descriptor
Definition: cs_time_step.h:51
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:280
int cs_restart_write_particles(cs_restart_t *restart, const char *name, bool number_by_coords, cs_lnum_t n_particles, const cs_lnum_t *particle_cell_num, const cs_real_t *particle_coords)
Definition: cs_restart.c:3493
void cs_restart_dump_index(const cs_restart_t *restart)
Definition: cs_restart.c:2680
void cs_restart_checkpoint_done(const cs_time_step_t *ts)
Definition: cs_restart.c:2307
void cs_restart_checkpoint_set_defaults(int nt_interval, double t_interval, double wt_interval)
Definition: cs_restart.c:2186
void cs_restart_print_stats(void)
Definition: cs_restart.c:3948
cs_restart_t * cs_restart_create(const char *name, const char *path, cs_restart_mode_t mode)
Definition: cs_restart.c:2368
Definition: cs_restart.h:76
void ecpsui(const cs_int_t *numsui, const char *nomrub, const cs_int_t *lngnom, const cs_int_t *inmcoo, const cs_int_t *nbpart, const cs_int_t *ipcell, const cs_real_t *coopar, cs_int_t *itysup CS_ARGF_SUPP_CHAINE)
Definition: cs_restart.c:1781
#define BEGIN_C_DECLS
Definition: cs_defs.h:405
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
void indsui(cs_int_t *isuite)
Definition: cs_restart.c:1267
void cs_restart_write_section(cs_restart_t *restart, const char *sec_name, int location_id, int n_location_vals, cs_restart_val_type_t val_type, const void *val)
Definition: cs_restart.c:3063
cs_restart_mode_t
Definition: cs_restart.h:65
int cs_restart_read_real_t_compat(cs_restart_t *restart, const char *sec_name, const char *old_name, int location_id, int n_location_vals, cs_real_t *val)
#define CS_ARGF_SUPP_CHAINE
Definition: cs_defs.h:434
Definition: cs_restart.h:75
void reqsui(cs_int_t *iisuit)
Definition: cs_restart.c:1225
int cs_restart_read_section_compat(cs_restart_t *restart, const char *sec_name, const char *old_name, int location_id, int n_location_vals, cs_restart_val_type_t val_type, void *val)
Definition: cs_restart.c:3828
int cs_restart_read_real_3_t_compat(cs_restart_t *restart, const char *sec_name, const char *old_name_x, const char *old_name_y, const char *old_name_z, int location_id, cs_real_3_t *val)
Definition: cs_restart.c:3879
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_ARGF_SUPP_CHAINE)
Definition: cs_restart.c:1592
bool cs_restart_checkpoint_required(const cs_time_step_t *ts)
Definition: cs_restart.c:2245
void lepsui(const cs_int_t *numsui, cs_int_t *ipcell, cs_real_t *coopar, const cs_int_t *itysup, cs_int_t *ierror CS_ARGF_SUPP_CHAINE)
Definition: cs_restart.c:1718
int cs_restart_present(void)
Definition: cs_restart.c:2344
void infsui(const cs_int_t *numsui)
Definition: cs_restart.c:1473
Definition: cs_restart.h:77
void stusui(void)
Definition: cs_restart.c:1248
void cs_restart_checkpoint_set_next_ts(int nt_next)
Definition: cs_restart.c:2203
int cs_restart_read_particles_info(cs_restart_t *restart, const char *name, cs_lnum_t *n_particles)
Definition: cs_restart.c:3197
int cs_restart_read_ids(cs_restart_t *restart, const char *sec_name, int location_id, int ref_location_id, cs_lnum_t ref_id_base, cs_lnum_t *ref_id)
Definition: cs_restart.c:3626
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
int cs_restart_check_section(cs_restart_t *restart, const char *sec_name, int location_id, int n_location_vals, cs_restart_val_type_t val_type)
Definition: cs_restart.c:2718
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
Definition: cs_restart.h:68
void clssui(const cs_int_t *numsui, cs_int_t *ierror)
Definition: cs_restart.c:1368
void cs_restart_checkpoint_set_next_wt(double wt_next)
Definition: cs_restart.c:2229
void dflsui(cs_int_t *ntsuit, cs_real_t *ttsuit, cs_real_t *wtsuit)
Definition: cs_restart.c:1204
cs_restart_val_type_t
Definition: cs_restart.h:74
#define END_C_DECLS
Definition: cs_defs.h:406
cs_restart_t * cs_restart_by_fortran_id(int r_num)
Definition: cs_restart.c:3973
double cs_real_t
Definition: cs_defs.h:296
void cs_restart_checkpoint_set_next_tv(double t_next)
Definition: cs_restart.c:2216
int cs_restart_read_particles(cs_restart_t *restart, int particles_location_id, cs_lnum_t *particle_cell_id, cs_real_t *particle_coords)
Definition: cs_restart.c:3380
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)
Definition: cs_restart.c:1290
cs_restart_t * cs_restart_destroy(cs_restart_t *restart)
Definition: cs_restart.c:2479
#define CS_PROCF(x, y)
Definition: cs_defs.h:419
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)
Definition: cs_restart.c:1517
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)
Definition: cs_restart.c:2533
void leisui(const cs_int_t *numsui, const char *nomrub, const cs_int_t *lngnom, const cs_int_t *itysup, const cs_int_t *irfsup, const cs_int_t *idbase, void *tabid, cs_int_t *ierror CS_ARGF_SUPP_CHAINE)
Definition: cs_restart.c:1875
void ecisui(const cs_int_t *numsui, const char *nomrub, const cs_int_t *lngnom, const cs_int_t *itysup, const cs_int_t *irfsup, const cs_int_t *idbase, const cs_int_t *tabid CS_ARGF_SUPP_CHAINE)
Definition: cs_restart.c:1963
void lipsui(const cs_int_t *numsui, const char *nomrub, const cs_int_t *lngnom, cs_int_t *nbpart, cs_int_t *itysup CS_ARGF_SUPP_CHAINE)
Definition: cs_restart.c:1655
Definition: cs_restart.h:67
void tstsui(const cs_int_t *numsui, cs_int_t *indcel, cs_int_t *indfac, cs_int_t *indfbr, cs_int_t *indsom)
Definition: cs_restart.c:1417
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)
Definition: cs_restart.c:2591
void cs_restart_write_ids(cs_restart_t *restart, const char *sec_name, int location_id, int ref_location_id, cs_lnum_t ref_id_base, const cs_lnum_t *ref_id)
Definition: cs_restart.c:3727