TRIQS/triqs_ctseg 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
nn_static.hpp
1// Copyright (c) 2022--present, The Simons Foundation
2// Copyright (c) 2022--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
12namespace triqs_ctseg::measures {
13
14 struct nn_static {
15
16 work_data_t const &wdata;
17 configuration_t const &config;
18 results_t &results;
19 double beta;
20
21 nda::matrix<double> nn;
22
23 double Z = 0;
24 int n_color;
25
26 nn_static(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