Skip to content

Commit 38b09ce

Browse files
clang_formatWentzell
authored andcommitted
clang-format all source files
1 parent 3192935 commit 38b09ce

12 files changed

+48
-48
lines changed

c++/triqs_ctseg/moves/insert_segment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace moves {
1616

1717
public:
1818
insert_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
19-
: wdata(data_), config(config_), rng(rng_){};
19+
: wdata(data_), config(config_), rng(rng_) {};
2020
// ------------------
2121
double attempt();
2222
double accept();

c++/triqs_ctseg/moves/move_segment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace moves {
2020

2121
public:
2222
move_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
23-
: wdata(data_), config(config_), rng(rng_){};
23+
: wdata(data_), config(config_), rng(rng_) {};
2424
// ------------------
2525
double attempt();
2626
double accept();

c++/triqs_ctseg/moves/regroup_segment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace moves {
1919

2020
public:
2121
regroup_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
22-
: wdata(data_), config(config_), rng(rng_){};
22+
: wdata(data_), config(config_), rng(rng_) {};
2323
// ------------------
2424
double attempt();
2525
double accept();

c++/triqs_ctseg/moves/remove_segment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace moves {
1717

1818
public:
1919
remove_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
20-
: wdata(data_), config(config_), rng(rng_){};
20+
: wdata(data_), config(config_), rng(rng_) {};
2121
// ------------------
2222
double attempt();
2323
double accept();

c++/triqs_ctseg/moves/remove_spin_segment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace moves {
1818

1919
public:
2020
remove_spin_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
21-
: wdata(data_), config(config_), rng(rng_){};
21+
: wdata(data_), config(config_), rng(rng_) {};
2222
// ------------------
2323
double attempt();
2424
double accept();

c++/triqs_ctseg/moves/split_segment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace moves {
1919

2020
public:
2121
split_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
22-
: wdata(data_), config(config_), rng(rng_){};
22+
: wdata(data_), config(config_), rng(rng_) {};
2323
// ------------------
2424
double attempt();
2525
double accept();

c++/triqs_ctseg/moves/swap_spin_lines.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace moves {
1414

1515
public:
1616
swap_spin_lines(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
17-
: wdata(data_), config(config_), rng(rng_){};
17+
: wdata(data_), config(config_), rng(rng_) {};
1818
// ------------------
1919
double attempt();
2020
double accept();

c++/triqs_ctseg/tau_t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class tau_t {
3939
/// Not for users. Use the factories
4040
tau_t(uint64_t n_) : n(n_) {}
4141
/// For test only, not for users. Use the factories
42-
tau_t(double x) {
42+
tau_t(double x) {
4343
if ((x > _beta || x < 0)) {
4444
throw std::invalid_argument("Time tau must be in the range [0, beta]");
4545
} else if (x == _beta)

test/c++/anderson.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using triqs::operators::n;
77

88
TEST(CTSEGJ, Anderson) {
99

10-
mpi::communicator c; // Start the mpi
10+
mpi::communicator c; // Start the mpi
1111

1212
double beta = 20.0;
1313
double U = 1.0;
@@ -34,15 +34,15 @@ TEST(CTSEGJ, Anderson) {
3434
solver_core Solver(param_constructor);
3535

3636
// Solve parameters
37-
param_solve.h_int = U * n("up", 0) * n("down", 0);
38-
param_solve.chemical_potential = {mu, mu};
39-
param_solve.n_cycles = n_cycles;
40-
param_solve.n_warmup_cycles = n_warmup_cycles;
41-
param_solve.length_cycle = length_cycle;
42-
param_solve.random_seed = random_seed;
43-
param_solve.measure_ft = true;
44-
param_solve.measure_nnt = true;
45-
param_solve.measure_nn = true;
37+
param_solve.h_int = U * n("up", 0) * n("down", 0);
38+
param_solve.chemical_potential = {mu, mu};
39+
param_solve.n_cycles = n_cycles;
40+
param_solve.n_warmup_cycles = n_warmup_cycles;
41+
param_solve.length_cycle = length_cycle;
42+
param_solve.random_seed = random_seed;
43+
param_solve.measure_ft = true;
44+
param_solve.measure_nnt = true;
45+
param_solve.measure_nn = true;
4646

4747
// Prepare delta
4848
nda::clef::placeholder<0> om_;

test/c++/dynamical_U.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using triqs::operators::n;
66
TEST(CTSEGJ, Dynamical_U) {
7-
7+
88
mpi::communicator c; // Start the mpi
99

1010
double beta = 20.0;
@@ -33,15 +33,15 @@ TEST(CTSEGJ, Dynamical_U) {
3333
solver_core Solver(param_constructor);
3434

3535
// Solve parameters
36-
param_solve.h_int = U * n("up", 0) * n("down", 0);
37-
param_solve.chemical_potential = {mu, mu};
38-
param_solve.n_cycles = n_cycles;
39-
param_solve.n_warmup_cycles = n_warmup_cycles;
40-
param_solve.length_cycle = length_cycle;
41-
param_solve.random_seed = random_seed;
42-
param_solve.measure_ft = true;
43-
param_solve.measure_nnt = true;
44-
param_solve.measure_nn = true;
36+
param_solve.h_int = U * n("up", 0) * n("down", 0);
37+
param_solve.chemical_potential = {mu, mu};
38+
param_solve.n_cycles = n_cycles;
39+
param_solve.n_warmup_cycles = n_warmup_cycles;
40+
param_solve.length_cycle = length_cycle;
41+
param_solve.random_seed = random_seed;
42+
param_solve.measure_ft = true;
43+
param_solve.measure_nnt = true;
44+
param_solve.measure_nn = true;
4545

4646
// Prepare delta
4747
nda::clef::placeholder<0> om_;

0 commit comments

Comments
 (0)