"wrappers/python/vscode:/vscode.git/clone" did not exist on "cf9795e86df2876ea89e3b0dc4197ce596855d68"
Commit 59893e57 authored by peastman's avatar peastman
Browse files

Merge pull request #211 from peastman/master

Fixed compilation errors on gcc
parents f52c8d46 7714f7ff
...@@ -161,7 +161,7 @@ public: ...@@ -161,7 +161,7 @@ public:
return _mm_cmpeq_epi32(val, other); return _mm_cmpeq_epi32(val, other);
} }
ivec4 operator!=(ivec4 other) const { 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 { ivec4 operator>(ivec4 other) const {
return _mm_cmpgt_epi32(val, other); return _mm_cmpgt_epi32(val, other);
......
...@@ -174,13 +174,13 @@ void CpuGBSAOBCForce::threadComputeForce(ThreadPool& threads, int threadIndex) { ...@@ -174,13 +174,13 @@ void CpuGBSAOBCForce::threadComputeForce(ThreadPool& threads, int threadIndex) {
} }
for (int i = 0; i < numInBlock; i++) { for (int i = 0; i < numInBlock; i++) {
int atomIndex = blockStart+i; int atomIndex = blockStart+i;
sum[i] *= 0.5f*offsetRadiusI[i]; sum[i] *= 0.5f*atomRadius[i];
float sum2 = sum[i]*sum[i]; float sum2 = sum[i]*sum[i];
float sum3 = sum[i]*sum2; float sum3 = sum[i]*sum2;
float tanhSum = tanh(alphaObc*sum[i] - betaObc*sum2 + gammaObc*sum3); float tanhSum = tanh(alphaObc*sum[i] - betaObc*sum2 + gammaObc*sum3);
float radiusI = offsetRadiusI[i] + dielectricOffset; float radiusI = atomRadius[i] + dielectricOffset;
bornRadii[atomIndex] = 1.0f/(1.0f/offsetRadiusI[i] - tanhSum/radiusI); bornRadii[atomIndex] = 1.0f/(1.0f/atomRadius[i] - tanhSum/radiusI);
obcChain[atomIndex] = offsetRadiusI[i]*(alphaObc - 2.0f*betaObc*sum[i] + 3.0f*gammaObc*sum2); obcChain[atomIndex] = atomRadius[i]*(alphaObc - 2.0f*betaObc*sum[i] + 3.0f*gammaObc*sum2);
obcChain[atomIndex] = (1.0f - tanhSum*tanhSum)*obcChain[atomIndex]/radiusI; obcChain[atomIndex] = (1.0f - tanhSum*tanhSum)*obcChain[atomIndex]/radiusI;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment