Octopus 16.0
real-space, real-time, TDDFT code
write_iter_low.cc File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "string_f.h"
#include <config.h>
#include <fortran_types.h>
#include <iostream>
Include dependency graph for write_iter_low.cc:

Classes

struct  write_iter
 

Macros

#define CHUNK   1024
 

Functions

void write_iter_header_work (write_iter *w, const char *s)
 Writes a centered header to a write_iter struct with a fixed width of 24 characters. More...
 
void FC_FUNC_ (write_iter_init, WRITE_ITER_INIT)(void **v
 
 TO_C_STR1 (fname, w->filename)
 
void FC_FUNC_ (write_iter_clear, WRITE_ITER_CLEAR)(void **v)
 
void FC_FUNC_ (write_iter_flush, WRITE_ITER_FLUSH)(void **v)
 
void FC_FUNC_ (write_iter_end, WRITE_ITER_END)(void **v)
 
void FC_FUNC_ (write_iter_start, WRITE_ITER_START)(void **v)
 
void FC_FUNC_ (write_iter_set, WRITE_ITER_SET)(void **v
 
void FC_FUNC_ (write_iter_double_1, WRITE_ITER_DOUBLE_1)(void **v
 
 write_iter_realloc (w,(*no) *24)
 
 for (i=0;i< *no;i++) = ((gsl_spline *)(*spl))->y[i]
 
void FC_FUNC_ (write_iter_float_1, WRITE_ITER_FLOAT_1)(void **v
 
void FC_FUNC_ (write_iter_double_n, WRITE_ITER_DOUBLE_N)(void **v
 
void FC_FUNC_ (write_iter_float_n, WRITE_ITER_FLOAT_N)(void **v
 
void FC_FUNC_ (write_iter_int_1, WRITE_ITER_INT_1)(void **v
 
void FC_FUNC_ (write_iter_int_n, WRITE_ITER_INT_N)(void **v
 
void FC_FUNC_ (write_iter_string, WRITE_ITER_STRING)(void **v
 
 TO_C_STR1 (s, c)
 
 write_iter_string_work ((write_iter *) *v, c)
 
 free (c)
 
void FC_FUNC_ (write_iter_header_start, WRITE_ITER_HEADER_START)(void **v)
 
void FC_FUNC_ (write_iter_header, WRITE_ITER_HEADER)(void **v
 
 write_iter_header_work ((write_iter *) *v, c)
 
void FC_FUNC_ (write_iter_nl, WRITE_ITER_NL)(void **v)
 

Variables

void const finti
 
void const fint const double * d
 
void const fint const double STR_F_TYPE fname STR_ARG1
 
 w = (write_iter *)malloc(sizeof(write_iter))
 
w buf = NULL
 
w pos = w->size = 0
 
w iter = *i
 
w dt = *d
 
v = w
 
void const double const fintno
 

Macro Definition Documentation

◆ CHUNK

#define CHUNK   1024

Function Documentation

◆ write_iter_header_work() [1/2]

void write_iter_header_work ( write_iter w,
const char *  s 
)

Writes a centered header to a write_iter struct with a fixed width of 24 characters.

Parameters
wPointer to the write_iter struct.
sPointer to the string representing the header.

◆ FC_FUNC_() [1/16]

void FC_FUNC_ ( write_iter_init  ,
WRITE_ITER_INIT   
)

◆ TO_C_STR1() [1/2]

TO_C_STR1 ( fname  ,
w->  filename 
)

◆ FC_FUNC_() [2/16]

void FC_FUNC_ ( write_iter_clear  ,
WRITE_ITER_CLEAR   
)

◆ FC_FUNC_() [3/16]

void FC_FUNC_ ( write_iter_flush  ,
WRITE_ITER_FLUSH   
)

◆ FC_FUNC_() [4/16]

void FC_FUNC_ ( write_iter_end  ,
WRITE_ITER_END   
)

◆ FC_FUNC_() [5/16]

void FC_FUNC_ ( write_iter_start  ,
WRITE_ITER_START   
)

◆ FC_FUNC_() [6/16]

void FC_FUNC_ ( write_iter_set  ,
WRITE_ITER_SET   
)

◆ FC_FUNC_() [7/16]

void FC_FUNC_ ( write_iter_double_1  ,
WRITE_ITER_DOUBLE_1   
)

◆ write_iter_realloc()

write_iter_realloc ( w  ,
*no 24 
)

◆ for()

for ( ) = ((gsl_spline *)(*spl))->y[i]

◆ FC_FUNC_() [8/16]

void FC_FUNC_ ( write_iter_float_1  ,
WRITE_ITER_FLOAT_1   
)

◆ FC_FUNC_() [9/16]

void FC_FUNC_ ( write_iter_double_n  ,
WRITE_ITER_DOUBLE_N   
)

◆ FC_FUNC_() [10/16]

void FC_FUNC_ ( write_iter_float_n  ,
WRITE_ITER_FLOAT_N   
)

◆ FC_FUNC_() [11/16]

void FC_FUNC_ ( write_iter_int_1  ,
WRITE_ITER_INT_1   
)

◆ FC_FUNC_() [12/16]

void FC_FUNC_ ( write_iter_int_n  ,
WRITE_ITER_INT_N   
)

◆ FC_FUNC_() [13/16]

void FC_FUNC_ ( write_iter_string  ,
WRITE_ITER_STRING   
)

◆ TO_C_STR1() [2/2]

TO_C_STR1 ( ,
 
)

◆ write_iter_string_work()

write_iter_string_work ( (write_iter *) *  v,
 
)

◆ free()

free ( )

◆ FC_FUNC_() [14/16]

void FC_FUNC_ ( write_iter_header_start  ,
WRITE_ITER_HEADER_START   
)

◆ FC_FUNC_() [15/16]

void FC_FUNC_ ( write_iter_header  ,
WRITE_ITER_HEADER   
)

◆ write_iter_header_work() [2/2]

write_iter_header_work ( (write_iter *) *  v,
 
)

◆ FC_FUNC_() [16/16]

void FC_FUNC_ ( write_iter_nl  ,
WRITE_ITER_NL   
)

Variable Documentation

◆ i

int i
Initial value:
{
Definition: write_iter_low.cc:39
w
Definition: write_iter_low.cc:130
* v
Definition: write_iter_low.cc:137

◆ d

void const fint * d

◆ STR_ARG1

void STR_F_TYPE s STR_ARG1
Initial value:

◆ w

w = (write_iter *)malloc(sizeof(write_iter))

◆ buf

w buf = NULL

◆ pos

w pos = w->size = 0

◆ iter

w iter = *i

◆ dt

w dt = *d

◆ v

* v = w

◆ no

void const fint const fint * no
Initial value: