Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.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/jd2/util.hh
11 /// @brief August 2008 job distributor as planned at RosettaCon08 - Base class
12 /// @author Andrew Leaver-Fay
13 /// @author Steven Lewis smlewi@gmail.com
14 
15 #ifndef INCLUDED_protocols_jd2_util_hh
16 #define INCLUDED_protocols_jd2_util_hh
17 
18 #ifdef USEMPI
19 #include <mpi.h>
20 #endif
21 
22 #include <core/pose/Pose.fwd.hh>
24 #include <core/types.hh>
25 #include <protocols/jd2/Job.fwd.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 #ifdef WIN32
32 #include <string>
33 #endif
34 
35 
36 
37 namespace protocols {
38 namespace jd2 {
39 
40 ///@brief writes pose to intermediate-scorefile using current Job and JobOutputter ..
41 ///@detail copy count is used if multiple poses with same job-tag are written as for instance into a trajectory.
42 /// -1 indicates no copy count
43 /// >=0 copy_count will be attached as zerofilled postfix to job-tag
44 void output_intermediate_pose( core::pose::Pose const& pose, std::string const& stage_tag, int copy_count = -1, bool score_only = false );
45 
46 ///@brief gets used output name of pose
47 /// ask jd for current-job ---> ask jobOutputter for name of this job
49 
50 ///@brief call the 'filename' accessor of the current job-distributor with the current job
52 
54 
55 ///@brief is this application running with jd2 --- used for some code that yields backward compatability with old JobDistributor
56 bool jd2_used();
57 
59 
61 
62 void register_options();
63 
65 
66 
67 
69 
70 void
71 write_score_tracer( core::pose::Pose const& pose_in, std::string tag );
72 
73 #ifdef USEMPI
74 ///@brief returns communicator defined by the JobDistributor or MPI_COMM_WORLD
75 MPI_Comm const& current_mpi_comm();
76 #endif
77 
78 ///@brief returns 0 if no replicas (i.e., multiple processes per job )
79 /// otherwise it returns the sub-rank of the process within the job starting at 1
81 
82 } //jd2
83 } //protocols
84 
85 #endif