Skip to content

Commit

Permalink
clang-format all source files
Browse files Browse the repository at this point in the history
  • Loading branch information
clang_format authored and Wentzell committed Jun 21, 2024
1 parent 3192935 commit 38b09ce
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/insert_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace moves {

public:
insert_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/move_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace moves {

public:
move_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/regroup_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace moves {

public:
regroup_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/remove_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace moves {

public:
remove_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/remove_spin_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace moves {

public:
remove_spin_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/split_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace moves {

public:
split_segment(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/moves/swap_spin_lines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace moves {

public:
swap_spin_lines(work_data_t &data_, configuration_t &config_, triqs::mc_tools::random_generator &rng_)
: wdata(data_), config(config_), rng(rng_){};
: wdata(data_), config(config_), rng(rng_) {};
// ------------------
double attempt();
double accept();
Expand Down
2 changes: 1 addition & 1 deletion c++/triqs_ctseg/tau_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class tau_t {
/// Not for users. Use the factories
tau_t(uint64_t n_) : n(n_) {}
/// For test only, not for users. Use the factories
tau_t(double x) {
tau_t(double x) {
if ((x > _beta || x < 0)) {
throw std::invalid_argument("Time tau must be in the range [0, beta]");
} else if (x == _beta)
Expand Down
20 changes: 10 additions & 10 deletions test/c++/anderson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using triqs::operators::n;

TEST(CTSEGJ, Anderson) {

mpi::communicator c; // Start the mpi
mpi::communicator c; // Start the mpi

double beta = 20.0;
double U = 1.0;
Expand All @@ -34,15 +34,15 @@ TEST(CTSEGJ, Anderson) {
solver_core Solver(param_constructor);

// Solve parameters
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;

// Prepare delta
nda::clef::placeholder<0> om_;
Expand Down
20 changes: 10 additions & 10 deletions test/c++/dynamical_U.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using triqs::operators::n;
TEST(CTSEGJ, Dynamical_U) {

mpi::communicator c; // Start the mpi

double beta = 20.0;
Expand Down Expand Up @@ -33,15 +33,15 @@ TEST(CTSEGJ, Dynamical_U) {
solver_core Solver(param_constructor);

// Solve parameters
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;

// Prepare delta
nda::clef::placeholder<0> om_;
Expand Down
20 changes: 10 additions & 10 deletions test/c++/jperp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using triqs::operators::n;

TEST(CTSEGJ, J_perp) {

mpi::communicator c; // Start the mpi

double beta = 10.0;
Expand Down Expand Up @@ -34,15 +34,15 @@ TEST(CTSEGJ, J_perp) {
solver_core Solver(param_constructor);

// Solve parameters
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;

// Prepare delta
nda::clef::placeholder<0> om_;
Expand Down
20 changes: 10 additions & 10 deletions test/c++/spin_spin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using triqs::operators::n;

TEST(CTSEGJ, Spin_Spin) {

mpi::communicator c; // Start the mpi

double beta = 10.0;
Expand Down Expand Up @@ -34,15 +34,15 @@ TEST(CTSEGJ, Spin_Spin) {
solver_core Solver(param_constructor);

// Solve parameters
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;
param_solve.h_int = U * n("up", 0) * n("down", 0);
param_solve.chemical_potential = {mu, mu};
param_solve.n_cycles = n_cycles;
param_solve.n_warmup_cycles = n_warmup_cycles;
param_solve.length_cycle = length_cycle;
param_solve.random_seed = random_seed;
param_solve.measure_ft = true;
param_solve.measure_nnt = true;
param_solve.measure_nn = true;

// Prepare delta
nda::clef::placeholder<0> om_;
Expand Down

0 comments on commit 38b09ce

Please sign in to comment.