- Timestamp:
- Aug 4, 2009, 1:55:11 PM (15 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:
- 1953f9
- Parents:
- ef0e6d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
ref0e6d r9f97c5 584 584 LinkedCell LCList(mol, 10.); 585 585 class Tesselation *TesselStruct = NULL; 586 Find_convex_border((ofstream *)&cout, mol, TesselStruct,&LCList, NULL);586 Find_convex_border((ofstream *)&cout, mol, &LCList, NULL); 587 587 double clustervolume = VolumeOfConvexEnvelope((ofstream *)&cout, TesselStruct, configuration); 588 588 cout << Verbose(0) << "The tesselated surface area is " << clustervolume << "." << endl; … … 1562 1562 } 1563 1563 break; 1564 case 'F': 1565 ExitFlag = 1; 1566 if (argptr+5 >=argc) { 1567 ExitFlag = 255; 1568 cerr << "Not enough or invalid arguments given for filling box with water: -F <dist_x> <dist_y> <dist_z> <randatom> <randmol> <DoRotate>" << endl; 1569 } else { 1570 SaveFlag = true; 1571 cout << Verbose(1) << "Filling Box with water molecules." << endl; 1572 // construct water molecule 1573 molecule *filler = new molecule(periode);; 1574 molecule *Filling = NULL; 1575 atom *second = NULL, *third = NULL; 1576 first = new atom(); 1577 first->type = periode->FindElement(1); 1578 first->x.Init(0.441, -0.143, 0.); 1579 filler->AddAtom(first); 1580 second = new atom(); 1581 second->type = periode->FindElement(1); 1582 second->x.Init(-0.464, 1.137, 0.0); 1583 filler->AddAtom(second); 1584 third = new atom(); 1585 third->type = periode->FindElement(8); 1586 third->x.Init(-0.464, 0.177, 0.); 1587 filler->AddAtom(third); 1588 filler->AddBond(first, third, 1); 1589 filler->AddBond(second, third, 1); 1590 // call routine 1591 double distance[NDIM]; 1592 for (int i=0;i<NDIM;i++) 1593 distance[i] = atof(argv[argptr+i]); 1594 Filling = FillBoxWithMolecule((ofstream *)&cout, molecules, filler, configuration, distance, atof(argv[argptr+3]), atof(argv[argptr+4]), atoi(argv[argptr+5])); 1595 if (Filling != NULL) { 1596 molecules->insert(Filling); 1597 } 1598 delete(filler); 1599 argptr+=6; 1600 } 1601 break; 1564 1602 case 'A': 1565 1603 ExitFlag = 1; … … 1587 1625 cout << Verbose(1) << "Using rolling ball of radius " << atof(argv[argptr]) << " and storing tecplot data in " << argv[argptr+1] << "." << endl; 1588 1626 LinkedCell LCList(mol, atof(argv[argptr])*2.); 1589 Find_non_convex_border((ofstream *)&cout, mol, & T, &LCList, argv[argptr+1], atof(argv[argptr]));1627 Find_non_convex_border((ofstream *)&cout, mol, &LCList, argv[argptr+1], atof(argv[argptr])); 1590 1628 //FindDistributionOfEllipsoids((ofstream *)&cout, &T, &LCList, N, number, filename.c_str()); 1591 1629 argptr+=2; … … 1770 1808 cout << Verbose(1) << "Converting config file from supposed old to new syntax." << endl; 1771 1809 break; 1772 case 'F':1773 1810 case 'f': 1774 1811 ExitFlag = 1; … … 1814 1851 LinkedCell LCList(mol, 10.); 1815 1852 class Tesselation *TesselStruct = NULL; 1816 Find_convex_border((ofstream *)&cout, mol, TesselStruct,&LCList, argv[argptr]);1853 Find_convex_border((ofstream *)&cout, mol, &LCList, argv[argptr]); 1817 1854 double clustervolume = VolumeOfConvexEnvelope((ofstream *)&cout, TesselStruct, &configuration); 1818 1855 cout << Verbose(0) << "The tesselated surface area is " << clustervolume << "." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.