Commit 9a2a0be3 authored by Jens Wehner's avatar Jens Wehner

renamed unsigned int to unsigned

parent 46d130bc
......@@ -186,7 +186,7 @@ Molecule *CGMoleculeDef::CreateMolecule(Topology &top) {
}
Map *CGMoleculeDef::CreateMap(Molecule &in, Molecule &out) {
if ((unsigned int)out.BeadCount() != _beads.size()) {
if ((unsigned)out.BeadCount() != _beads.size()) {
throw runtime_error(
"number of beads for cg molecule and mapping definition do "
"not match, check your molecule naming.");
......
......@@ -122,7 +122,7 @@ bool DLPOLYTopologyReader::_isKeyInt(const string &line, const char *wspace,
size_t i_num = string::npos;
unsigned int i = 1;
unsigned i = 1;
do { // find integer number in the field with the lowest index (closest to
// the keyword)
i_num = fields[i++].find_first_of("0123456789");
......
......@@ -49,7 +49,7 @@ void PotentialFunction::setParam(string filename) {
boost::lexical_cast<string>(_lam.size()) +
" parameters");
} else {
for (unsigned int i = 0; i < _lam.size(); i++) {
for (unsigned i = 0; i < _lam.size(); i++) {
_lam(i) = param.y(i);
}
}
......@@ -61,7 +61,7 @@ void PotentialFunction::SaveParam(const string &filename) {
param.SetHasYErr(false);
param.resize(_lam.size());
for (unsigned int i = 0; i < _lam.size(); i++) {
for (unsigned i = 0; i < _lam.size(); i++) {
param.set(i, i, _lam(i), 'i');
}
......
......@@ -126,7 +126,7 @@ void PotentialFunctionCBSPL::setParam(string filename) {
} else {
// force last _ncutcoeff to zero
for (unsigned int i = 0; i < _lam.size() - _ncutcoeff; i++) {
for (unsigned i = 0; i < _lam.size() - _ncutcoeff; i++) {
_lam(i) = param.y(i);
}
}
......
......@@ -190,7 +190,7 @@ bool DLPTopolApp::EvaluateTopology(Topology *top, Topology *) {
fl << "units kJ\n";
fl << "molecular types " << MolecularTypes.size() << endl;
for (unsigned int i = 0; i < MolecularTypes.size(); i++) {
for (unsigned i = 0; i < MolecularTypes.size(); i++) {
WriteMolecularType(fl, *(MolecularTypes[i]), nummols[i + 1]);
}
......
......@@ -549,7 +549,7 @@ void Imc::WriteDist(const string &suffix) {
if (!interaction->_threebody) {
// force normalization
// normalize by number of pairs found at a specific distance
for (unsigned int i = 0; i < force.y().size(); ++i) {
for (unsigned i = 0; i < force.y().size(); ++i) {
// check if any number of pairs has been found at this distance, then
// normalize
if (dist.y()[i] != 0) {
......@@ -563,7 +563,7 @@ void Imc::WriteDist(const string &suffix) {
// normalization is calculated using exact shell volume (difference of
// spheres)
for (unsigned int i = 0; i < dist.y().size(); ++i) {
for (unsigned i = 0; i < dist.y().size(); ++i) {
double x1 = dist.x()[i] - 0.5 * interaction->_step;
double x2 = x1 + interaction->_step;
if (x1 < 0) {
......@@ -696,7 +696,7 @@ void Imc::CalcDeltaS(interaction_t *interaction,
target.Load(name + ".dist.tgt");
if (!interaction->_is_bonded) {
for (unsigned int i = 0; i < target.y().size(); ++i) {
for (unsigned i = 0; i < target.y().size(); ++i) {
double x1 = target.x()[i] - 0.5 * interaction->_step;
double x2 = x1 + interaction->_step;
if (x1 < 0) {
......
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