- Timestamp:
- Apr 29, 2014, 12:42:43 PM (12 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, Candidate_v1.7.0, Candidate_v1.7.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:
- ae68b5
- Parents:
- c9db50
- git-author:
- Frederik Heber <heber@…> (02/01/14 15:42:09)
- git-committer:
- Frederik Heber <heber@…> (04/29/14 12:42:43)
- Location:
- src
- Files:
-
- 39 edited
-
Actions/ActionSequence.cpp (modified) (2 diffs)
-
Actions/SelectionAction/Atoms/AtomByIdAction.cpp (modified) (2 diffs)
-
Actions/SelectionAction/Atoms/NotAtomByIdAction.cpp (modified) (2 diffs)
-
Actions/ShapeAction/RemoveShapeAction.cpp (modified) (1 diff)
-
Actions/ShapeAction/StretchShapeAction.cpp (modified) (1 diff)
-
Analysis/analysis_correlation.cpp (modified) (1 diff)
-
Box.cpp (modified) (1 diff)
-
Filling/Mesh/CubeMesh.cpp (modified) (1 diff)
-
Fragmentation/AdaptivityMap.cpp (modified) (1 diff)
-
Fragmentation/BondsPerShortestPath.cpp (modified) (2 diffs)
-
Fragmentation/Exporters/ExportGraph.cpp (modified) (1 diff)
-
Fragmentation/Fragmentation.cpp (modified) (3 diffs)
-
Fragmentation/Homology/FragmentEdge.cpp (modified) (1 diff)
-
Fragmentation/Homology/FragmentNode.cpp (modified) (1 diff)
-
Fragmentation/Homology/HomologyContainer.hpp (modified) (1 diff)
-
Fragmentation/Homology/HomologyGraph.cpp (modified) (1 diff)
-
Fragmentation/Homology/unittests/stubs/FragmentStub.cpp (modified) (1 diff)
-
Fragmentation/Summation/Containers/FragmentationResultContainer.hpp (modified) (3 diffs)
-
Fragmentation/Summation/Containers/MPQCData.hpp (modified) (1 diff)
-
Fragmentation/Summation/IndexSetContainer.cpp (modified) (2 diffs)
-
Fragmentation/Summation/SetValues/Fragment.cpp (modified) (1 diff)
-
Fragmentation/Summation/SetValues/unittests/EigenvaluesUnitTest.cpp (modified) (2 diffs)
-
Fragmentation/fragmentation_helpers.cpp (modified) (2 diffs)
-
FunctionApproximation/Extractors.cpp (modified) (1 diff)
-
FunctionApproximation/FunctionApproximation.cpp (modified) (1 diff)
-
Jobs/MPQCJob.cpp (modified) (2 diffs)
-
Jobs/WindowGrid_converter.cpp (modified) (5 diffs)
-
Parameters/Validators/Specific/TimeStepPresentValidator.cpp (modified) (1 diff)
-
Potentials/Specifics/FourBodyPotential_Torsion.cpp (modified) (1 diff)
-
Potentials/Specifics/ThreeBodyPotential_Angle.cpp (modified) (1 diff)
-
Shapes/BaseShapes.cpp (modified) (2 diffs)
-
Tesselation/boundary.cpp (modified) (4 diffs)
-
Tesselation/tesselation.cpp (modified) (6 diffs)
-
Tesselation/tesselationhelpers.cpp (modified) (2 diffs)
-
UIElements/Qt4/Query/QtQueryList.hpp (modified) (1 diff)
-
UIElements/Qt4/Query/VectorQtQuery.cpp (modified) (1 diff)
-
UIElements/Views/Qt4/Plotting/QSeisPlotPage.cpp (modified) (4 diffs)
-
UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.cpp (modified) (1 diff)
-
UIElements/Views/Qt4/QtTimeLine.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionSequence.cpp
rc9db50 ra2a2f7 92 92 // Each action registers itself with the history 93 93 void ActionSequence::callAll(){ 94 for ( int i=0;i<loop;++i)94 for (size_t i=0;i<loop;++i) 95 95 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 96 96 // we want to have a global bookkeeping for all actions in the sequence, so … … 105 105 ActionSequence::stateSet ActionSequence::callAll(bool){ 106 106 stateSet states; 107 for ( int i=0;i<loop;++i)107 for (size_t i=0;i<loop;++i) 108 108 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 109 109 // we want to have a global bookkeeping for all actions in the sequence, so -
src/Actions/SelectionAction/Atoms/AtomByIdAction.cpp
rc9db50 ra2a2f7 60 60 AtomMissing 61 61 } status = NoStatus; 62 62 63 const atomids_t atomids = params.atomids.get(); 63 64 atomids_t undoatomids; … … 95 96 break; 96 97 } 98 return Action::failure; 97 99 } 98 100 -
src/Actions/SelectionAction/Atoms/NotAtomByIdAction.cpp
rc9db50 ra2a2f7 60 60 AtomMissing 61 61 } status = NoStatus; 62 62 63 const atomids_t atomids = params.atomids.get(); 63 64 atomids_t undoatomids; … … 95 96 break; 96 97 } 98 return Action::failure; 97 99 } 98 100 -
src/Actions/ShapeAction/RemoveShapeAction.cpp
rc9db50 ra2a2f7 79 79 80 80 ActionState::ptr ShapeRemoveShapeAction::performRedo(ActionState::ptr _state){ 81 ShapeRemoveShapeState *state = assert_cast<ShapeRemoveShapeState*>(_state.get());81 // ShapeRemoveShapeState *state = assert_cast<ShapeRemoveShapeState*>(_state.get()); 82 82 83 83 std::vector<Shape*> selectedShapes = ShapeRegistry::getInstance().getSelectedShapes(); -
src/Actions/ShapeAction/StretchShapeAction.cpp
rc9db50 ra2a2f7 93 93 std::vector<Shape*> selectedShapes = ShapeRegistry::getInstance().getSelectedShapes(); 94 94 95 Vector helper = params.center.get();96 helper.ScaleAll( params.stretch.get());97 Vector translation = params.center.get() - helper;95 Vector helper = state->params.center.get(); 96 helper.ScaleAll(state->params.stretch.get()); 97 Vector translation = state->params.center.get() - helper; 98 98 99 99 for (unsigned int i=0;i<selectedShapes.size();i++){ 100 Shape s = translate(stretch(*selectedShapes[i], params.stretch.get()), translation);100 Shape s = translate(stretch(*selectedShapes[i], state->params.stretch.get()), translation); 101 101 std::string name = selectedShapes[i]->getName(); 102 102 s.setName(name); -
src/Analysis/analysis_correlation.cpp
rc9db50 ra2a2f7 332 332 atoms_second.begin(), atoms_second.end(), 333 333 intersected_atoms.begin()); 334 const LinkedCell::LinkedList intersected_atoms_set(intersected_atoms.begin(), intersected_atoms .end());334 const LinkedCell::LinkedList intersected_atoms_set(intersected_atoms.begin(), intersected_atoms_end); 335 335 336 336 // create map -
src/Box.cpp
rc9db50 ra2a2f7 229 229 dims++; 230 230 } // there are max vectors in total we need to create 231 const int new_size = pow(2*n+1, dims); 232 if (internal_list.size() != new_size) 233 internal_list.resize(new_size); 231 232 { 233 const size_t new_size = pow(2*n+1, dims); 234 if (internal_list.size() != new_size) 235 internal_list.resize(new_size); 236 } 234 237 235 238 if(!dims){ -
src/Filling/Mesh/CubeMesh.cpp
rc9db50 ra2a2f7 103 103 104 104 // go over [0,1]^3 filler grid 105 int n[NDIM];105 size_t n[NDIM]; 106 106 for (n[0] = 0; n[0] < counts[0]; n[0]++) 107 107 for (n[1] = 0; n[1] < counts[1]; n[1]++) -
src/Fragmentation/AdaptivityMap.cpp
rc9db50 ra2a2f7 205 205 runner != enditer; ++runner) { 206 206 const int No = (*runner).second.first; 207 const atom *Walker = mol->FindAtom(No);207 // const atom *Walker = mol->FindAtom(No); 208 208 LOG(2, "Root " << No << " is already below threshold (10^{" << Order <<"}: " << runner->first << ", setting entry " << No << " of Atom mask to false."); 209 209 AtomMask.setFalse(No); -
src/Fragmentation/BondsPerShortestPath.cpp
rc9db50 ra2a2f7 133 133 // In another picture, the bonds always contain a direction by rightatom being the one more distant from root and hence 134 134 // naturally leftatom forming its predecessor, preventing the BFS"seeker" from continuing in the wrong direction. 135 int AtomKeyNr = -1;135 // int AtomKeyNr = -1; 136 136 atom *Walker = NULL; 137 137 atom *OtherWalker = NULL; … … 162 162 Walker = (*CurrentEdge)->rightatom; // rightatom is always the one more distant 163 163 Predecessor = (*CurrentEdge)->leftatom; // ... and leftatom is predecessor 164 AtomKeyNr = Walker->getNr();164 // AtomKeyNr = Walker->getNr(); 165 165 LOG(1, "INFO: Current Walker is: " << *Walker << " with nr " << Walker->getNr() << " and SP of " << SP << ", with " << RemainingWalkers << " remaining walkers on this level."); 166 166 // check for new sp level -
src/Fragmentation/Exporters/ExportGraph.cpp
rc9db50 ra2a2f7 60 60 const enum HydrogenSaturation _saturation) : 61 61 TotalGraph(_graph), 62 CurrentKeySet(TotalGraph.begin()),63 62 BondFragments(World::getPointer()), 64 63 treatment(_treatment), 65 saturation(_saturation) 64 saturation(_saturation), 65 CurrentKeySet(TotalGraph.begin()) 66 66 { 67 67 } -
src/Fragmentation/Fragmentation.cpp
rc9db50 ra2a2f7 235 235 Info FunctionInfo(__func__); 236 236 std::vector<Graph*> *FragmentLowerOrdersList = NULL; 237 int NumLevels = 0;238 int NumMolecules = 0;239 int TotalNumMolecules = 0;237 size_t NumLevels = 0; 238 // size_t NumMolecules = 0; 239 size_t TotalNumMolecules = 0; 240 240 int *NumMoleculesOfOrder = NULL; 241 241 int Order = 0; … … 296 296 // output resulting number 297 297 LOG(1, "INFO: Number of resulting KeySets is: " << NumMoleculesOfOrder[RootNr] << "."); 298 if (NumMoleculesOfOrder[RootNr] != 0) {299 NumMolecules = 0;300 }298 // if (NumMoleculesOfOrder[RootNr] != 0) { 299 // NumMolecules = 0; 300 // } 301 301 // now, we have completely filled each cell of FragmentLowerOrdersList[] for the current Walker->AdaptiveOrder 302 302 //NumMoleculesOfOrder[Walker->AdaptiveOrder-1] = NumMolecules; … … 441 441 } 442 442 LOG(1, output.str()); 443 return true; 443 444 }; 444 445 -
src/Fragmentation/Homology/FragmentEdge.cpp
rc9db50 ra2a2f7 124 124 } 125 125 126 127 // we need to explicitly instantiate the serialization functions128 BOOST_CLASS_EXPORT_IMPLEMENT(FragmentEdge)126 // 127 //// we need to explicitly instantiate the serialization functions 128 //BOOST_CLASS_EXPORT_IMPLEMENT(FragmentEdge) -
src/Fragmentation/Homology/FragmentNode.cpp
rc9db50 ra2a2f7 108 108 } 109 109 110 111 // we need to explicitly instantiate the serialization functions112 BOOST_CLASS_EXPORT_IMPLEMENT(FragmentNode)110 // 111 //// we need to explicitly instantiate the serialization functions 112 //BOOST_CLASS_EXPORT_IMPLEMENT(FragmentNode) -
src/Fragmentation/Homology/HomologyContainer.hpp
rc9db50 ra2a2f7 19 19 #include <boost/serialization/split_member.hpp> 20 20 #include <boost/serialization/vector.hpp> 21 #include <boost/serialization/version.hpp> 21 22 22 23 #include <iosfwd> -
src/Fragmentation/Homology/HomologyGraph.cpp
rc9db50 ra2a2f7 153 153 } 154 154 155 // we need to explicitly instantiate the serialization functions156 BOOST_CLASS_EXPORT_IMPLEMENT(HomologyGraph) 157 155 // 156 //// we need to explicitly instantiate the serialization functions 157 //BOOST_CLASS_EXPORT_IMPLEMENT(HomologyGraph) -
src/Fragmentation/Homology/unittests/stubs/FragmentStub.cpp
rc9db50 ra2a2f7 126 126 // static bool Fragment::isPositionEqual(const position_t &a, const position_t &b); 127 127 128 // we need to explicitly instantiate the serialization functions 129 BOOST_CLASS_EXPORT_IMPLEMENT(Fragment) 128 // 129 //// we need to explicitly instantiate the serialization functions 130 //BOOST_CLASS_EXPORT_IMPLEMENT(Fragment) 130 131 131 132 /** Equality operator for two nuclei. -
src/Fragmentation/Summation/Containers/FragmentationResultContainer.hpp
rc9db50 ra2a2f7 15 15 16 16 #include <boost/serialization/access.hpp> 17 #include <boost/serialization/map.hpp> 18 #include <boost/serialization/split_member.hpp> 19 #include <boost/serialization/version.hpp> 17 20 #include "CodePatterns/Singleton.hpp" 18 21 … … 167 170 // serialization 168 171 template <typename Archive> 169 void serialize(Archive& ar, const unsigned int version) 172 void load(Archive& ar, const unsigned int version) 173 { 174 OBSERVE; 175 ar & ResultsType; 176 ar & keysets; 177 ar & forcekeysets; 178 ar & shortrangedata; 179 if (version > 0) 180 ar & cycles; 181 if (version > 1) 182 ar & summedshortrange; 183 #ifdef HAVE_VMG 184 ar & longrangedata; 185 #endif 186 } 187 template <typename Archive> 188 void save(Archive& ar, const unsigned int version) const 170 189 { 171 190 ar & ResultsType; … … 181 200 #endif 182 201 } 202 BOOST_SERIALIZATION_SPLIT_MEMBER() 183 203 }; 184 204 -
src/Fragmentation/Summation/Containers/MPQCData.hpp
rc9db50 ra2a2f7 16 16 #include <boost/serialization/access.hpp> 17 17 #include <boost/serialization/vector.hpp> 18 #include <boost/serialization/version.hpp> 18 19 19 20 #include <iosfwd> -
src/Fragmentation/Summation/IndexSetContainer.cpp
rc9db50 ra2a2f7 70 70 for(IndexSet::const_iterator keyiter = (*iter).begin(); 71 71 keyiter != (*iter).end(); ++keyiter) { 72 if (*keyiter != -1)72 if (*keyiter != (size_t)-1) 73 73 _AllIndices->insert((Index_t)*keyiter); 74 74 } … … 86 86 for(IndexSet::const_iterator keyiter = (*iter)->begin(); 87 87 keyiter != (*iter)->end(); ++keyiter) { 88 if (*keyiter != -1)88 if (*keyiter != (size_t)-1) 89 89 _AllIndices->insert((Index_t)*keyiter); 90 90 } -
src/Fragmentation/Summation/SetValues/Fragment.cpp
rc9db50 ra2a2f7 195 195 } 196 196 197 198 // we need to explicitly instantiate the serialization functions 199 BOOST_CLASS_EXPORT_IMPLEMENT(Fragment) 197 // below is not needed as we have above static ZeroInstace instantiating the code 198 199 //// we need to explicitly instantiate the serialization functions 200 //BOOST_CLASS_EXPORT_IMPLEMENT(Fragment) -
src/Fragmentation/Summation/SetValues/unittests/EigenvaluesUnitTest.cpp
rc9db50 ra2a2f7 170 170 const size_t othersubtractedsize = otherev.subtractedsamples.size(); 171 171 const size_t addedsize = ev->addedsamples.size(); 172 const size_t subtractedsize = ev->subtractedsamples.size();172 // const size_t subtractedsize = ev->subtractedsamples.size(); 173 173 *ev -= otherev; 174 174 // otherev did not change … … 193 193 const size_t othersubtractedsize = otherev.subtractedsamples.size(); 194 194 const size_t addedsize = ev->addedsamples.size(); 195 const size_t subtractedsize = ev->subtractedsamples.size();195 // const size_t subtractedsize = ev->subtractedsamples.size(); 196 196 *ev -= otherev; 197 197 // otherev did not change -
src/Fragmentation/fragmentation_helpers.cpp
rc9db50 ra2a2f7 92 92 int StartNr = 0; 93 93 int counter = 0; 94 int NumLevels = 0;94 size_t NumLevels = 0; 95 95 atom *Walker = NULL; 96 96 … … 106 106 ASSERT( NumLevels == FragmentLowerOrdersList[RootNr].size(), 107 107 "CombineAllOrderListIntoOne() - differing size and NumLevels."); 108 for( int i=0;i<NumLevels;i++) {108 for(size_t i=0;i<NumLevels;i++) { 109 109 if (FragmentLowerOrdersList[RootNr][i] != NULL) { 110 110 FragmentList.InsertGraph((*FragmentLowerOrdersList[RootNr][i]), counter); -
src/FunctionApproximation/Extractors.cpp
rc9db50 ra2a2f7 684 684 if (arg.indices.first == *firstindex) { 685 685 if ((arg.indices.second == *secondindex) || (*secondindex == (size_t)-1)) { 686 if (*secondindex == -1)686 if (*secondindex == (size_t)-1) 687 687 *secondindex = arg.indices.second; 688 688 argumentbunch.push_back(arg); -
src/FunctionApproximation/FunctionApproximation.cpp
rc9db50 ra2a2f7 185 185 double *lb = new double[m]; 186 186 double *ub = new double[m]; 187 for (size_t i=0;i< m;++i) {187 for (size_t i=0;i<(size_t)m;++i) { 188 188 lb[i] = lowerbound[i]; 189 189 ub[i] = upperbound[i]; -
src/Jobs/MPQCJob.cpp
rc9db50 ra2a2f7 57 57 FragmentJob(_JobId), 58 58 DoLongrange(MPQCData::DontSampleDensity), 59 DoValenceOnly(MPQCData::DoSampleValenceOnly), 59 60 inputfile(_inputfile), 60 61 grid(_begin, _end, _level) … … 66 67 MPQCJob::MPQCJob() : 67 68 FragmentJob(JobId::IllegalJob), 68 DoLongrange(MPQCData::DontSampleDensity) 69 DoLongrange(MPQCData::DontSampleDensity), 70 DoValenceOnly(MPQCData::DoSampleValenceOnly) 69 71 {} 70 72 -
src/Jobs/WindowGrid_converter.cpp
rc9db50 ra2a2f7 109 109 const VMG::Index size = grid.Local().Size(); 110 110 if (OpenBoundaryConditions) 111 for(N[0]= 0; N[0] < size[0]/4; ++N[0])112 for(N[1]= 0; N[1] <size[1]; ++N[1])113 for(N[2]= 0; N[2] <size[2]; ++N[2]) {114 ASSERT( copyiter != grid.Iterators().Local().End(), 115 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); 116 ++copyiter; 117 } 118 for(N[0]= 0; N[0] < length[0]; ++N[0]) {111 for(N[0]=(size_t)0; N[0] < (size_t)size[0]/(size_t)4; ++N[0]) 112 for(N[1]=(size_t)0; N[1] < (size_t)size[1]; ++N[1]) 113 for(N[2]=(size_t)0; N[2] < (size_t)size[2]; ++N[2]) { 114 ASSERT( copyiter != grid.Iterators().Local().End(), 115 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); 116 ++copyiter; 117 } 118 for(N[0]=(size_t)0; N[0] < length[0]; ++N[0]) { 119 119 std::advance(griditer, pre_offset[1]*total[2]); 120 120 if (OpenBoundaryConditions) 121 for(N[1]= 0; N[1] < size[1]/4; ++N[1])122 for(N[2]= 0; N[2] <size[2]; ++N[2]) {123 ASSERT( copyiter != grid.Iterators().Local().End(), 124 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); 125 ++copyiter; 126 } 127 for(N[1]= 0; N[1] < length[1]; ++N[1]) {121 for(N[1]=(size_t)0; N[1] < (size_t)size[1]/(size_t)4; ++N[1]) 122 for(N[2]=(size_t)0; N[2] < (size_t)size[2]; ++N[2]) { 123 ASSERT( copyiter != grid.Iterators().Local().End(), 124 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); 125 ++copyiter; 126 } 127 for(N[1]=(size_t)0; N[1] < length[1]; ++N[1]) { 128 128 std::advance(griditer, pre_offset[2]); 129 129 if (OpenBoundaryConditions) 130 for(N[2]= 0; N[2] < size[2]/4; ++N[2]) {131 ASSERT( copyiter != grid.Iterators().Local().End(), 132 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); 133 ++copyiter; 134 } 135 for(N[2]= 0; N[2] < length[2]; ++N[2]) {130 for(N[2]=(size_t)0; N[2] < (size_t)size[2]/(size_t)4; ++N[2]) { 131 ASSERT( copyiter != grid.Iterators().Local().End(), 132 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); 133 ++copyiter; 134 } 135 for(N[2]=(size_t)0; N[2] < length[2]; ++N[2]) { 136 136 ASSERT( griditer != window.sampled_grid.end(), 137 137 "InterfaceVMGJob::addGridOntoWindow() - griditer is already at end of window."); … … 142 142 std::advance(griditer, post_offset[2]); 143 143 if (OpenBoundaryConditions) 144 for(N[2]= 0; N[2] < size[2] - size[2]/4 - length[2]; ++N[2]) {144 for(N[2]=(size_t)0; N[2] < (size_t)size[2] - (size_t)size[2]/(size_t)4 - length[2]; ++N[2]) { 145 145 ASSERT( copyiter != grid.Iterators().Local().End(), 146 146 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); … … 150 150 std::advance(griditer, post_offset[1]*total[2]); 151 151 if (OpenBoundaryConditions) 152 for(N[1]= 0; N[1] < size[1] - size[1]/4 - length[1]; ++N[1])153 for(N[2]= 0; N[2] <size[2]; ++N[2]) {152 for(N[1]=(size_t)0; N[1] < (size_t)size[1] - (size_t)size[1]/(size_t)4 - length[1]; ++N[1]) 153 for(N[2]=(size_t)0; N[2] < (size_t)size[2]; ++N[2]) { 154 154 ASSERT( copyiter != grid.Iterators().Local().End(), 155 155 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); … … 158 158 } 159 159 if (OpenBoundaryConditions) 160 for(N[0]= 0; N[0] < size[0] - size[0]/4 - length[0]; ++N[0])161 for(N[1]= 0; N[1] <size[1]; ++N[1])162 for(N[2]= 0; N[2] <size[2]; ++N[2]) {160 for(N[0]=(size_t)0; N[0] < (size_t)size[0] - (size_t)size[0]/(size_t)4 - length[0]; ++N[0]) 161 for(N[1]=(size_t)0; N[1] < (size_t)size[1]; ++N[1]) 162 for(N[2]=(size_t)0; N[2] < (size_t)size[2]; ++N[2]) { 163 163 ASSERT( copyiter != grid.Iterators().Local().End(), 164 164 "InterfaceVMGJob::addGridOntoWindow() - copyiter is already at end of window."); … … 230 230 if (OpenBoundaryConditions) { 231 231 const VMG::Index size = window.Local().Size(); 232 const VMG::Index boundary1size = window.Local().BoundarySize1();233 const VMG::Index boundary2size = window.Local().BoundarySize2();234 const VMG::Index halo1size = window.Local().HaloSize1();235 const VMG::Index halo2size = window.Local().HaloSize2();232 // const VMG::Index boundary1size = window.Local().BoundarySize1(); 233 // const VMG::Index boundary2size = window.Local().BoundarySize2(); 234 // const VMG::Index halo1size = window.Local().HaloSize1(); 235 // const VMG::Index halo2size = window.Local().HaloSize2(); 236 236 // this mimicks VMG::GridIndexTranslations::EndOffset() 237 237 const size_t off = OpenBoundaryConditions ? 1 : 0; 238 238 for (size_t i=0;i<3;++i) 239 pre_offset[i] += ( size[i] - off) / 4;239 pre_offset[i] += ((size_t)size[i] - off) / 4; 240 240 for (size_t i=0;i<3;++i) 241 total[i] = ( size[i]);241 total[i] = ((size_t)size[i]); 242 242 for (size_t i=0;i<3;++i) 243 post_offset[i] = ( size[i]) - pre_offset[i] - length[i];243 post_offset[i] = ((size_t)size[i]) - pre_offset[i] - length[i]; 244 244 } 245 245 -
src/Parameters/Validators/Specific/TimeStepPresentValidator.cpp
rc9db50 ra2a2f7 46 46 std::vector<atom*> AllAtoms = World::getInstance().getAllAtoms(); 47 47 for(std::vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) { 48 int size= (dynamic_cast<AtomInfo *>(*AtomRunner))->getTrajectorySize();49 if (size > maxTime)50 maxTime = size ;48 size_t sizeTrajectory = (dynamic_cast<AtomInfo *>(*AtomRunner))->getTrajectorySize(); 49 if (sizeTrajectory > maxTime) 50 maxTime = sizeTrajectory; 51 51 } 52 52 -
src/Potentials/Specifics/FourBodyPotential_Torsion.cpp
rc9db50 ra2a2f7 218 218 break; 219 219 } 220 return std::vector<result_t>(1); 220 221 } 221 222 -
src/Potentials/Specifics/ThreeBodyPotential_Angle.cpp
rc9db50 ra2a2f7 205 205 break; 206 206 } 207 return std::vector<result_t>(1); 207 208 } 208 209 -
src/Shapes/BaseShapes.cpp
rc9db50 ra2a2f7 297 297 // The curve is then parametrized by arch length and evaluated in constant intervals. 298 298 double a = sqrt(N) * 2; 299 for ( int i=0; i<N; i++){299 for (size_t i=0; i<N; ++i){ 300 300 double t0 = ((double)i + 0.5) / (double)N; 301 301 double t = (sqrt(t0) - sqrt(1.0 - t0) + 1.0) / 2.0 * M_PI; … … 314 314 double a=4*M_PI/N; 315 315 double d= sqrt(a); 316 int Mtheta=int(M_PI/d);316 size_t Mtheta=round(M_PI/d); 317 317 double dtheta=M_PI/Mtheta; 318 318 double dphi=a/dtheta; 319 for ( int m=0; m<Mtheta; m++)319 for (size_t m=0; m<Mtheta; ++m) 320 320 { 321 321 double theta=M_PI*(m+0.5)/Mtheta; 322 int Mphi=int(2*M_PI*sin(theta)/dphi);323 for ( int n=0; n<Mphi;n++)322 size_t Mphi=round(2*M_PI*sin(theta)/dphi); 323 for (size_t n=0; n<Mphi;++n) 324 324 { 325 325 double phi= 2*M_PI*n/Mphi; -
src/Tesselation/boundary.cpp
rc9db50 ra2a2f7 1278 1278 // Center filler at origin 1279 1279 filler->CenterEdge(&Inserter); 1280 const int FillerCount = filler->getAtomCount();1280 // const int FillerCount = filler->getAtomCount(); 1281 1281 LOG(2, "INFO: Filler molecule has the following bonds:"); 1282 1282 for(molecule::iterator AtomRunner = filler->begin(); AtomRunner != filler->end(); ++AtomRunner) { … … 1290 1290 } 1291 1291 1292 atom * CopyAtoms[FillerCount];1292 // atom * CopyAtoms[FillerCount]; 1293 1293 1294 1294 setVerbosity(4); … … 1445 1445 CandidateForTesselation *baseline = NULL; 1446 1446 bool OneLoopWithoutSuccessFlag = true; // marks whether we went once through all baselines without finding any without two triangles 1447 bool TesselationFailFlag = false;1447 // bool TesselationFailFlag = false; 1448 1448 1449 1449 mol->getAtomCount(); … … 1486 1486 1487 1487 // 2b. find best candidate for each OpenLine 1488 TesselationFailFlag = TesselStruct->FindCandidatesforOpenLines(RADIUS, LCList); 1488 const bool TesselationFailFlag = TesselStruct->FindCandidatesforOpenLines(RADIUS, LCList); 1489 ASSERT( TesselationFailFlag, 1490 "FindNonConvexBorder() - at least one open line without candidate exists."); 1489 1491 1490 1492 // 2c. print OpenLines with candidates again -
src/Tesselation/tesselation.cpp
rc9db50 ra2a2f7 120 120 BoundaryTriangleSet *T = NULL; 121 121 bool OneLoopWithoutSuccessFlag = true; 122 bool TesselationFailFlag = false;123 122 while ((!OpenLines.empty()) && (OneLoopWithoutSuccessFlag)) { 124 123 // 2a. fill all new OpenLines … … 128 127 T = (((baseline->BaseLine->triangles.begin()))->second); 129 128 //the line is there, so there is a triangle, but only one. 130 TesselationFailFlag = FindNextSuitableTriangle(*baseline, *T, SPHERERADIUS, LinkedList); 129 const bool TesselationFailFlag = FindNextSuitableTriangle(*baseline, *T, SPHERERADIUS, LinkedList); 130 ASSERT( TesselationFailFlag, 131 "Tesselation::operator() - no suitable candidate triangle found."); 131 132 } 132 133 } … … 1399 1400 * @param N number of found triangles 1400 1401 * @param *LC LinkedCell_deprecated structure with neighbouring points 1402 * @return false - no suitable candidate found 1401 1403 */ 1402 1404 bool Tesselation::FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, const BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell_deprecated *LC) … … 3223 3225 list<TesselPointList *>::iterator ListAdvance = ListOfClosedPaths->begin(); 3224 3226 list<TesselPointList *>::iterator ListRunner = ListAdvance; 3225 TriangleMap::iterator NumberRunner = Candidates.begin();3227 // TriangleMap::iterator NumberRunner = Candidates.begin(); 3226 3228 TesselPointList::iterator StartNode, MiddleNode, EndNode; 3227 3229 double angle; … … 3637 3639 // check whether we have to fix lines 3638 3640 BoundaryTriangleSet *Othertriangle = NULL; 3639 BoundaryTriangleSet *OtherpartnerTriangle = NULL;3641 // BoundaryTriangleSet *OtherpartnerTriangle = NULL; 3640 3642 TriangleMap::iterator TriangleRunner; 3641 3643 for (int i = 0; i < 3; ++i) … … 3648 3650 } 3649 3651 for (TriangleRunner = partnerTriangle->lines[i]->triangles.begin(); TriangleRunner != partnerTriangle->lines[i]->triangles.end(); ++TriangleRunner) 3650 if (TriangleRunner->second != partnerTriangle) {3651 OtherpartnerTriangle = TriangleRunner->second;3652 }3652 // if (TriangleRunner->second != partnerTriangle) { 3653 // OtherpartnerTriangle = TriangleRunner->second; 3654 // } 3653 3655 /// interchanges their lines so that triangle->lines[i] == partnerTriangle->lines[j] 3654 3656 // the line of triangle receives the degenerated ones -
src/Tesselation/tesselationhelpers.cpp
rc9db50 ra2a2f7 430 430 TesselPoint* secondClosestPoint = NULL; 431 431 double distance = 1e16; 432 double secondDistance = 1e16;432 // double secondDistance = 1e16; 433 433 Vector helper; 434 434 int N[NDIM], Nlower[NDIM], Nupper[NDIM]; … … 451 451 if (currentNorm < distance) { 452 452 // remember second point 453 secondDistance = distance;453 // secondDistance = distance; 454 454 secondClosestPoint = closestPoint; 455 455 // mark down new closest point -
src/UIElements/Qt4/Query/QtQueryList.hpp
rc9db50 ra2a2f7 92 92 removeSelectedRows(rows); 93 93 for (int i = rows.size() - 1; i >= 0; i --){ 94 ASSERT( rows[i]< tempRef.size(), "QtQueryList<T>::removeElements() trying to remove invalid element.");94 ASSERT((size_t)(rows[i]) < tempRef.size(), "QtQueryList<T>::removeElements() trying to remove invalid element."); 95 95 tempRef.erase(tempRef.begin() + rows[i]); 96 96 } -
src/UIElements/Qt4/Query/VectorQtQuery.cpp
rc9db50 ra2a2f7 57 57 subLayout = new QVBoxLayout(); 58 58 mainLayout->addLayout(subLayout); 59 QComboBox* inputBox = new QComboBox();59 // QComboBox* inputBox = new QComboBox(); 60 60 coordLayout = new QHBoxLayout(); 61 61 subLayout->addLayout(coordLayout); -
src/UIElements/Views/Qt4/Plotting/QSeisPlotPage.cpp
rc9db50 ra2a2f7 56 56 void QSeisPlotPage::addCurve(std::string name) 57 57 { 58 QSeisPlotCurve *curve; 59 QListWidgetCurveItem *item; 60 curve = QSeisCurveRegistry::getInstance().getByName(name); 61 62 item = new QListWidgetCurveItem(); 58 QSeisPlotCurve *curve = QSeisCurveRegistry::getInstance().getByName(name); 59 QListWidgetCurveItem *item = new QListWidgetCurveItem(); 63 60 item->curveName = curve->getName(); 64 61 item->setText(curve->getDisplayName()); … … 74 71 void QSeisPlotPage::updateCurve(std::string name) 75 72 { 76 QSeisPlotCurve *curve; 77 curve = QSeisCurveRegistry::getInstance().getByName(name); 73 QSeisPlotCurve *curve = QSeisCurveRegistry::getInstance().getByName(name); 78 74 if (curve->plot() != NULL) 79 75 curve->plot()->replot(); … … 82 78 void QSeisPlotPage::removeCurve(std::string name) 83 79 { 84 QSeisPlotCurve *curve; 85 QListWidgetCurveItem *item; 86 curve = QSeisCurveRegistry::getInstance().getByName(name); 80 // QSeisPlotCurve *curve = QSeisCurveRegistry::getInstance().getByName(name); 87 81 88 82 for (int i = 0; i < curveList->count(); i++) 89 83 { 90 item = (QListWidgetCurveItem *)curveList->item(i);84 QListWidgetCurveItem *item = (QListWidgetCurveItem *)curveList->item(i); 91 85 if (item->curveName == name) 92 86 { … … 101 95 { 102 96 QListWidgetCurveItem *curveItem = (QListWidgetCurveItem *)item; 103 QSeisPlotCurve *curve; 104 curve = QSeisCurveRegistry::getInstance().getByName(curveItem->curveName); 97 QSeisPlotCurve *curve = QSeisCurveRegistry::getInstance().getByName(curveItem->curveName); 105 98 106 99 if (curveItem->checkState() == Qt::Unchecked) -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.cpp
rc9db50 ra2a2f7 90 90 void GLMoleculeObject_molecule::update(Observable *publisher) 91 91 { 92 #ifdef LOG_OBSERVER 92 93 const molecule *_mol = static_cast<molecule *>(publisher); 93 #ifdef LOG_OBSERVER 94 observerLog().addMessage() << "++ Update of Observer " << observerLog().getName(static_cast<Observer *>(this)) << " from molecule "+toString(_molecule->getId())+"."; 94 observerLog().addMessage() << "++ Update of Observer " << observerLog().getName(static_cast<Observer *>(this)) << " from molecule "+toString(_mol->getId())+"."; 95 95 #endif 96 96 } -
src/UIElements/Views/Qt4/QtTimeLine.cpp
rc9db50 ra2a2f7 49 49 QSlider (Qt::Horizontal, _parent), 50 50 Observer("QtTimeLine"), 51 worldtime_enlisted(false),52 atomobserver_enlisted(false)51 atomobserver_enlisted(false), 52 worldtime_enlisted(false) 53 53 { 54 54 // set initial values … … 106 106 QSlider::setMaximum(MaxTrajectory); 107 107 } else if (static_cast<WorldTime *>(publisher) == WorldTime::getPointer()) { 108 const unsignedint timestep = WorldTime::getTime();108 const int timestep = WorldTime::getTime(); 109 109 // check whether we are beyond maximum 110 110 if (timestep > QSlider::maximum())
Note:
See TracChangeset
for help on using the changeset viewer.
