Changeset 418117a for molecuilder/src/builder.cpp
- Timestamp:
- Nov 23, 2009, 6:22:33 PM (16 years ago)
- Children:
- 3d4969
- Parents:
- 09d3b8
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
r09d3b8 r418117a 95 95 switch (choice) { 96 96 default: 97 Log() << Verbose(0) << "Not a valid choice." << endl;97 eLog() << Verbose(2) << "Not a valid choice." << endl; 98 98 break; 99 99 case 'a': // absolute coordinates of atom … … 109 109 valid = true; 110 110 do { 111 if (!valid) Log() << Verbose(0) << "Resulting position out of cell." << endl;111 if (!valid) eLog() << Verbose(2) << "Resulting position out of cell." << endl; 112 112 Log() << Verbose(0) << "Enter reference coordinates." << endl; 113 113 x.AskPosition(mol->cell_size, true); … … 125 125 valid = true; 126 126 do { 127 if (!valid) Log() << Verbose(0) << "Resulting position out of cell." << endl;127 if (!valid) eLog() << Verbose(2) << "Resulting position out of cell." << endl; 128 128 second = mol->AskAtom("Enter atom number: "); 129 129 Log() << Verbose(0) << "Enter relative coordinates." << endl; … … 142 142 do { 143 143 if (!valid) { 144 Log() << Verbose(0) << "Resulting coordinates out of cell - "; 145 first->x.Output(); 146 Log() << Verbose(0) << endl; 144 eLog() << Verbose(2) << "Resulting coordinates out of cell - " << first->x << endl; 147 145 } 148 146 Log() << Verbose(0) << "First, we need two atoms, the first atom is the central, while the second is the outer one." << endl; … … 671 669 Log() << Verbose(0) << "===============================================" << endl; 672 670 if (molecules->NumberOfActiveMolecules() > 1) 673 Log() << Verbose(0) << "WARNING:There is more than one molecule active! Atoms will be added to each." << endl;671 eLog() << Verbose(2) << "There is more than one molecule active! Atoms will be added to each." << endl; 674 672 Log() << Verbose(0) << "INPUT: "; 675 673 cin >> choice; … … 794 792 Log() << Verbose(0) << "===============================================" << endl; 795 793 if (molecules->NumberOfActiveMolecules() > 1) 796 Log() << Verbose(0) << "WARNING:There is more than one molecule active! Atoms will be added to each." << endl;794 eLog() << Verbose(2) << "There is more than one molecule active! Atoms will be added to each." << endl; 797 795 Log() << Verbose(0) << "INPUT: "; 798 796 cin >> choice; … … 827 825 } 828 826 if (count != j) 829 Log() << Verbose(0) << "ERROR:AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl;827 eLog() << Verbose(1) << "AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl; 830 828 x.Zero(); 831 829 y.Zero(); … … 1250 1248 1251 1249 if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) { 1252 eLog() << Verbose( 0) << "WARNING:config is found under different path then stated in config file::defaultpath!" << endl;1250 eLog() << Verbose(2) << "config is found under different path then stated in config file::defaultpath!" << endl; 1253 1251 } 1254 1252 … … 1354 1352 1355 1353 if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) { 1356 eLog() << Verbose( 0) << "WARNING:config is found under different path then stated in config file::defaultpath!" << endl;1354 eLog() << Verbose(2) << "config is found under different path then stated in config file::defaultpath!" << endl; 1357 1355 } 1358 1356 … … 1387 1385 molecule *mol = NULL; 1388 1386 string BondGraphFileName(""); 1387 int verbosity = 0; 1389 1388 strncpy(configuration.databasepath, LocalPath, MAXSTRINGSIZE-1); 1390 1389 … … 1432 1431 Log() << Verbose(0) << "\t-T x1 x2 x3\tTranslate periodically all atoms by this vector (x1,x2,x3)." << endl; 1433 1432 Log() << Verbose(0) << "\t-u rho\tsuspend in water solution and output necessary cell lengths, average density rho and repetition." << endl; 1434 Log() << Verbose(0) << "\t-v/-V\t\tGives version information." << endl; 1433 Log() << Verbose(0) << "\t-v\t\tsets verbosity (more is more)." << endl; 1434 Log() << Verbose(0) << "\t-V\t\tGives version information." << endl; 1435 1435 Log() << Verbose(0) << "Note: config files must not begin with '-' !" << endl; 1436 1436 return (1); 1437 1437 break; 1438 1438 case 'v': 1439 while (argv[argptr-1][verbosity+1] == 'v') { 1440 verbosity++; 1441 } 1442 setVerbosity(verbosity); 1443 Log() << Verbose(0) << "Setting verbosity to " << verbosity << "." << endl; 1444 break; 1439 1445 case 'V': 1440 1446 Log() << Verbose(0) << argv[0] << " " << VERSIONSTRING << endl; … … 1841 1847 } 1842 1848 } else { 1843 eLog() << Verbose( 0) << "Removal failed due to missing atoms on molecule or wrong id." << endl;1849 eLog() << Verbose(1) << "Removal failed due to missing atoms on molecule or wrong id." << endl; 1844 1850 } 1845 1851 argptr+=2; … … 2002 2008 j = atoi(argv[argptr++]); 2003 2009 if ((j<0) || (j>1)) { 2004 eLog() << Verbose(1) << " ERROR:Argument of '-m' should be either 0 for no-rotate or 1 for rotate." << endl;2010 eLog() << Verbose(1) << "Argument of '-m' should be either 0 for no-rotate or 1 for rotate." << endl; 2005 2011 j = 0; 2006 2012 } … … 2064 2070 // repetition[i] = atoi(argv[argptr++]); 2065 2071 // if (repetition[i] < 1) 2066 // eLog() << Verbose( 0) << "ERROR:repetition value must be greater 1!" << endl;2072 // eLog() << Verbose(1) << "repetition value must be greater 1!" << endl; 2067 2073 // repetition[i] = 1; 2068 2074 // } … … 2083 2089 Vector ** vectors; 2084 2090 if (faktor < 1) { 2085 eLog() << Verbose( 0) << "ERROR: Repetition faktor mus be greater than 1!" << endl;2091 eLog() << Verbose(1) << "Repetition factor mus be greater than 1!" << endl; 2086 2092 faktor = 1; 2087 2093 } … … 2100 2106 } 2101 2107 if (count != j) 2102 Log() << Verbose(0) << "ERROR:AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl;2108 eLog() << Verbose(1) << "AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl; 2103 2109 x.Zero(); 2104 2110 y.Zero(); … … 2165 2171 int j; 2166 2172 2167 setVerbosity( 2);2173 setVerbosity(0); 2168 2174 2169 2175 // =========================== PARSE COMMAND LINE OPTIONS ====================================
Note:
See TracChangeset
for help on using the changeset viewer.
