"platforms/vscode:/vscode.git/clone" did not exist on "160a491ec2701ef149e5b15083e5f9b1a5714002"
Commit d54938ac authored by Peter Eastman's avatar Peter Eastman
Browse files

Workaround for gcc bug

parent c2a049b0
...@@ -104,8 +104,10 @@ void AmoebaVdwForceImpl::createParameterMatrix(const AmoebaVdwForce& force, vect ...@@ -104,8 +104,10 @@ void AmoebaVdwForceImpl::createParameterMatrix(const AmoebaVdwForce& force, vect
force.getParticleParameters(i, parent, sigma, epsilon, reduction, isAlchemical, typeIndex); force.getParticleParameters(i, parent, sigma, epsilon, reduction, isAlchemical, typeIndex);
pair<double, double> params = make_pair(sigma, epsilon); pair<double, double> params = make_pair(sigma, epsilon);
map<pair<double, double>, int>::iterator entry = typeForParams.find(params); map<pair<double, double>, int>::iterator entry = typeForParams.find(params);
if (entry == typeForParams.end()) if (entry == typeForParams.end()) {
typeForParams[params] = typeForParams.size(); int index = typeForParams.size();
typeForParams[params] = index;
}
type[i] = typeForParams[params]; type[i] = typeForParams[params];
} }
numTypes = typeForParams.size(); numTypes = typeForParams.size();
......
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