ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/randomBuilder/randomBuilder.cpp
(Generate patch)

Comparing trunk/src/applications/randomBuilder/randomBuilder.cpp (file contents):
Revision 1065 by gezelter, Tue Oct 10 14:52:20 2006 UTC vs.
Revision 1077 by gezelter, Wed Oct 18 19:35:07 2006 UTC

# Line 42 | Line 42
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  
# Line 105 | Line 105 | int main(int argc, char *argv []) {
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      
# Line 388 | Line 388 | void createMdFile(const std::string&oldMdFileName,
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines