39 int main(
int argc,
char **argv)
49 struct option long_options[] =
51 {
"output", required_argument, 0,
'o'},
52 {
"pairing", required_argument, 0,
'g'},
53 {
"sites", required_argument, 0,
'L'},
54 {
"particles", required_argument, 0,
'N'},
55 {
"help", no_argument, 0,
'h'},
61 while( (j = getopt_long (argc, argv,
"ho:g:L:N:", long_options, &i)) != -1)
66 cout <<
"Usage: " << argv[0] <<
" [OPTIONS]\n"
68 " -o, --output=output-filename Set the output filename\n"
69 " -L, --sites=L Set the number of sites\n"
70 " -N, --particles=N Set the number of particles\n"
71 " -g, --pairing=g Set the pairing strength\n"
72 " -h, --help Display this help\n"
92 std::cerr <<
"You need to specifiy the system!" << endl;
96 cout <<
"Creating for L= " << L <<
" N= " << N <<
" g= " << g << endl;
98 const std::vector<int> orb2irrep (L, 0);
108 ham.setTmat(i, i, i+1);
113 ham.setVmat(i, i, j, j, g);
116 output =
"pairing-integrals-" + std::to_string(L) +
"-" + std::to_string(N) +
"-" + std::to_string(g) +
".h5";
118 cout <<
"Writing Hamiltonian to " << output << endl;
void reset()
set everything to zero
int main(int argc, char **argv)