--- trunk/src/applications/nanoparticleBuilder/nanoparticleBuilder.cpp 2006/03/29 19:17:20 923 +++ trunk/src/applications/nanoparticleBuilder/nanoparticleBuilder.cpp 2006/03/30 19:37:48 925 @@ -171,17 +171,19 @@ int main(int argc, char *argv []) { if (!args_info.ShellRadius_given){ std::cout << "Creating a random nanoparticle" << std::endl; /* Check to see if we have enough components */ - if (nComponents != args_info.molFraction_given + 1){ + if (nComponents != args_info.molFraction_given && nComponents != 1){ std::cerr << "Number of components does not equal molFraction occurances." << std::endl; exit(1); } /* Build the mole fractions and number of molecules of each type */ int totComponents = 0; - for (int i = 0;i