forked from marcuspetschlies/cvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontractions_io.h
More file actions
38 lines (27 loc) · 1009 Bytes
/
contractions_io.h
File metadata and controls
38 lines (27 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _CONTRACTION_IO_H
#define _CONTRACTION_IO_H
#include "dml.h"
#ifdef __cplusplus
extern "C"
{
#endif
# include "lime.h"
# ifdef HAVE_LIBLEMON
# include "lemon.h"
# endif
#ifdef __cplusplus
}
#endif
namespace cvc {
int write_contraction_format(char * filename, const int prec, const int N, char * type, const int gid, const int sid);
int write_lime_contraction(double * const s, char * filename, const int prec, const int N, char * type, const int gid, const int sid);
#ifdef HAVE_LIBLEMON
int write_binary_contraction_data(double * const s, LemonWriter * writer, const int prec, const int N, DML_Checksum * ans);
#else
int write_binary_contraction_data(double * const s, LimeWriter * limewriter, const int prec, const int N, DML_Checksum * ans);
#endif
int read_lime_contraction(double * const s, char * filename, const int N, const int position);
int read_binary_contraction_data(double * const s, LimeReader * limereader,
const int prec, const int N, DML_Checksum * ans);
}
#endif