-
Notifications
You must be signed in to change notification settings - Fork 3
/
dethubbardparams.h
65 lines (51 loc) · 1.51 KB
/
dethubbardparams.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. See the enclosed file LICENSE for a copy or if
* that was not distributed with this file, You can obtain one at
* http://mozilla.org/MPL/2.0/.
*
* Copyright 2017 Max H. Gerlach
*
* */
#ifndef DETHUBBARDPARAMS_H
#define DETHUBBARDPARAMS_H
#include <string>
#include <set>
#include "metadata.h"
#include "exceptions.h"
#include "detmodelparams.h"
class DetHubbard;
template<>
struct ModelParams<DetHubbard> {
std::string model; // should be hubbard
bool checkerboard;
num t;
num U;
num mu;
uint32_t L;
uint32_t d;
num beta;
uint32_t m; //either specify number of timeslices 'm'
num dtau; //or timeslice separation 'dtau'
uint32_t s; //separation of timeslices where the Green function is calculated
//from scratch
std::string bc;
std::set<std::string> specified;
ModelParams() :
model("hubbard"), checkerboard(),
t(), U(), mu(), L(), d(), beta(), m(), dtau(), s(), bc("pbc"),
specified()
{ }
void check();
MetadataMap prepareMetadataMap() const;
private:
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive& ar, const uint32_t version) {
(void)version;
ar & model & checkerboard
& t & U & mu & L & d & beta & m
& dtau & s & bc
& specified;
}
};
#endif /* DETHUBBARDPARAMS_H */