Changeset ff74f7 for molecuilder/src/moleculelist.cpp
- Timestamp:
- Aug 29, 2008, 10:39:17 AM (17 years ago)
- Children:
- 830971
- Parents:
- 2c536c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/moleculelist.cpp
r2c536c rff74f7 419 419 outputFragment.clear(); 420 420 421 // list atoms in fragment for debugging 421 422 *out << Verbose(2) << "Contained atoms: "; 422 423 Walker = ListOfMolecules[i]->start; … … 426 427 } 427 428 *out << endl; 428 // prepare output of config file429 sprintf(FragmentName, "%s/%s%s.conf", configuration->configpath, FRAGMENTPREFIX, FragmentNumber);430 outputFragment.open(FragmentName, ios::out);431 //strcpy(PathBackup, configuration->configpath);432 sprintf(FragmentName, "%s/%s%s/", PathBackup, FRAGMENTPREFIX, FragmentNumber);433 429 434 430 // center on edge … … 448 444 449 445 // change path in config 446 //strcpy(PathBackup, configuration->configpath); 447 sprintf(FragmentName, "%s/%s%s/", PathBackup, FRAGMENTPREFIX, FragmentNumber); 450 448 configuration->SetDefaultPath(FragmentName); 449 450 // and save as config 451 sprintf(FragmentName, "%s/%s%s.conf", configuration->configpath, FRAGMENTPREFIX, FragmentNumber); 452 outputFragment.open(FragmentName, ios::out); 451 453 *out << Verbose(2) << "Saving bond fragment No. " << FragmentNumber << "/" << FragmentCounter-1 << " as config ..."; 452 454 if ((intermediateResult = configuration->Save(&outputFragment, ListOfMolecules[i]->elemente, ListOfMolecules[i]))) … … 454 456 else 455 457 *out << " failed." << endl; 458 456 459 // restore old config 457 460 configuration->SetDefaultPath(PathBackup); 458 461 462 result = result && intermediateResult; 463 outputFragment.close(); 464 outputFragment.clear(); 465 466 // and save as mpqc input file 467 sprintf(FragmentName, "%s/%s%s.in", configuration->configpath, FRAGMENTPREFIX, FragmentNumber); 468 outputFragment.open(FragmentName, ios::out); 469 *out << Verbose(2) << "Saving bond fragment No. " << FragmentNumber << "/" << FragmentCounter-1 << " as mpqc input ..."; 470 if ((intermediateResult = configuration->SaveMPQC(&outputFragment, ListOfMolecules[i]))) 471 *out << " done." << endl; 472 else 473 *out << " failed." << endl; 474 459 475 result = result && intermediateResult; 460 476 outputFragment.close();
Note:
See TracChangeset
for help on using the changeset viewer.