CCEX-1.0.0
Loading...
Searching...
No Matches
output.h
1#ifndef __CCEX_OUTPUT_H_
2#define __CCEX_OUTPUT_H_
3
4#include "general.h"
5#include "bath.h"
6#include "utilities.h"
7
8typedef struct {
9
10 // Intermediate Save
11 // char* InterSaveClusterFile; /**< File name to save clusters' information */
12 // char* InterSaveCoherenceFile; /**< File name to save coherence functions of clusters */
13 char savemode[20];
14 // all : coherence function for each cluster and each state : output = output_{cluster}_{state}_wD/nD
15 // normal : coherence function for each state (default) : output = output_{state}_wD/nD
16 // avg : averaged coherence function for all states : ouput = output_avg_wD/nD
17 // info : normal save mode + deep learning information (Azx, Azz, bathfile) : output = output_{state}_wD/nD
18
20 // Final Save (Main result)
21 // outfile1. actual result
22 // outfile2. the result to compare them to remove the diverged points
23 // char* OutputFileHead; /**< File name to save final result */
24 // char* OutputFileTail; /**< File name to save final result */
25 // char* OutputFileHeadDisjoint; /**< File name to save final result */
26 // char* OutputFileTailDisjoint; /**< File name to save final result */
27 char* outfile; // output file name with mode (auto generated)
28} Output;
29
30Output* Output_init();
31void Output_save(Output* op, MatrixXcd* result_wD, MatrixXcd* result_nD, int nstep, float deltat, int istate);
32void Output_save_all(Output* op, MatrixXcd* result, int nstep, float deltat,int* cluster, int nspin, int istate);
33void Output_save_info(Output* op, MatrixXcd* result_wD, MatrixXcd* result_nD, int nstep, float deltat, int istate, double Azx, double Azz, char* bathfile);
34
35void Output_setSavemode(Output* op, char* savemode);
36char* Output_getSavemode(Output* op);
37
38void Output_allocOutfile(Output* op);
39void Output_freeOutfile(Output* op);
40void Output_setOutfile(Output* op, char* outfile);
41char* Output_getOutfile(Output* op);
42
43void Output_report(Output* op);
44
45void Output_freeAll(Output* op);
46
47
48
49#endif // __CCEX_OUTPUT_H_
Definition output.h:8
char savemode[20]
Definition output.h:13