-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathoutput.h
50 lines (43 loc) · 1.28 KB
/
output.h
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
39
40
41
42
43
44
45
46
47
48
49
50
/*
* output.h
*
* Created on: 31/ott/2011
* Author: lorenzo
*/
#ifndef output_H_
#define output_H_
#include <stdio.h>
#include <stdarg.h>
typedef struct input_file input_file;
typedef struct System System;
typedef long long int llint;
typedef struct Output {
llint start_from;
llint save_every;
llint print_every;
int save_also_as_mgl;
int print_bonds;
int restart_step_counter;
char configuration_folder[512];
char configuration_last[512];
char sus_folder[512];
char bonds_folder[512];
FILE *log;
FILE *energy;
FILE *density;
FILE *acc;
FILE *boxshape;
} Output;
void output_init(input_file *input, Output *output_files);
void output_free(Output *output_files);
void output_sus(Output *IO, System *syst, llint step);
void output_bsus(Output *IO, System *syst, llint step);
void output_and_reset_sus(Output *IO, System *syst, llint step);
void output_save(Output *IO, System *syst, llint step, char *name);
void output_print(Output *IO, System *syst, llint step);
void output_log_msg(Output *IO, char *format, ...);
void output_exit(Output *IO, char *format, ...);
void output_exit_stderr(char *format, ...);
void output_save_to_mgl(Output *output_files, System *syst, char *name);
void output_print_bonds(Output *output_files, System *syst, char *name);
#endif /* output_H_ */