Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock
Commits
5bee4015
Commit
5bee4015
authored
Jul 05, 2018
by
lvs
Browse files
removed wrong variable redefinition + improved comments
parent
029397e9
Changes
2
Show whitespace changes
Inline
Side-by-side
device/calcgradient.cl
View file @
5bee4015
...
...
@@ -262,7 +262,7 @@ void gpu_calc_gradient(
rotation_movingvec[1]
=
rotbonds_moving_vectors_const[3*rotbond_id+1]
;
rotation_movingvec[2]
=
rotbonds_moving_vectors_const[3*rotbond_id+2]
;
float
rotation_angle
=
genotype[6+rotbond_id]*DEG_TO_RAD
;
rotation_angle
=
genotype[6+rotbond_id]*DEG_TO_RAD
;
//
Performing
additionally
the
first
movement
which
//
is
needed
only
if
rotating
around
rotatable
bond
...
...
device/kernel_gradient.cl
View file @
5bee4015
...
...
@@ -442,6 +442,7 @@ gradient_minimizer(
for
(
uint
i
=
0
; i < dockpars_num_of_atoms; i++) {
if
(
i
==
0
)
{
printf
(
"\n%s\n"
,
"----------------------------------------------------------"
)
;
printf
(
"%s\n"
,
"Coordinates calculated by calcgradient.cl"
)
;
printf
(
"%-10s %-10s %-10s %-10s\n"
,
"atom_id"
,
"coords.x"
,
"coords.y"
,
"coords.z"
)
;
}
printf
(
"%-10u %-10.6f %-10.6f %-10.6f\n"
,
i,
calc_coords_x[i],
calc_coords_y[i],
calc_coords_z[i]
)
;
...
...
@@ -549,6 +550,7 @@ gradient_minimizer(
for
(
uint
i
=
0
; i < dockpars_num_of_atoms; i++) {
if
(
i
==
0
)
{
printf
(
"\n%s\n"
,
"----------------------------------------------------------"
)
;
printf
(
"%s\n"
,
"Coordinates calculated by calcenergy.cl"
)
;
printf
(
"%-10s %-10s %-10s %-10s\n"
,
"atom_id"
,
"coords.x"
,
"coords.y"
,
"coords.z"
)
;
}
printf
(
"%-10u %-10.6f %-10.6f %-10.6f\n"
,
i,
calc_coords_x[i],
calc_coords_y[i],
calc_coords_z[i]
)
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment