- Timestamp:
- Oct 15, 2009, 8:10:10 AM (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:
- c144ed2
- Parents:
- bbc338
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
rbbc338 rdb6bf74 50 50 using namespace std; 51 51 52 #include "analysis_correlation.hpp" 52 53 #include "atom.hpp" 53 54 #include "bond.hpp" … … 1375 1376 cout << "\t-B xx xy xz yy yz zz\tBound atoms by domain with given symmetric matrix of (xx,xy,xz,yy,yz,zz)." << endl; 1376 1377 cout << "\t-c x1 x2 x3\tCenter atoms in domain with a minimum distance to boundary of (x1,x2,x3)." << endl; 1378 cout << "\t-C\tPair Correlation analysis." << endl; 1377 1379 cout << "\t-d x1 x2 x3\tDuplicate cell along each axis by given factor." << endl; 1378 1380 cout << "\t-D <bond distance>\tDepth-First-Search Analysis of the molecule, giving cycles and tree/back edges." << endl; … … 1575 1577 //argptr+=1; 1576 1578 break; 1579 case 'C': 1580 if (ExitFlag == 0) ExitFlag = 1; 1581 if ((argptr+1 >= argc) || (argv[argptr+1][0] == '-') || (argv[argptr+2][0] == '-')) { 1582 ExitFlag = 255; 1583 cerr << "Not enough or invalid arguments given for pair correlation analysis: -C <output> <bin output>" << endl; 1584 } else { 1585 SaveFlag = false; 1586 ofstream output(argv[argptr]); 1587 ofstream binoutput(argv[argptr+1]); 1588 class Tesselation T; 1589 const double radius = 5.; 1590 LinkedCell LCList(mol, 2.*radius); 1591 element *oxygen = periode->FindElement(8); 1592 FindNonConvexBorder((ofstream *)&cout, mol, &LCList, radius, NULL); 1593 CorrelationToSurfaceMap *surfacemap = CorrelationToSurface( (ofstream *)&cout, mol, oxygen, mol->TesselStruct, &LCList ); 1594 BinPairMap *binmap = BinData( (ofstream *)&cout, surfacemap, 0.5, 0., 0. ); 1595 OutputCorrelation ( &binoutput, binmap ); 1596 output.close(); 1597 binoutput.close(); 1598 argptr+=2; 1599 } 1600 break; 1577 1601 case 'E': 1578 1602 if (ExitFlag == 0) ExitFlag = 1; … … 2043 2067 MoleculeListClass *molecules = new MoleculeListClass; // list of all molecules 2044 2068 molecule *mol = NULL; 2045 config configuration;2069 config *configuration = new config; 2046 2070 char choice; // menu choice char 2047 2071 Vector x,y,z,n; // coordinates for absolute point in cell volume … … 2053 2077 2054 2078 // =========================== PARSE COMMAND LINE OPTIONS ==================================== 2055 j = ParseCommandLineOptions(argc, argv, molecules, periode, configuration, ConfigFileName);2079 j = ParseCommandLineOptions(argc, argv, molecules, periode, *configuration, ConfigFileName); 2056 2080 switch(j) { 2057 2081 case 255: // something went wrong … … 2135 2159 2136 2160 case 'c': // edit each field of the configuration 2137 configuration .Edit();2161 configuration->Edit(); 2138 2162 break; 2139 2163 … … 2143 2167 2144 2168 case 'g': // manipulate molecules 2145 ManipulateMolecules(periode, molecules, &configuration);2169 ManipulateMolecules(periode, molecules, configuration); 2146 2170 break; 2147 2171 … … 2151 2175 2152 2176 case 'm': // manipulate atoms 2153 ManipulateAtoms(periode, molecules, &configuration);2177 ManipulateAtoms(periode, molecules, configuration); 2154 2178 break; 2155 2179 … … 2158 2182 2159 2183 case 's': // save to config file 2160 SaveConfig(ConfigFileName, &configuration, periode, molecules);2184 SaveConfig(ConfigFileName, configuration, periode, molecules); 2161 2185 break; 2162 2186 … … 2171 2195 2172 2196 // save element data base 2173 if (periode->StorePeriodentafel(configuration .databasepath)) //ElementsFileName2197 if (periode->StorePeriodentafel(configuration->databasepath)) //ElementsFileName 2174 2198 cout << Verbose(0) << "Saving of elements.db successful." << endl; 2175 2199 else … … 2178 2202 delete(molecules); // also free's all molecules contained 2179 2203 delete(periode); 2204 delete(configuration); 2180 2205 2181 2206 cout << Verbose(0) << "Maximum of allocated memory: " … … 2183 2208 cout << Verbose(0) << "Remaining non-freed memory: " 2184 2209 << MemoryUsageObserver::getInstance()->getUsedMemorySize() << endl; 2210 MemoryUsageObserver::purgeInstance(); 2185 2211 2186 2212 return (0); -
src/periodentafel.cpp
rbbc338 rdb6bf74 215 215 cout << "Could not parse element: "; 216 216 neues->Output((ofstream *)&cout); 217 delete(neues); 217 218 } 218 219 }
Note:
See TracChangeset
for help on using the changeset viewer.