programmer's documentation
Functions
cs_restart.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mpi.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "fvm_io_num.h"
#include "cs_base.h"
#include "cs_block_dist.h"
#include "cs_block_to_part.h"
#include "cs_file.h"
#include "cs_io.h"
#include "cs_mesh.h"
#include "cs_mesh_location.h"
#include "cs_part_to_block.h"
#include "cs_parall.h"
#include "cs_timer.h"
#include "cs_time_step.h"
#include "cs_restart.h"
Include dependency graph for cs_restart.c:

Functions

void dflsui (cs_int_t *ntsuit, cs_real_t *ttsuit, cs_real_t *wtsuit)
 
void reqsui (cs_int_t *iisuit)
 
void stusui (void)
 
void indsui (cs_int_t *isuite)
 
void cs_restart_checkpoint_set_defaults (int nt_interval, double t_interval, double wt_interval)
 
void cs_restart_checkpoint_set_next_ts (int nt_next)
 
void cs_restart_checkpoint_set_next_tv (double t_next)
 
void cs_restart_checkpoint_set_next_wt (double wt_next)
 
bool cs_restart_checkpoint_required (const cs_time_step_t *ts)
 
void cs_restart_checkpoint_done (const cs_time_step_t *ts)
 
int cs_restart_present (void)
 
cs_restart_tcs_restart_create (const char *name, const char *path, cs_restart_mode_t mode)
 
void cs_restart_destroy (cs_restart_t **restart)
 
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)
 
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)
 
const char * cs_restart_get_name (const cs_restart_t *restart)
 
void cs_restart_dump_index (const cs_restart_t *restart)
 
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)
 
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)
 
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)
 
int cs_restart_read_particles_info (cs_restart_t *restart, const char *name, cs_lnum_t *n_particles)
 
int cs_restart_read_particles (cs_restart_t *restart, int particles_location_id, cs_lnum_t *particle_cell_num, cs_real_t *particle_coords)
 
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)
 
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)
 
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)
 
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)
 
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)
 
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)
 
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)
 
void cs_restart_print_stats (void)
 

Function Documentation

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 
)
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 
)
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 
)
void cs_restart_checkpoint_done ( const cs_time_step_t ts)
bool cs_restart_checkpoint_required ( const cs_time_step_t ts)
void cs_restart_checkpoint_set_defaults ( int  nt_interval,
double  t_interval,
double  wt_interval 
)
void cs_restart_checkpoint_set_next_ts ( int  nt_next)
void cs_restart_checkpoint_set_next_tv ( double  t_next)
void cs_restart_checkpoint_set_next_wt ( double  wt_next)
cs_restart_t* cs_restart_create ( const char *  name,
const char *  path,
cs_restart_mode_t  mode 
)
void cs_restart_destroy ( cs_restart_t **  restart)
void cs_restart_dump_index ( const cs_restart_t restart)
const char* cs_restart_get_name ( const cs_restart_t restart)
int cs_restart_present ( void  )
void cs_restart_print_stats ( void  )
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 
)
int cs_restart_read_particles ( cs_restart_t restart,
int  particles_location_id,
cs_lnum_t particle_cell_num,
cs_real_t particle_coords 
)
int cs_restart_read_particles_info ( cs_restart_t restart,
const char *  name,
cs_lnum_t n_particles 
)
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 
)
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 
)
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 
)
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 
)
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 
)
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 
)
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 
)
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 dflsui ( cs_int_t ntsuit,
cs_real_t ttsuit,
cs_real_t wtsuit 
)
void indsui ( cs_int_t isuite)
void reqsui ( cs_int_t iisuit)
void stusui ( void  )