Code_Saturne
CFD tool
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions | Variables
cs_io.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <bft_error.h>
#include <bft_mem.h>
#include <bft_printf.h>
#include "cs_base.h"
#include "cs_log.h"
#include "cs_map.h"
#include "cs_file.h"
#include "cs_timer.h"
#include "cs_io.h"

Data Structures

struct  cs_io_log_t
 
struct  cs_io_sec_index_t
 
struct  _cs_io_t
 

Macros

#define CS_IO_MPI_TAG   'C'+'S'+'_'+'I'+'O'
 

Functions

cs_io_tcs_io_initialize (const char *file_name, const char *magic_string, cs_io_mode_t mode, int hints, long echo)
 
cs_io_tcs_io_initialize_with_index (const char *file_name, const char *magic_string, int hints, long echo)
 
void cs_io_finalize (cs_io_t **cs_io)
 
const char * cs_io_get_name (const cs_io_t *cs_io)
 
size_t cs_io_get_index_size (const cs_io_t *inp)
 
const char * cs_io_get_indexed_sec_name (const cs_io_t *inp, size_t id)
 
cs_io_sec_header_t cs_io_get_indexed_sec_header (const cs_io_t *inp, size_t id)
 
size_t cs_io_get_echo (const cs_io_t *cs_io)
 
int cs_io_read_header (cs_io_t *inp, cs_io_sec_header_t *header)
 
int cs_io_set_indexed_position (cs_io_t *inp, cs_io_sec_header_t *header, size_t id)
 
void cs_io_set_cs_lnum (cs_io_sec_header_t *header, const cs_io_t *cs_io)
 
void cs_io_set_cs_gnum (cs_io_sec_header_t *header, const cs_io_t *cs_io)
 
void cs_io_assert_cs_real (const cs_io_sec_header_t *header, const cs_io_t *cs_io)
 
void * cs_io_read_global (const cs_io_sec_header_t *header, void *elts, cs_io_t *cs_io)
 
void * cs_io_read_block (const cs_io_sec_header_t *header, cs_gnum_t global_num_start, cs_gnum_t global_num_end, void *elts, cs_io_t *cs_io)
 
void * cs_io_read_index_block (cs_io_sec_header_t *header, cs_gnum_t global_num_start, cs_gnum_t global_num_end, cs_gnum_t *elts, cs_io_t *cs_io)
 
void cs_io_write_global (const char *sec_name, cs_gnum_t n_vals, size_t location_id, size_t index_id, size_t n_location_vals, cs_datatype_t elt_type, const void *elts, cs_io_t *outp)
 
void cs_io_write_block (const char *sec_name, cs_gnum_t n_g_elts, cs_gnum_t global_num_start, cs_gnum_t global_num_end, size_t location_id, size_t index_id, size_t n_location_vals, cs_datatype_t elt_type, const void *elts, cs_io_t *outp)
 
void cs_io_write_block_buffer (const char *sec_name, cs_gnum_t n_g_elts, cs_gnum_t global_num_start, cs_gnum_t global_num_end, size_t location_id, size_t index_id, size_t n_location_vals, cs_datatype_t elt_type, void *elts, cs_io_t *outp)
 
cs_file_off_t cs_io_get_offset (cs_io_t *inp)
 
void cs_io_set_offset (cs_io_t *inp, cs_file_off_t offset)
 
void cs_io_defaults_info (void)
 
void cs_io_set_defaults (int mpi_io_mode)
 
void cs_io_log_initialize (void)
 
void cs_io_log_finalize (void)
 
void cs_io_dump (const cs_io_t *cs_io)
 

Variables

int cs_glob_io_hints = 0
 

Macro Definition Documentation

#define CS_IO_MPI_TAG   'C'+'S'+'_'+'I'+'O'

Function Documentation

void cs_io_assert_cs_real ( const cs_io_sec_header_t header,
const cs_io_t cs_io 
)

Here is the call graph for this function:

void cs_io_defaults_info ( void  )

Here is the call graph for this function:

void cs_io_dump ( const cs_io_t cs_io)

Here is the call graph for this function:

void cs_io_finalize ( cs_io_t **  cs_io)

Here is the call graph for this function:

size_t cs_io_get_echo ( const cs_io_t cs_io)
size_t cs_io_get_index_size ( const cs_io_t inp)
cs_io_sec_header_t cs_io_get_indexed_sec_header ( const cs_io_t inp,
size_t  id 
)
const char* cs_io_get_indexed_sec_name ( const cs_io_t inp,
size_t  id 
)
const char* cs_io_get_name ( const cs_io_t cs_io)

Here is the call graph for this function:

cs_file_off_t cs_io_get_offset ( cs_io_t inp)

Here is the call graph for this function:

cs_io_t* cs_io_initialize ( const char *  file_name,
const char *  magic_string,
cs_io_mode_t  mode,
int  hints,
long  echo 
)

Here is the call graph for this function:

cs_io_t* cs_io_initialize_with_index ( const char *  file_name,
const char *  magic_string,
int  hints,
long  echo 
)

Here is the call graph for this function:

void cs_io_log_finalize ( void  )

Here is the call graph for this function:

void cs_io_log_initialize ( void  )

Here is the call graph for this function:

void* cs_io_read_block ( const cs_io_sec_header_t header,
cs_gnum_t  global_num_start,
cs_gnum_t  global_num_end,
void *  elts,
cs_io_t cs_io 
)
void* cs_io_read_global ( const cs_io_sec_header_t header,
void *  elts,
cs_io_t cs_io 
)
int cs_io_read_header ( cs_io_t inp,
cs_io_sec_header_t header 
)

Here is the call graph for this function:

void* cs_io_read_index_block ( cs_io_sec_header_t header,
cs_gnum_t  global_num_start,
cs_gnum_t  global_num_end,
cs_gnum_t elts,
cs_io_t cs_io 
)

Here is the call graph for this function:

void cs_io_set_cs_gnum ( cs_io_sec_header_t header,
const cs_io_t cs_io 
)

Here is the call graph for this function:

void cs_io_set_cs_lnum ( cs_io_sec_header_t header,
const cs_io_t cs_io 
)

Here is the call graph for this function:

void cs_io_set_defaults ( int  mpi_io_mode)

Here is the call graph for this function:

int cs_io_set_indexed_position ( cs_io_t inp,
cs_io_sec_header_t header,
size_t  id 
)

Here is the call graph for this function:

void cs_io_set_offset ( cs_io_t inp,
cs_file_off_t  offset 
)

Here is the call graph for this function:

void cs_io_write_block ( const char *  sec_name,
cs_gnum_t  n_g_elts,
cs_gnum_t  global_num_start,
cs_gnum_t  global_num_end,
size_t  location_id,
size_t  index_id,
size_t  n_location_vals,
cs_datatype_t  elt_type,
const void *  elts,
cs_io_t outp 
)

Here is the call graph for this function:

void cs_io_write_block_buffer ( const char *  sec_name,
cs_gnum_t  n_g_elts,
cs_gnum_t  global_num_start,
cs_gnum_t  global_num_end,
size_t  location_id,
size_t  index_id,
size_t  n_location_vals,
cs_datatype_t  elt_type,
void *  elts,
cs_io_t outp 
)

Here is the call graph for this function:

void cs_io_write_global ( const char *  sec_name,
cs_gnum_t  n_vals,
size_t  location_id,
size_t  index_id,
size_t  n_location_vals,
cs_datatype_t  elt_type,
const void *  elts,
cs_io_t outp 
)

Here is the call graph for this function:

Variable Documentation

int cs_glob_io_hints = 0