| 42 |  | * | 
| 43 |  | *  Created by Charles F. Vardeman II on 10 Apr 2006. | 
| 44 |  | *  @author  Charles F. Vardeman II | 
| 45 | < | *  @version $Id: randomBuilder.cpp,v 1.5 2006-10-10 14:52:20 gezelter Exp $ | 
| 45 | > | *  @version $Id: randomBuilder.cpp,v 1.7 2006-10-18 19:35:07 gezelter Exp $ | 
| 46 |  | * | 
| 47 |  | */ | 
| 48 |  |  | 
| 105 |  | density = args_info.density_arg; | 
| 106 |  |  | 
| 107 |  | //get lattice type | 
| 108 | < | latticeType = UpperCase(args_info.latticetype_arg); | 
| 108 | > | latticeType = "FCC"; | 
| 109 |  |  | 
| 110 |  | simpleLat = LatticeFactory::getInstance()->createLattice(latticeType); | 
| 111 |  |  | 
| 388 |  |  | 
| 389 |  | oldMdFile.close(); | 
| 390 |  | newMdFile.close(); | 
| 391 | + |  | 
| 392 | + | if (i != nMol.size()) { | 
| 393 | + | sprintf(painCave.errMsg, "Couldn't replace the correct number of nMol\n" | 
| 394 | + | "\tstatements in component blocks.  Make sure that all\n" | 
| 395 | + | "\tcomponents in the template file have nMol=1"); | 
| 396 | + | painCave.isFatal = 1; | 
| 397 | + | simError(); | 
| 398 | + | } | 
| 399 | + |  | 
| 400 |  | } | 
| 401 |  |  |