Changeset 09af1b for src/boundary.cpp
- Timestamp:
- Apr 10, 2009, 11:28:02 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:
- 178f92
- Parents:
- 63f06e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/boundary.cpp
r63f06e r09af1b 1521 1521 1522 1522 cout << Verbose(1) << "Adding triangle to its lines" << endl; 1523 int i = 0;1524 1523 TrianglesOnBoundary.insert(TrianglePair(TrianglesOnBoundaryCount, BTS)); 1525 1524 TrianglesOnBoundaryCount++; … … 1729 1728 Vector Mittelpunkt; 1730 1729 1731 double CurrentEpsilon = 0.1; 1732 double alpha, beta, gamma, SideA, SideB, SideC, sign, Umkreisradius, Restradius, Distance; 1730 double alpha, beta, gamma, SideA, SideB, SideC, sign, Umkreisradius; 1733 1731 double BallAngle, AlternativeSign; 1734 1732 atom *Walker; // variable atom point … … 2152 2150 LineMap::iterator FindLine; 2153 2151 PointMap::iterator FindPoint; 2154 bool Present[3];2155 2152 2156 2153 *out << Verbose(2) << "Begin of CheckPresenceOfTriangle" << endl; … … 2214 2211 void Find_third_point_for_Tesselation(Vector NormalVector, Vector SearchDirection, Vector OldSphereCenter, class BoundaryLineSet *BaseLine, atom *ThirdNode, atom*& OptCandidate, Vector *OptCandidateCenter, double *ShortestAngle, const double RADIUS, LinkedCell *LC) 2215 2212 { 2216 atom *Walker = NULL;2217 2213 Vector CircleCenter; // center of the circle, i.e. of the band of sphere's centers 2218 2214 Vector CirclePlaneNormal; // normal vector defining the plane this circle lives in … … 2225 2221 double radius; 2226 2222 double alpha, Otheralpha; // angles (i.e. parameter for the circle). 2227 double Nullalpha; // angle between OldSphereCenter and NormalVector of base triangle2228 2223 int N[NDIM], Nlower[NDIM], Nupper[NDIM]; 2229 2224 atom *Candidate = NULL; … … 2371 2366 { 2372 2367 cout << Verbose(2) << "Begin of Find_second_point_for_Tesselation" << endl; 2373 int i;2374 2368 Vector AngleCheck; 2375 atom* Walker;2376 2369 double norm = -1., angle; 2377 2370 LinkedAtoms *List = NULL; … … 2441 2434 int i = 0; 2442 2435 LinkedAtoms *List = NULL; 2443 atom* Walker;2444 2436 atom* FirstPoint; 2445 2437 atom* SecondPoint; … … 2566 2558 ofstream *tempstream = NULL; 2567 2559 char NumberName[255]; 2568 double tmp;2569 2560 2570 2561 atom* Opt_Candidate = NULL; … … 2676 2667 string NameofTempFile(tempbasename); 2677 2668 NameofTempFile.append(NumberName); 2678 for(size_t npos = NameofTempFile.find_first_of(' '); npos != -1; npos = NameofTempFile.find(' ', npos))2669 for(size_t npos = NameofTempFile.find_first_of(' '); npos != string::npos; npos = NameofTempFile.find(' ', npos)) 2679 2670 NameofTempFile.erase(npos, 1); 2680 2671 NameofTempFile.append(TecplotSuffix); … … 2690 2681 string NameofTempFile(tempbasename); 2691 2682 NameofTempFile.append(NumberName); 2692 for(size_t npos = NameofTempFile.find_first_of(' '); npos != -1; npos = NameofTempFile.find(' ', npos))2683 for(size_t npos = NameofTempFile.find_first_of(' '); npos != string::npos; npos = NameofTempFile.find(' ', npos)) 2693 2684 NameofTempFile.erase(npos, 1); 2694 2685 NameofTempFile.append(Raster3DSuffix);
Note:
See TracChangeset
for help on using the changeset viewer.