Changeset 09af1b


Ignore:
Timestamp:
Apr 10, 2009, 11:28:02 PM (16 years ago)
Author:
Frederik Heber <heber@…>
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
Message:

removed lots of warnings due to unused variables

This arose due to the code-writes for multiple molecules.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/analyzer.cpp

    r63f06e r09af1b  
    5050        char *dir = NULL;
    5151        bool Hcorrected = true;
    52         double norm;
    5352        int counter;
    5453
  • src/boundary.cpp

    r63f06e r09af1b  
    15211521
    15221522        cout << Verbose(1) << "Adding triangle to its lines" << endl;
    1523         int i = 0;
    15241523        TrianglesOnBoundary.insert(TrianglePair(TrianglesOnBoundaryCount, BTS));
    15251524        TrianglesOnBoundaryCount++;
     
    17291728        Vector Mittelpunkt;
    17301729
    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;
    17331731        double BallAngle, AlternativeSign;
    17341732        atom *Walker; // variable atom point
     
    21522150        LineMap::iterator FindLine;
    21532151        PointMap::iterator FindPoint;
    2154         bool Present[3];
    21552152
    21562153        *out << Verbose(2) << "Begin of CheckPresenceOfTriangle" << endl;
     
    22142211void 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)
    22152212{
    2216         atom *Walker = NULL;
    22172213        Vector CircleCenter;    // center of the circle, i.e. of the band of sphere's centers
    22182214        Vector CirclePlaneNormal; // normal vector defining the plane this circle lives in
     
    22252221        double radius;
    22262222        double alpha, Otheralpha; // angles (i.e. parameter for the circle).
    2227         double Nullalpha; // angle between OldSphereCenter and NormalVector of base triangle
    22282223        int N[NDIM], Nlower[NDIM], Nupper[NDIM];
    22292224        atom *Candidate = NULL;
     
    23712366{
    23722367        cout << Verbose(2) << "Begin of Find_second_point_for_Tesselation" << endl;
    2373         int i;
    23742368        Vector AngleCheck;
    2375         atom* Walker;
    23762369        double norm = -1., angle;
    23772370        LinkedAtoms *List = NULL;
     
    24412434        int i = 0;
    24422435        LinkedAtoms *List = NULL;
    2443         atom* Walker;
    24442436        atom* FirstPoint;
    24452437        atom* SecondPoint;
     
    25662558        ofstream *tempstream = NULL;
    25672559        char NumberName[255];
    2568         double tmp;
    25692560
    25702561        atom* Opt_Candidate = NULL;
     
    26762667                        string NameofTempFile(tempbasename);
    26772668                        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))
    26792670                                NameofTempFile.erase(npos, 1);
    26802671                        NameofTempFile.append(TecplotSuffix);
     
    26902681                        string NameofTempFile(tempbasename);
    26912682                        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))
    26932684                                NameofTempFile.erase(npos, 1);
    26942685                        NameofTempFile.append(Raster3DSuffix);
  • src/builder.cpp

    r63f06e r09af1b  
    628628static void ManipulateAtoms(periodentafel *periode, MoleculeListClass *molecules, config *configuration)
    629629{
    630   atom *first, *second, *third, *fourth;
    631   Vector **atoms;
     630  atom *first, *second;
    632631  molecule *mol = NULL;
    633632  Vector x,y,z,n; // coordinates for absolute point in cell volume
    634633  double *factor; // unit factor if desired
    635   double a,b,c;
    636634  double bond, min_bond;
    637635  char choice;  // menu choice char
     
    749747static void ManipulateMolecules(periodentafel *periode, MoleculeListClass *molecules, config *configuration)
    750748{
    751   atom *first, *second, *third, *fourth;
    752   Vector **atoms;
     749  atom *first;
    753750  Vector x,y,z,n; // coordinates for absolute point in cell volume
    754   double a,b,c;
    755751  int j, axis, count, faktor;
    756752  char choice;  // menu choice char
    757   bool valid;
    758753  molecule *mol = NULL;
    759754  element **Elements;
     
    912907{
    913908  char choice;  // menu choice char
    914   bool valid;
    915909  Vector center;
    916910  int nr, count;
    917911  molecule *mol = NULL;
    918   char *molname = NULL;
    919   int length;
    920912
    921913  cout << Verbose(0) << "==========EDIT MOLECULES=====================" << endl;
     
    10301022{
    10311023  char choice;  // menu choice char
    1032   bool valid;
    10331024
    10341025  cout << Verbose(0) << "===========MERGE MOLECULES=====================" << endl;
     
    18911882        molecule *mol = NULL;
    18921883        config configuration;
    1893         double tmp1;
    1894         atom *first, *second;
    18951884        char choice;    // menu choice char
    18961885        Vector x,y,z,n; // coordinates for absolute point in cell volume
    1897         bool valid; // flag if input was valid or not
    18981886        ifstream test;
    18991887        ofstream output;
     
    19011889        char ConfigFileName[MAXSTRINGSIZE];
    19021890        char *ElementsFileName = NULL;
    1903         int Z;
    1904         int j, axis, count, faktor;
     1891        int j;
    19051892
    19061893        // =========================== PARSE COMMAND LINE OPTIONS ====================================
  • src/ellipsoid.cpp

    r63f06e r09af1b  
    217217        int PointsLeft = 0;
    218218        int PointsPicked = 0;
    219         double value, threshold;
    220219        int Nlower[NDIM], Nupper[NDIM];
    221220        set<int> PickedAtomNrs;  // ordered list of picked atoms
     
    274273                                PickedAtomNrs.insert(index);
    275274                        }
    276                 } while (PickedAtomNrs.size() < PointsToPick);
     275                } while (PickedAtomNrs.size() < (size_t) PointsToPick);
    277276
    278277                index = 0; // now go through all and pick those whose from PickedAtomsNr
Note: See TracChangeset for help on using the changeset viewer.