TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
qmc_config.cpp
1// Copyright (c) 2017--present, The Simons Foundation
2// This file is part of TRIQS/ctint and is licensed under the terms of GPLv3 or later.
3// SPDX-License-Identifier: GPL-3.0-or-later
4// See LICENSE in the root of this distribution for details.
5
6#include "./qmc_config.hpp"
7
8namespace triqs_ctint {
9
10 qmc_config_t::qmc_config_t(params_t const &params, g_tau_cv_t G0_tau) {
11
12 // Build the determinants. Explicit value '1000' reserves matrix memory (c.f. det doc)
13 for (auto &G0_tau_bl : G0_tau) {
14 dets.emplace_back(G0hat_t{G0_tau_bl, params.alpha}, params.det_init_size);
15 dets.back().set_singular_threshold(params.det_singular_threshold);
16 dets.back().set_n_operations_before_check(params.det_n_operations_before_check);
17 dets.back().set_precision_warning(params.det_precision_warning);
18 dets.back().set_precision_error(params.det_precision_error);
19 }
20 }
21
22} // namespace triqs_ctint
std::vector< det_t > dets
List containing the determinant for each block.
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210