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
59893e57
Commit
59893e57
authored
Nov 07, 2013
by
peastman
Browse files
Merge pull request #211 from peastman/master
Fixed compilation errors on gcc
parents
f52c8d46
7714f7ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
openmmapi/include/openmm/internal/vectorize.h
openmmapi/include/openmm/internal/vectorize.h
+1
-1
platforms/cpu/src/CpuGBSAOBCForce.cpp
platforms/cpu/src/CpuGBSAOBCForce.cpp
+4
-4
No files found.
openmmapi/include/openmm/internal/vectorize.h
View file @
59893e57
...
...
@@ -161,7 +161,7 @@ public:
return
_mm_cmpeq_epi32
(
val
,
other
);
}
ivec4
operator
!=
(
ivec4
other
)
const
{
return
_mm_xor_si128
(
val
==
other
,
_mm_set1_epi32
(
0xFFFFFFFF
));
return
_mm_xor_si128
(
*
this
==
other
,
_mm_set1_epi32
(
0xFFFFFFFF
));
}
ivec4
operator
>
(
ivec4
other
)
const
{
return
_mm_cmpgt_epi32
(
val
,
other
);
...
...
platforms/cpu/src/CpuGBSAOBCForce.cpp
View file @
59893e57
...
...
@@ -174,13 +174,13 @@ void CpuGBSAOBCForce::threadComputeForce(ThreadPool& threads, int threadIndex) {
}
for
(
int
i
=
0
;
i
<
numInBlock
;
i
++
)
{
int
atomIndex
=
blockStart
+
i
;
sum
[
i
]
*=
0.5
f
*
offset
Radius
I
[
i
];
sum
[
i
]
*=
0.5
f
*
atom
Radius
[
i
];
float
sum2
=
sum
[
i
]
*
sum
[
i
];
float
sum3
=
sum
[
i
]
*
sum2
;
float
tanhSum
=
tanh
(
alphaObc
*
sum
[
i
]
-
betaObc
*
sum2
+
gammaObc
*
sum3
);
float
radiusI
=
offset
Radius
I
[
i
]
+
dielectricOffset
;
bornRadii
[
atomIndex
]
=
1.0
f
/
(
1.0
f
/
offset
Radius
I
[
i
]
-
tanhSum
/
radiusI
);
obcChain
[
atomIndex
]
=
offset
Radius
I
[
i
]
*
(
alphaObc
-
2.0
f
*
betaObc
*
sum
[
i
]
+
3.0
f
*
gammaObc
*
sum2
);
float
radiusI
=
atom
Radius
[
i
]
+
dielectricOffset
;
bornRadii
[
atomIndex
]
=
1.0
f
/
(
1.0
f
/
atom
Radius
[
i
]
-
tanhSum
/
radiusI
);
obcChain
[
atomIndex
]
=
atom
Radius
[
i
]
*
(
alphaObc
-
2.0
f
*
betaObc
*
sum
[
i
]
+
3.0
f
*
gammaObc
*
sum2
);
obcChain
[
atomIndex
]
=
(
1.0
f
-
tanhSum
*
tanhSum
)
*
obcChain
[
atomIndex
]
/
radiusI
;
}
}
...
...
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