Changeset 1f9f1b for molecuilder/src/periodentafel.cpp
- Timestamp:
- Jun 16, 2008, 2:09:27 PM (17 years ago)
- Children:
- b73d28
- Parents:
- 0779a9
- File:
-
- 1 edited
-
molecuilder/src/periodentafel.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/periodentafel.cpp
r0779a9 r1f9f1b 217 217 218 218 // fill valence DB per element 219 strncat(filename, path, MAXSTRINGSIZE); 220 strncpy(filename, STANDARDVALENCEDB, MAXSTRINGSIZE-strlen(filename)); 219 strncpy(filename, path, MAXSTRINGSIZE); 220 strncat(filename, "/", MAXSTRINGSIZE-strlen(filename)); 221 strncat(filename, STANDARDVALENCEDB, MAXSTRINGSIZE-strlen(filename)); 221 222 infile.open(filename); 222 223 if (infile != NULL) { … … 226 227 infile >> FindElement((int)tmp)->Valence; 227 228 infile >> ws; 228 //cout << Verbose(3) << "Element " << (int)tmp << " has " << find_element((int)tmp)->Valence << " valence electrons." << endl;229 //cout << Verbose(3) << "Element " << (int)tmp << " has " << FindElement((int)tmp)->Valence << " valence electrons." << endl; 229 230 } 230 231 infile.close(); … … 234 235 235 236 // fill valence DB per element 236 strncat(filename, path, MAXSTRINGSIZE); 237 strncpy(filename, STANDARDORBITALDB, MAXSTRINGSIZE-strlen(filename)); 237 strncpy(filename, path, MAXSTRINGSIZE); 238 strncat(filename, "/", MAXSTRINGSIZE-strlen(filename)); 239 strncat(filename, STANDARDORBITALDB, MAXSTRINGSIZE-strlen(filename)); 238 240 infile.open(filename); 239 241 if (infile != NULL) { … … 243 245 infile >> FindElement((int)tmp)->NoValenceOrbitals; 244 246 infile >> ws; 245 //cout << Verbose(3) << "Element " << (int)tmp << " has " << find_element((int)tmp)->NoValenceOrbitals << " number of singly occupied valence orbitals." << endl;247 //cout << Verbose(3) << "Element " << (int)tmp << " has " << FindElement((int)tmp)->NoValenceOrbitals << " number of singly occupied valence orbitals." << endl; 246 248 } 247 249 infile.close(); … … 251 253 252 254 // fill H-BondDistance DB per element 253 strncat(filename, path, MAXSTRINGSIZE); 254 strncpy(filename, STANDARDHBONDDISTANCEDB, MAXSTRINGSIZE-strlen(filename)); 255 strncpy(filename, path, MAXSTRINGSIZE); 256 strncat(filename, "/", MAXSTRINGSIZE-strlen(filename)); 257 strncat(filename, STANDARDHBONDDISTANCEDB, MAXSTRINGSIZE-strlen(filename)); 255 258 infile.open(filename); 256 259 if (infile != NULL) { … … 263 266 infile >> ptr->HBondDistance[2]; 264 267 infile >> ws; 265 //cout << Verbose(3) << "Element " << (int)tmp << " has " << find_element((int)tmp)->HBondDistance[0] << " Angstrom typical distance to hydrogen." << endl;268 //cout << Verbose(3) << "Element " << (int)tmp << " has " << FindElement((int)tmp)->HBondDistance[0] << " Angstrom typical distance to hydrogen." << endl; 266 269 } 267 270 infile.close(); … … 271 274 272 275 // fill H-BondAngle DB per element 273 strncat(filename, path, MAXSTRINGSIZE); 274 strncpy(filename, STANDARDHBONDANGLEDB, MAXSTRINGSIZE-strlen(filename)); 276 strncpy(filename, path, MAXSTRINGSIZE); 277 strncat(filename, "/", MAXSTRINGSIZE-strlen(filename)); 278 strncat(filename, STANDARDHBONDANGLEDB, MAXSTRINGSIZE-strlen(filename)); 275 279 infile.open(filename); 276 280 if (infile != NULL) { … … 288 292 } else 289 293 otherstatus = false; 294 295 if (!otherstatus) 296 cerr << "ERROR: Something went wrong while parsing the databases!" << endl; 290 297 291 298 return status;
Note:
See TracChangeset
for help on using the changeset viewer.
