TRIQS/triqs_ctseg 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
state_hist.hpp
1// Copyright (c) 2024--present, The Simons Foundation
2// Copyright (c) 2024--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 "../work_data.hpp"
10#include "../results.hpp"
11#include "../util.hpp"
12
13namespace triqs_ctseg::measures {
14
15 struct state_hist {
16
17 work_data_t const &wdata;
18 configuration_t const &config;
19 results_t &results;
20 double beta;
21
22 nda::vector<double> H;
23
24 double Z = 0;
25
26 state_hist(params_t const &params, work_data_t const &wdata, configuration_t const &config, results_t &results);
27
28 void accumulate(double s);
29 void collect_results(mpi::communicator const &c);
30 };
31
32} // namespace triqs_ctseg::measures