- Timestamp:
- Sep 2, 2008, 12:06:14 PM (16 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 7e27e7
- Parents:
- 7e07cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
r7e07cf rdd8cf8 741 741 atom *first; 742 742 bool SaveFlag = false; 743 int ExitFlag = 1;743 int ExitFlag = 0; 744 744 int j; 745 745 double volume = 0.; … … 869 869 switch(argv[argptr-1][1]) { 870 870 case 'p': 871 ExitFlag = 1; 871 872 SaveFlag = true; 872 873 cout << Verbose(1) << "Parsing xyz file for new atoms." << endl; … … 885 886 switch(argv[argptr-1][1]) { 886 887 case 'D': 888 ExitFlag = 1; 887 889 { 888 890 cout << Verbose(1) << "Depth-First-Search Analysis." << endl; … … 904 906 break; 905 907 case 'P': 908 ExitFlag = 1; 906 909 SaveFlag = true; 907 910 cout << Verbose(1) << "Parsing forces file and Verlet integrating." << endl; … … 913 916 break; 914 917 case 't': 918 ExitFlag = 1; 915 919 SaveFlag = true; 916 920 cout << Verbose(1) << "Translating all ions to new origin." << endl; … … 921 925 break; 922 926 case 'a': 927 ExitFlag = 1; 923 928 SaveFlag = true; 924 929 cout << Verbose(1) << "Adding new atom with element " << argv[argptr] << " at (" << argv[argptr+1] << "," << argv[argptr+2] << "," << argv[argptr+3] << "), "; … … 936 941 break; 937 942 case 's': 943 ExitFlag = 1; 938 944 SaveFlag = true; 939 945 j = -1; … … 957 963 break; 958 964 case 'b': 965 ExitFlag = 1; 959 966 SaveFlag = true; 960 967 j = -1; … … 972 979 break; 973 980 case 'c': 981 ExitFlag = 1; 974 982 SaveFlag = true; 975 983 j = -1; … … 989 997 break; 990 998 case 'O': 999 ExitFlag = 1; 991 1000 SaveFlag = true; 992 1001 cout << Verbose(1) << "Centering atoms in origin." << endl; … … 995 1004 break; 996 1005 case 'r': 1006 ExitFlag = 1; 997 1007 SaveFlag = true; 998 1008 cout << Verbose(1) << "Converting config file from supposed old to new syntax." << endl; … … 1000 1010 case 'F': 1001 1011 case 'f': 1012 ExitFlag = 1; 1002 1013 cout << "Fragmenting molecule with bond distance " << argv[argptr] << " angstroem, order of " << argv[argptr+1] << "." << endl; 1003 1014 if (argc >= argptr+2) { … … 1017 1028 break; 1018 1029 case 'm': 1030 ExitFlag = 1; 1019 1031 j = atoi(argv[argptr++]); 1020 1032 if ((j<0) || (j>1)) { … … 1030 1042 break; 1031 1043 case 'o': 1044 ExitFlag = 1; 1032 1045 SaveFlag = true; 1033 1046 cout << Verbose(0) << "Evaluating volume of the convex envelope."; … … 1035 1048 break; 1036 1049 case 'U': 1050 ExitFlag = 1; 1037 1051 volume = atof(argv[argptr++]); 1038 1052 cout << Verbose(0) << "Using " << volume << " angstrom^3 as the volume instead of convex envelope one's." << endl; 1039 1053 case 'u': 1054 ExitFlag = 1; 1040 1055 { 1041 1056 double density; … … 1057 1072 break; 1058 1073 case 'd': 1074 ExitFlag = 1; 1059 1075 SaveFlag = true; 1060 1076 for (int axis = 1; axis <= NDIM; axis++) {
Note:
See TracChangeset
for help on using the changeset viewer.