Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReplicaExchangeMC.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file protocols/moves/ReplicaExchangeMC.hh
11 /// @brief implementing a Recplica Exchange Monte Carlo Mover
12 /// @author Yuan Liu (wendao@u.washington.edu)
13 
14 #ifndef INCLUDED_protocols_moves_ReplicaExchangeMC_hh
15 #define INCLUDED_protocols_moves_ReplicaExchangeMC_hh
16 
17 #include <core/types.hh>
18 // AUTO-REMOVED #include <core/pose/Pose.hh>
21 
22 #include <utility/vector1.hh>
23 
24 
25 namespace protocols {
26 namespace moves {
27 
29 {
30 public:
31  typedef MonteCarlo Parent;
32  typedef core::Size Size;
33 
35  Pose const & init_pose, // PoseCOP init_pose,
36  ScoreFunction const & scorefxn, // ScoreFunctionCOP scorefxn,
37  utility::vector1<core::Real> const &tlist,
38  core::Size nint
39  );
40 
42  ScoreFunction const & scorefxn, // ScoreFunctionCOP scorefxn,
43  utility::vector1<core::Real> const &tlist,
44  core::Size nint
45  );
46 
47  void init();
48 
50 
51  void build_temperature_list(double *elist);
52 
53  using Parent::boltzmann;
54 
55  bool
56  boltzmann(
57  Pose & pose,//PoseOP pose,
58  std::string const & move_type = "unk",
59  core::Real const proposal_density_ratio = 1
60  );
61 
62  //void set_noutput(core::Size n){noutput_=n;}
63 
64 private:
65  int rank_;
66  int size_;
68  //core::Size noutput_;
72  double *last_energylist;
73  int *T_tag;
74  int *T_rev;
75  int T_ndx;
76 };
77 
78 } // moves
79 } // prot
80 
81 #endif
82