-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·52 lines (37 loc) · 1.46 KB
/
main.cpp
File metadata and controls
executable file
·52 lines (37 loc) · 1.46 KB
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
51
52
#include "analysis/adc_analyzer.hpp"
#include "adc_matrix.hpp"
#include "adc_selector.hpp"
#include <iostream>
int main()
{
std::cout << " TheADCcode: A collection of ADC/ISR source codes.\n"
<< " Developed for the TC group, University of Heidelberg.\n"
<< " Contributors: Yasen Velkov (yasen.velkov@pci.uni-heidelberg.de),\n"
<< " Anthony Dutoi, Nicolas Sisourat, Tsveta Miteva,\n"
<< " Joerg Breidbach, Imke Mueller, Nayana Vaval,\n"
<< " Francesco Tarantelli, Soeren Kopelke,\n"
<< " Sajeev Yesodharan, Kirill Gokhberg, Robin Santra\n\n";
try {
Adc_selector* selector;
selector = new Adc_selector; // Read the input information
ADC_analyzer* diagonalizer = selector->new_adc_analyzer();
ListOfSpins spins = selector->list_of_spins();
ListOfSyms symms = selector->list_of_syms();
ListOfSpins::iterator spin;
ListOfSyms::iterator sym;
for(spin = spins.begin(); spin != spins.end(); spin++)
for(sym = symms.begin(); sym != symms.end(); sym++) {
ADC_matrix* mat = selector->new_adc_matrix(*sym,*spin);
mat->accept_analyzer(*diagonalizer);
delete mat;
}
delete diagonalizer;
delete selector;
} catch (std::string er) {
std::cout << ' ' << er << std::endl;
std::cout << " Task not accomplished.\n";
return 1;
}
std::cout << "\n Task accomplished.\n";
return 0;
}