Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
boinc
boinc_shmem.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/boinc/boinci_shmem.hh
11
/// @brief Boinc shared memory structure for graphics
12
/// @author David Kim (dekim@u.washington.edu)
13
14
15
#ifndef INCLUDED_protocols_boinc_boinc_shmem_hh
16
#define INCLUDED_protocols_boinc_boinc_shmem_hh
17
18
19
#include <
core/types.hh
>
20
21
#ifdef BOINC
22
#include "boinc_api.h"
23
#endif
24
25
namespace
protocols {
26
namespace
boinc {
27
28
const
size_t
POSE_BUFSIZE
= 5000000;
// size should depend on the largest pose expected to be used //1000000; //99999;
29
const
size_t
TEXT_BUFSIZE
= 255;
//99999;
30
const
size_t
WU_DESC_TEXT_BUFSIZE
= 1024;
//99999;
31
32
struct
BoincSharedMemory
{
33
double
update_time
;
34
double
fraction_done
;
35
double
cpu_time
;
36
37
#ifdef BOINC
38
BOINC_STATUS status;
39
#endif
40
41
// Lets save the info necessary to reproduce rosetta++ graphics
42
// rmsds will be calculated by the graphics app against the native_pose below
43
44
// current pose
45
int
current_pose_exists
;
46
char
current_pose_buf
[
POSE_BUFSIZE
];
47
48
// accepted
49
int
last_accepted_pose_exists
;
50
char
last_accepted_pose_buf
[
POSE_BUFSIZE
];
51
52
// low energy
53
int
low_energy_pose_exists
;
54
char
low_energy_pose_buf
[
POSE_BUFSIZE
];
55
56
// native pose
57
char
native_pose_buf
[
POSE_BUFSIZE
];
58
int
native_pose_exists
;
59
60
// monte carlo total step count
61
unsigned
int
total_mc_trial_count
;
62
63
// scores
64
core::Real
low_energy
;
65
core::Real
last_accepted_energy
;
66
67
unsigned
int
low_energy_update_cnt
;
68
69
// model nstruct
70
unsigned
int
model_count
;
71
// model low energy
72
float
model_low_energy
;
73
// model rmsd
74
float
model_low_energy_rmsd
;
75
76
// job info
77
char
job_type_text
[
TEXT_BUFSIZE
];
78
79
// stage info
80
char
mover_type_text
[
TEXT_BUFSIZE
];
81
82
// work unit description
83
char
wu_desc_buf
[
WU_DESC_TEXT_BUFSIZE
];
84
int
wu_desc_exists
;
85
86
// monte carlo mover step count
87
unsigned
int
mover_mc_trial_count
;
88
89
90
};
91
92
93
}
// namespace boinc
94
}
// namespace protocols
95
96
#endif
97
Generated on Sat Jun 1 2013 11:43:28 for Rosetta 3.5 by
1.8.4