Hi Yvan and thanks for your answer.
Practically, I should create a file named cs_restart.c, then write in it:
Code: Select all
/* Creation of the restart file */
cs_restart_create(const char * my_quantity1_file, const char * save_additional_quantities_directory, cs_restart_mode_t write)
/* Declaration of the used subroutines */
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 )
void cs_restart_destroy ( cs_restart_t ** restart)
/* Main program */
/* Suppose 3 quantities to be stored */
cs_restart_write_section(restart1, sec_name, location_id, n_location_vals, CS_TYPE_cs_real_t, my_quantity1)
cs_restart_write_section(restart2, sec_name, location_id, n_location_vals, CS_TYPE_cs_real_t, my_quantity2)
cs_restart_write_section(restart3, sec_name, location_id, n_location_vals, CS_TYPE_cs_real_t, my_quantity3)
cs_restart_destroy ( cs_restart_t ** restart1)
cs_restart_destroy ( cs_restart_t ** restart2)
cs_restart_destroy ( cs_restart_t ** restart3)
Does it seems correct to you?
Could you explain in more detail what '
section name', '
id of corresponding location', and '
number of values per location (interlaced)' refer to for the cs_restart_write_section subroutine?
Is there an example of user restart that I can use?
Thanks again!