![]() |
Octopus 16.0
real-space, real-time, TDDFT code
|
#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 "string_f.h"#include "io_binary.h"
Functions | |
| void | read_csv (int64_t *np, void *f, int *output_type, int *ierr, char *filename) |
| void | get_info_csv (int64_t *dims, int *ierr, char *filename) |
| void read_csv | ( | int64_t * | np, |
| void * | f, | ||
| int * | output_type, | ||
| int * | ierr, | ||
| char * | filename | ||
| ) |
| void get_info_csv | ( | int64_t * | dims, |
| int * | ierr, | ||
| char * | filename | ||
| ) |
count the number of columns i.e. the size in x-direction
The number of columns must be the same on all non-empty rows
This only checks that the number of columns is correct within each z-block
If the previous line was empty and the current one is non-empty, then it signifies the start of a new z block i.e. a new xy-plane
The number of rows i.e. the size in y-direction must be the same within all z-blocks
If the current row is non-empty, increase the y-dimension