Changes in molecuilder/src/config.cpp [a68d44:486aa5]
- File:
-
- 1 edited
-
molecuilder/src/config.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/config.cpp
ra68d44 r486aa5 72 72 file= new ifstream(filename); 73 73 if (file == NULL) { 74 eLog() << Verbose( 1) << "config file " << filename << " missing!" << endl;74 eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl; 75 75 return; 76 76 } … … 87 87 // allocate buffer's 1st dimension 88 88 if (buffer != NULL) { 89 eLog() << Verbose( 1) << "FileBuffer->buffer is not NULL!" << endl;89 eLog() << Verbose(0) << "ERROR: FileBuffer->buffer is not NULL!" << endl; 90 90 return; 91 91 } else … … 143 143 if (LineMapping == NULL) { 144 144 eLog() << Verbose(0) << "map pointer is NULL: " << LineMapping << endl; 145 performCriticalExit();146 145 return; 147 146 } … … 157 156 if (CurrentLine+nr < NoLines) 158 157 LineMapping[CurrentLine+(nr++)] = runner->second; 159 else {158 else 160 159 eLog() << Verbose(0) << "config::MapIonTypesInBuffer - NoAtoms is wrong: We are past the end of the file!" << endl; 161 performCriticalExit();162 }163 160 } 164 161 } … … 656 653 { 657 654 if (FileBuffer != NULL) { 658 eLog() << Verbose( 2) << "deleting present FileBuffer in PrepareFileBuffer()." << endl;655 eLog() << Verbose(1) << "WARNING: deleting present FileBuffer in PrepareFileBuffer()." << endl; 659 656 delete(FileBuffer); 660 657 } … … 689 686 if (MaxTypes == 0) { 690 687 eLog() << Verbose(0) << "There are no atoms according to MaxTypes in this config file." << endl; 691 performCriticalExit();692 688 } else { 693 689 // prescan number of ions per type … … 708 704 if (!ParseForParameter(verbose,FileBuffer, (const char*)name, 1, 1, 1, int_type, &value[0], 1, critical)) { 709 705 eLog() << Verbose(0) << "There are no atoms in the config file!" << endl; 710 performCriticalExit();711 706 return; 712 707 } … … 852 847 ifstream *file = new ifstream(filename); 853 848 if (file == NULL) { 854 eLog() << Verbose( 1) << "config file " << filename << " missing!" << endl;849 eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl; 855 850 return; 856 851 } … … 1056 1051 1057 1052 // 2. parse the bond graph file if given 1058 if (BG == NULL) { 1059 BG = new BondGraph(IsAngstroem); 1060 if (BG->LoadBondLengthTable(BondGraphFileName)) { 1061 Log() << Verbose(0) << "Bond length table loaded successfully." << endl; 1062 } else { 1063 eLog() << Verbose(1) << "Bond length table loading failed." << endl; 1064 } 1053 BG = new BondGraph(IsAngstroem); 1054 if (BG->LoadBondLengthTable(BondGraphFileName)) { 1055 Log() << Verbose(0) << "Bond length table loaded successfully." << endl; 1056 } else { 1057 Log() << Verbose(0) << "Bond length table loading failed." << endl; 1065 1058 } 1066 1059 1067 1060 // 3. parse the molecule in 1068 1061 LoadMolecule(mol, FileBuffer, periode, FastParsing); 1069 mol->SetNameFromFilename(filename);1070 1062 mol->ActiveFlag = true; 1071 MolList->insert(mol);1072 1063 1073 1064 // 4. dissect the molecule into connected subgraphs 1074 // don't do this here ... 1075 //MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this); 1065 MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this); 1076 1066 1077 1067 delete(mol); … … 1090 1080 ifstream *file = new ifstream(filename); 1091 1081 if (file == NULL) { 1092 eLog() << Verbose( 1) << "config file " << filename << " missing!" << endl;1082 eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl; 1093 1083 return; 1094 1084 }
Note:
See TracChangeset
for help on using the changeset viewer.
