Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class basis_transform<func::dmn_0<input_type>, func::dmn_0<output_type>> {
typedef typename basis_transformation_type::matrix_type matrix_type;

public:
static bool& is_initialized() {
return basis_transformation_type::is_initialized();
}

static std::string& get_name() {
return basis_transformation_type::get_name();
}
Expand Down
11 changes: 7 additions & 4 deletions include/dca/phys/dca_analysis/bse_solver/bse_cluster_solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ void BseClusterSolver<ParametersType, DcaDataType, ScalarType>::compute_Gamma_cl
func::function<std::complex<ScalarType>, DCA_matrix_dmn_t> G_II("G_II");
func::function<std::complex<ScalarType>, DCA_matrix_dmn_t> G_II_0("G_II_0");

apply_symmetries_sp();

// Load G_II and compute G_II_0 BEFORE symmetrizing Sigma/G_k_w,
// so the bare bubble matches Python's unsymmetrized calculation.
load_G_II(G_II);

load_G_II_0(G_II_0);
load_G_II_0_function(G_II_0);

apply_symmetries_sp();

apply_symmetries_tp(G_II, G_II_0);

solve_BSE_on_cluster(G_II, G_II_0);
Expand Down Expand Up @@ -327,9 +328,11 @@ void BseClusterSolver<ParametersType, DcaDataType, ScalarType>::solve_BSE_on_clu
dca::linalg::matrixop::copyArrayToMatrix(N, N, &G_II_0(0), N, G4_0_inv);
dca::linalg::matrixop::inverse(G4_0_inv);

const ScalarType beta_Nc_factor = parameters.get_beta() * static_cast<ScalarType>(k_DCA::dmn_size());
for (int j = 0; j < N; j++)
for (int i = 0; i < N; i++)
Gamma_cluster(i, j) = G4_0_inv(i, j) - G4_inv(i, j);
Gamma_cluster(i, j) = (G4_0_inv(i, j) - G4_inv(i, j)) * beta_Nc_factor;

}

} // namespace analysis
Expand Down
Loading
Loading