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 345 const char *location_name,
389 const char *sec_name,
411 const char *sec_name,
431 const char *sec_name,
471 int particles_location_id,
499 bool number_by_coords,
528 const char *sec_name,
551 const char *sec_name,
575 const char *sec_name,
576 const char *old_name,
599 const char *sec_name,
600 const char *old_name,
627 const char *sec_name,
628 const char *old_name_x,
629 const char *old_name_y,
630 const char *old_name_z,
659 const char *sec_name,
660 const char *old_name_xx,
661 const char *old_name_yy,
662 const char *old_name_zz,
663 const char *old_name_xy,
664 const char *old_name_yz,
665 const char *old_name_xz,
694 const char *sec_name,
695 const char *old_name_xx,
696 const char *old_name_yy,
697 const char *old_name_zz,
698 const char *old_name_xy,
699 const char *old_name_yz,
700 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:1758
time step descriptor
Definition: cs_time_step.h:51
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:281
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:2411
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:312
void cs_restart_dump_index(const cs_restart_t *restart)
Definition: cs_restart.c:1601
void cs_restart_checkpoint_done(const cs_time_step_t *ts)
Definition: cs_restart.c:1205
void cs_restart_checkpoint_set_defaults(int nt_interval, double t_interval, double wt_interval)
Definition: cs_restart.c:1065
void cs_restart_print_stats(void)
Definition: cs_restart.c:3196
cs_restart_t * cs_restart_create(const char *name, const char *path, cs_restart_mode_t mode)
Definition: cs_restart.c:1268
integer, save ntsuit
saving period of the restart filesy5
Definition: entsor.f90:72
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:317
Definition: cs_restart.h:76
#define BEGIN_C_DECLS
Definition: cs_defs.h:462
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:296
void indsui(cs_int_t *isuite)
Definition: cs_restart.c:1041
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:1981
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:1586
Definition: cs_restart.h:75
void reqsui(cs_int_t *iisuit)
Definition: cs_restart.c:982
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:2746
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
integer, save isuite
Indicator of a calculation restart (=1) or not (=0). This value is set automatically by the code; dep...
Definition: optcal.f90:338
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:2822
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:3076
void cs_restart_checkpoint_set_last_ts(int nt_last)
Definition: cs_restart.c:1082
bool cs_restart_checkpoint_required(const cs_time_step_t *ts)
Definition: cs_restart.c:1137
int cs_restart_present(void)
Definition: cs_restart.c:1244
Definition: cs_restart.h:77
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:86
void stusui(void)
Definition: cs_restart.c:1005
void cs_restart_checkpoint_set_next_ts(int nt_next)
Definition: cs_restart.c:1095
int cs_restart_read_particles_info(cs_restart_t *restart, const char *name, cs_lnum_t *n_particles)
Definition: cs_restart.c:2115
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:2544
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:2935
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:310
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:1639
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
Definition: cs_restart.h:68
void cs_restart_checkpoint_set_next_wt(double wt_next)
Definition: cs_restart.c:1121
void dflsui(cs_int_t *ntsuit, cs_real_t *ttsuit, cs_real_t *wtsuit)
Definition: cs_restart.c:961
cs_restart_val_type_t
Definition: cs_restart.h:74
#define END_C_DECLS
Definition: cs_defs.h:463
void cs_restart_checkpoint_set_next_tv(double t_next)
Definition: cs_restart.c:1108
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:2298
void trbsui(void)
Definition: cs_restart.c:1022
#define CS_PROCF(x, y)
Definition: cs_defs.h:476
void cs_restart_destroy(cs_restart_t **restart)
Definition: cs_restart.c:1381
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:1436
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:1494
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:2645