TRIQS/triqs_ctseg 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
average_sign.hpp
1// Copyright (c) 2023--present, The Simons Foundation
2// Copyright (c) 2023--present, Max Planck Institute for Polymer Research, Mainz, Germany
3// This file is part of TRIQS/ctseg and is licensed under the terms of GPLv3 or later.
4// SPDX-License-Identifier: GPL-3.0-or-later
5// See LICENSE in the root of this distribution for details.
6
7#pragma once
8#include "../configuration.hpp"
9#include "../results.hpp"
10#include "../work_data.hpp"
11
12namespace triqs_ctseg::measures {
13
14 struct average_sign {
15
16 work_data_t const &wdata;
17 configuration_t const &config;
18 results_t &results;
19
20 double N = 0;
21 double Z = 0;
22
23 average_sign(params_t const &params, work_data_t const &wdata, configuration_t const &config, results_t &results);
24
25 void accumulate(double s);
26 void collect_results(mpi::communicator const &c);
27 };
28
29} // namespace triqs_ctseg::measures