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 335 const char *location_name,
379 const char *sec_name,
401 const char *sec_name,
421 const char *sec_name,
461 int particles_location_id,
489 bool number_by_coords,
518 const char *sec_name,
541 const char *sec_name,
565 const char *sec_name,
566 const char *old_name,
589 const char *sec_name,
590 const char *old_name,
617 const char *sec_name,
618 const char *old_name_x,
619 const char *old_name_y,
620 const char *old_name_z,
649 const char *sec_name,
650 const char *old_name_xx,
651 const char *old_name_yy,
652 const char *old_name_zz,
653 const char *old_name_xy,
654 const char *old_name_yz,
655 const char *old_name_xz,
684 const char *sec_name,
685 const char *old_name_xx,
686 const char *old_name_yy,
687 const char *old_name_zz,
688 const char *old_name_xy,
689 const char *old_name_yz,
690 const char *old_name_xz,
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:1736
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:2389
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:310
void cs_restart_dump_index(const cs_restart_t *restart)
Definition: cs_restart.c:1579
void cs_restart_checkpoint_done(const cs_time_step_t *ts)
Definition: cs_restart.c:1185
void cs_restart_checkpoint_set_defaults(int nt_interval, double t_interval, double wt_interval)
Definition: cs_restart.c:1064
void cs_restart_print_stats(void)
Definition: cs_restart.c:3174
cs_restart_t * cs_restart_create(const char *name, const char *path, cs_restart_mode_t mode)
Definition: cs_restart.c:1246
integer, save ntsuit
saving period of the restart filesy5
Definition: entsor.f90:78
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:315
Definition: cs_restart.h:76
#define BEGIN_C_DECLS
Definition: cs_defs.h:448
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
void indsui(cs_int_t *isuite)
Definition: cs_restart.c:1040
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:1959
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)
const char * cs_restart_get_name(const cs_restart_t *restart)
Definition: cs_restart.c:1564
Definition: cs_restart.h:75
void reqsui(cs_int_t *iisuit)
Definition: cs_restart.c:981
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:2724
double cs_real_t
Floating-point value.
Definition: cs_defs.h:296
integer, save isuite
Definition: optcal.f90:375
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:2800
int cs_restart_read_real_66_t_compat(cs_restart_t *restart, const char *sec_name, const char *old_name_xx, const char *old_name_yy, const char *old_name_zz, const char *old_name_xy, const char *old_name_yz, const char *old_name_xz, int location_id, cs_real_66_t *val)
Definition: cs_restart.c:3054
bool cs_restart_checkpoint_required(const cs_time_step_t *ts)
Definition: cs_restart.c:1123
int cs_restart_present(void)
Definition: cs_restart.c:1222
Definition: cs_restart.h:77
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:86
void stusui(void)
Definition: cs_restart.c:1004
void cs_restart_checkpoint_set_next_ts(int nt_next)
Definition: cs_restart.c:1081
int cs_restart_read_particles_info(cs_restart_t *restart, const char *name, cs_lnum_t *n_particles)
Definition: cs_restart.c:2093
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:2522
int cs_restart_read_real_6_t_compat(cs_restart_t *restart, const char *sec_name, const char *old_name_xx, const char *old_name_yy, const char *old_name_zz, const char *old_name_xy, const char *old_name_yz, const char *old_name_xz, int location_id, cs_real_6_t *val)
Definition: cs_restart.c:2913
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:308
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:1617
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
Definition: cs_restart.h:68
void cs_restart_checkpoint_set_next_wt(double wt_next)
Definition: cs_restart.c:1107
void dflsui(cs_int_t *ntsuit, cs_real_t *ttsuit, cs_real_t *wtsuit)
Definition: cs_restart.c:960
cs_restart_val_type_t
Definition: cs_restart.h:74
#define END_C_DECLS
Definition: cs_defs.h:449
void cs_restart_checkpoint_set_next_tv(double t_next)
Definition: cs_restart.c:1094
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:2276
void trbsui(void)
Definition: cs_restart.c:1021
#define CS_PROCF(x, y)
Definition: cs_defs.h:472
void cs_restart_destroy(cs_restart_t **restart)
Definition: cs_restart.c:1359
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:1414
Definition: cs_restart.h:67
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:1472
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:2623