Changeset 584691 for molecuilder
- Timestamp:
- Apr 29, 2008, 7:16:32 AM (17 years ago)
- Children:
- 7e2c5c
- Parents:
- 2456db
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
r2456db r584691 698 698 mol->CalculateOrbitals(*configuration); 699 699 configuration->InitMaxMinStopStep = configuration->MaxMinStopStep = configuration->MaxPsiDouble; 700 if (ConfigFileName != NULL) 700 if (ConfigFileName != NULL) { 701 701 output.open(ConfigFileName, ios::trunc); 702 if (output == NULL) 703 output.open("main_pcp_linux", ios::trunc); 702 } else { 703 output.open(configuration->configname, ios::trunc); 704 } 704 705 if (configuration->Save(&output, periode, mol)) 705 706 cout << Verbose(0) << "Saving of config file successful." << endl; … … 725 726 output.close(); 726 727 output.clear(); 728 727 729 if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) { 728 730 cerr << "WARNING: config is found under different path then stated in config file::defaultpath!" << endl; … … 765 767 766 768 // =========================== PARSE COMMAND LINE OPTIONS ==================================== 767 if (argc > =1) { // config file specified as option769 if (argc > 1) { // config file specified as option 768 770 // 1. : Parse options that just set variables or print help 769 771 argptr = 1; … … 1018 1020 return (0); 1019 1021 } 1022 } else { // no arguments, hence scan the elements db 1023 if (periode->LoadPeriodentafel(ElementsFileName)) 1024 cout << Verbose(0) << "Element list loaded successfully." << endl; 1025 else 1026 cout << Verbose(0) << "Element list loading failed." << endl; 1027 config_present = absent; 1028 configuration.RetrieveConfigPathAndName("main_pcp_linux"); 1020 1029 } 1021 1030
Note:
See TracChangeset
for help on using the changeset viewer.