IMP logo
IMP Reference Guide  2.23.0
The Integrative Modeling Platform
pt_stuff.h
Go to the documentation of this file.
1 /**
2  * \file IMP/spb/pt_stuff.h
3  * \brief Useful stuff for parallel tempering
4  *
5  * Copyright 2007-2022 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPSPB_PT_STUFF_H
10 #define IMPSPB_PT_STUFF_H
11 #include <IMP/spb/spb_config.h>
12 
13 IMPSPB_BEGIN_NAMESPACE
14 
15 IMPSPBEXPORT double* create_temperatures(double tmin, double tmax,
16  int nrep);
17 
18 IMPSPBEXPORT int* create_indexes(int nrep);
19 
20 IMPSPBEXPORT int get_friend(int* index, int myrank, int step, int nrep);
21 
22 IMPSPBEXPORT bool get_acceptance(double score0, double score1,
23  double delta_wte, double T0, double T1);
24 
25 IMPSPB_END_NAMESPACE
26 
27 #endif /* IMPSPB_PT_STUFF_H */