--- trunk/src/applications/nanoparticleBuilder/nanoparticleBuilder.cpp 2006/03/30 19:37:48 925 +++ trunk/src/applications/nanoparticleBuilder/nanoparticleBuilder.cpp 2006/04/25 22:54:55 949 @@ -90,7 +90,7 @@ int main(int argc, char *argv []) { int nComponents; double latticeConstant; std::vector lc; - double mass; + double mass; const double rhoConvertConst = 1.661; double density; double particleRadius; @@ -130,8 +130,8 @@ int main(int argc, char *argv []) { /*calculate lattice constant (in Angstrom) - latticeConstant = pow(rhoConvertConst * numMolPerCell * mass / density, - 1.0 / 3.0);*/ + latticeConstant = pow(rhoConvertConst * numMolPerCell * mass / density, + 1.0 / 3.0);*/ latticeConstant = args_info.latticeCnst_arg; particleRadius = args_info.radius_arg; @@ -162,8 +162,8 @@ int main(int argc, char *argv []) { /* Get number of lattice sites */ numSites = nanoParticleSites.size(); - //std::cout <<"numSites are %d "<beginMolecule(mi); - int l = 0; - for (mol = NewInfo->beginMolecule(mi); mol != NULL; mol = NewInfo->nextMolecule(mi)) { - locator->placeMol(nanoParticleSites[l], latticeOrt[l], mol); - l++; + int l = 0; + for (mol = NewInfo->beginMolecule(mi); mol != NULL; mol = NewInfo->nextMolecule(mi)) { + locator->placeMol(nanoParticleSites[l], latticeOrt[l], mol); + l++; } @@ -297,11 +297,11 @@ void createMdFile(const std::string&oldMdFileName, con //correct molecule number if (strstr(buffer, "nMol") != NULL) { - if(i