HiRep 0.1
Loading...
Searching...
No Matches
archive.h
Go to the documentation of this file.
1/***************************************************************************\
2* Copyright (c) 2008, Claudio Pica *
3* All rights reserved. *
4\***************************************************************************/
5
11#ifndef ARCHIVE_H
12#define ARCHIVE_H
13
14#include <stdio.h>
15#include "spinor_field.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21// endian.h
22int fwrite_BE_int(int *ptr, size_t n, FILE *fp);
23int fwrite_LE_int(int *ptr, size_t n, FILE *fp);
24int fwrite_BE_double(double *ptr, size_t n, FILE *fp);
25int fwrite_LE_double(double *ptr, size_t n, FILE *fp);
26
27int fread_BE_int(int *ptr, size_t n, FILE *fp);
28int fread_LE_int(int *ptr, size_t n, FILE *fp);
29int fread_BE_double(double *ptr, size_t n, FILE *fp);
30int fread_LE_double(double *ptr, size_t n, FILE *fp);
31int fread_BE_float(float *ptr, size_t n, FILE *fp);
32
33//archive.h
34void read_gauge_field(char filename[]);
35void write_gauge_field(char filename[]);
36void read_scalar_field(char filename[]);
37void write_scalar_field(char filename[]);
38void read_gauge_field_matrix(char filename[]);
39void write_gauge_field_matrix(char filename[]);
40void write_ranlxd_state(char filename[]);
41void read_ranlxd_state(char filename[]);
42
43//archive_su2quat.h
44void read_gauge_field_su2(char filename[]);
45void read_gauge_field_su2q(char filename[]);
46void write_gauge_field_su2q(char filename[]);
47
48//TODO: check this
49void read_spinor_field_ascii(char filename[], spinor_field *sf); //this does not exist in library
50void read_gauge_field_nocheck(char filename[]); //this does not exist in library
51void print_mat(suNg *mat); //TODO: does not exist in library
52
53#ifdef __cplusplus
54}
55#endif
56#endif
The elementary site structures defined in suN.h are used in this file to define field structures that...
Spinor field array containing SU(N_f) spinors in chosen fermion representation.
Definition spinor_field.h:189