Octopus 16.0
real-space, real-time, TDDFT code
io_binary.c File Reference
#include <assert.h>
#include <config.h>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "io_binary.h"
Include dependency graph for io_binary.c:

Classes

union  multi
 
struct  header_t
 

Macros

#define _FILE_OFFSET_BITS   64
 
#define c2r   hypot /* take the modulus */
 

Typedefs

typedef char byte
 

Functions

void io_write_header (const int64_t *np, int *type, int *ierr, int *iio, char *fname)
 
void write_binary (const int64_t *np, void *ff, int *type, int *ierr, int *iio, int *nhd, int *flpe, char *fname)
 
void io_read_header (header_t *hp, int *correct_endianness, int *ierr, int *iio, char *fname)
 
void read_binary (const int64_t *np, const int64_t *offset, byte *ff, int *output_type, int *ierr, int *iio, char *fname)
 
void get_info_binary (int64_t *np, int *type, int64_t *file_size, int *ierr, int *iio, char *fname)
 

Macro Definition Documentation

◆ _FILE_OFFSET_BITS

#define _FILE_OFFSET_BITS   64

◆ c2r

#define c2r   hypot /* take the modulus */

Typedef Documentation

◆ byte

typedef char byte

Function Documentation

◆ io_write_header()

void io_write_header ( const int64_t *  np,
int *  type,
int *  ierr,
int *  iio,
char *  fname 
)

◆ write_binary()

void write_binary ( const int64_t *  np,
void *  ff,
int *  type,
int *  ierr,
int *  iio,
int *  nhd,
int *  flpe,
char *  fname 
)

◆ io_read_header()

void io_read_header ( header_t hp,
int *  correct_endianness,
int *  ierr,
int *  iio,
char *  fname 
)

◆ read_binary()

void read_binary ( const int64_t *  np,
const int64_t *  offset,
byte ff,
int *  output_type,
int *  ierr,
int *  iio,
char *  fname 
)

◆ get_info_binary()

void get_info_binary ( int64_t *  np,
int *  type,
int64_t *  file_size,
int *  ierr,
int *  iio,
char *  fname 
)