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