Changeset 5887ed for molecuilder
- Timestamp:
- Sep 5, 2008, 5:09:39 PM (17 years ago)
- Children:
- f9cd68
- Parents:
- dfc1c7
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
rdfc1c7 r5887ed 686 686 output.open(DEFAULTCONFIG, ios::trunc); 687 687 } 688 cout << Verbose(0) << "Saving of config file "; 688 689 if (configuration->Save(&output, periode, mol)) 689 cout << Verbose(0) << "Saving of config filesuccessful." << endl;690 cout << "successful." << endl; 690 691 else 691 cout << Verbose(0) << "Saving of config filefailed." << endl;692 cout << "failed." << endl; 692 693 output.close(); 693 694 output.clear(); 695 694 696 // and save to xyz file 695 697 if (ConfigFileName != NULL) { … … 703 705 output.open(filename, ios::trunc); 704 706 } 707 cout << Verbose(0) << "Saving of XYZ file "; 705 708 if (mol->MDSteps <= 1) { 706 709 if (mol->OutputXYZ(&output)) 707 cout << Verbose(0) << "Saving of XYZ filesuccessful." << endl;710 cout << "successful." << endl; 708 711 else 709 cout << Verbose(0) << "Saving of XYZ filefailed." << endl;712 cout << "failed." << endl; 710 713 } else { 711 714 if (mol->OutputTrajectoriesXYZ(&output)) 712 cout << Verbose(0) << "Saving of XYZ filesuccessful." << endl;715 cout << "successful." << endl; 713 716 else 714 cout << Verbose(0) << "Saving of XYZ filefailed." << endl;717 cout << "failed." << endl; 715 718 } 719 output.close(); 720 output.clear(); 721 722 // and save as MPQC configuration 723 if (ConfigFileName != NULL) { 724 strcpy(filename, ConfigFileName); 725 strcat(filename, ".in"); 726 output.open(filename, ios::trunc); 727 } 728 if (output == NULL) { 729 strcpy(filename,"main_pcp_linux"); 730 strcat(filename, ".in"); 731 output.open(filename, ios::trunc); 732 } 733 cout << Verbose(0) << "Saving as mpqc input "; 734 if (configuration->SaveMPQC(&output, mol)) 735 cout << "done." << endl; 736 else 737 cout << "failed." << endl; 716 738 output.close(); 717 739 output.clear();
Note:
See TracChangeset
for help on using the changeset viewer.
