Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6aa03ec8
Commit
6aa03ec8
authored
May 06, 2010
by
Mark Friedrichs
Browse files
Previous mod was a mistake -- the factor 1/(4*pi*eps0) does not belong in the tau term
parent
2053e2dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/kernels/kForces.cu
platforms/cuda/src/kernels/kForces.cu
+2
-2
No files found.
platforms/cuda/src/kernels/kForces.cu
View file @
6aa03ec8
...
@@ -414,7 +414,7 @@ void kReduceGBVIBornForces_kernel()
...
@@ -414,7 +414,7 @@ void kReduceGBVIBornForces_kernel()
float
ratio
=
(
gbviData
.
x
/
bornRadius
);
float
ratio
=
(
gbviData
.
x
/
bornRadius
);
float
ratio3
=
ratio
*
ratio
*
ratio
;
float
ratio3
=
ratio
*
ratio
*
ratio
;
energy
-=
gbviData
.
z
*
ratio3
;
energy
-=
gbviData
.
z
*
ratio3
;
totalForce
+=
(
3.0
f
*
138.93548
*
gbviData
.
z
*
ratio3
)
/
bornRadius
;
// 'cavity' term
totalForce
+=
(
3.0
f
*
gbviData
.
z
*
ratio3
)
/
bornRadius
;
// 'cavity' term
float
br2
=
bornRadius
*
bornRadius
;
float
br2
=
bornRadius
*
bornRadius
;
totalForce
*=
(
1.0
f
/
3.0
f
)
*
br2
*
br2
;
totalForce
*=
(
1.0
f
/
3.0
f
)
*
br2
*
br2
;
...
@@ -422,7 +422,7 @@ void kReduceGBVIBornForces_kernel()
...
@@ -422,7 +422,7 @@ void kReduceGBVIBornForces_kernel()
*
pFt
=
totalForce
;
*
pFt
=
totalForce
;
pos
+=
gridDim
.
x
*
blockDim
.
x
;
pos
+=
gridDim
.
x
*
blockDim
.
x
;
}
}
cSim
.
pEnergy
[
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
]
+=
138.93548
*
energy
;
cSim
.
pEnergy
[
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
]
+=
energy
;
}
}
void
kReduceObcGbsaBornForces
(
gpuContext
gpu
)
void
kReduceObcGbsaBornForces
(
gpuContext
gpu
)
...
...
Write
Preview
Markdown
is supported
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