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
321 const char *location_name,
365 const char *sec_name,
387 const char *sec_name,
407 const char *sec_name,
447 int particles_location_id,
475 bool number_by_coords,
504 const char *sec_name,
527 const char *sec_name,
551 const char *sec_name,
552 const char *old_name,
575 const char *sec_name,
576 const char *old_name,
603 const char *sec_name,
604 const char *old_name_x,
605 const char *old_name_y,
606 const char *old_name_z,
635 const char *sec_name,
636 const char *old_name_xx,
637 const char *old_name_yy,
638 const char *old_name_zz,
639 const char *old_name_xy,
640 const char *old_name_yz,
641 const char *old_name_xz,
670 const char *sec_name,
671 const char *old_name_xx,
672 const char *old_name_yy,
673 const char *old_name_zz,
674 const char *old_name_xy,
675 const char *old_name_yz,
676 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:1718
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:2371
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:309
void cs_restart_dump_index(const cs_restart_t *restart)
Definition: cs_restart.c:1561
void cs_restart_checkpoint_done(const cs_time_step_t *ts)
Definition: cs_restart.c:1167
void cs_restart_checkpoint_set_defaults(int nt_interval, double t_interval, double wt_interval)
Definition: cs_restart.c:1046
void cs_restart_print_stats(void)
Definition: cs_restart.c:3156
cs_restart_t * cs_restart_create(const char *name, const char *path, cs_restart_mode_t mode)
Definition: cs_restart.c:1228
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:312
Definition: cs_restart.h:76
#define BEGIN_C_DECLS
Definition: cs_defs.h:429
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
void indsui(cs_int_t *isuite)
Definition: cs_restart.c:1022
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:1941
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:1546
Definition: cs_restart.h:75
void reqsui(cs_int_t *iisuit)
Definition: cs_restart.c:980
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:2706
integer, save isuite
Definition: optcal.f90:371
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:2782
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:3036
bool cs_restart_checkpoint_required(const cs_time_step_t *ts)
Definition: cs_restart.c:1105
int cs_restart_present(void)
Definition: cs_restart.c:1204
Definition: cs_restart.h:77
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:86
void stusui(void)
Definition: cs_restart.c:1003
void cs_restart_checkpoint_set_next_ts(int nt_next)
Definition: cs_restart.c:1063
int cs_restart_read_particles_info(cs_restart_t *restart, const char *name, cs_lnum_t *n_particles)
Definition: cs_restart.c:2075
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:2504
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:2895
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:1599
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:1089
void dflsui(cs_int_t *ntsuit, cs_real_t *ttsuit, cs_real_t *wtsuit)
Definition: cs_restart.c:959
cs_restart_val_type_t
Definition: cs_restart.h:74
#define END_C_DECLS
Definition: cs_defs.h:430
double cs_real_t
Definition: cs_defs.h:296
void cs_restart_checkpoint_set_next_tv(double t_next)
Definition: cs_restart.c:1076
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:2258
#define CS_PROCF(x, y)
Definition: cs_defs.h:453
void cs_restart_destroy(cs_restart_t **restart)
Definition: cs_restart.c:1341
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:1396
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:1454
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:2605