BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ThreadInfo.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Base/Utils/ThreadInfo.h
6 //! @brief Defines struct ThreadInfo.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_PARAMETRIZATION_THREADINFO_H
16 #define BORNAGAIN_CORE_PARAMETRIZATION_THREADINFO_H
17 
18 //! Information to run simulation with dedicated number of threads.
19 //! @ingroup simulation
20 
21 struct ThreadInfo {
22  ThreadInfo();
23  unsigned n_threads;
24  unsigned n_batches;
25  unsigned current_batch;
26 };
27 
28 inline ThreadInfo::ThreadInfo() : n_threads(0), n_batches(1), current_batch(0) {}
29 
30 #endif // BORNAGAIN_CORE_PARAMETRIZATION_THREADINFO_H
Information to run simulation with dedicated number of threads.
Definition: ThreadInfo.h:21
unsigned current_batch
Definition: ThreadInfo.h:25
unsigned n_batches
Definition: ThreadInfo.h:24
unsigned n_threads
Definition: ThreadInfo.h:23