Changeset 24a5e0
- Timestamp:
- Feb 26, 2010, 12:40:52 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:
- 1f2217
- Parents:
- 7042f45
- Location:
- src
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MakroAction.cpp
r7042f45 r24a5e0 23 23 { 24 24 Action* action; 25 while( action=actions->removeLastAction()){25 while((action=actions->removeLastAction())){ 26 26 delete action; 27 27 } -
src/Actions/ManipulateAtomsProcess.cpp
r7042f45 r24a5e0 14 14 ManipulateAtomsProcess::ManipulateAtomsProcess(boost::function<void(atom*)> _operation, AtomDescriptor _descr, 15 15 std::string _name,bool _doRegister) : 16 operation(_operation),16 Process(0,_name,_doRegister), 17 17 descr(_descr), 18 Process(0,_name,_doRegister)18 operation(_operation) 19 19 {} 20 20 -
src/Actions/Process.cpp
r7042f45 r24a5e0 13 13 Action(_name,_doRegister), 14 14 maxSteps(_maxSteps), 15 active(false), 15 16 starts(false), 16 stops(false), 17 active(false) 17 stops(false) 18 18 {} 19 19 -
src/Descriptors/AtomDescriptor.cpp
r7042f45 r24a5e0 97 97 {} 98 98 99 bool AtomAllDescriptor_impl::predicate(std::pair< int,atom*>){99 bool AtomAllDescriptor_impl::predicate(std::pair<atomId_t,atom*>){ 100 100 return true; 101 101 } … … 111 111 {} 112 112 113 bool AtomNoneDescriptor_impl::predicate(std::pair< int,atom*>){113 bool AtomNoneDescriptor_impl::predicate(std::pair<atomId_t,atom*>){ 114 114 return false; 115 115 } … … 129 129 {} 130 130 131 bool AtomAndDescriptor_impl::predicate(std::pair< int,atom*> atom){131 bool AtomAndDescriptor_impl::predicate(std::pair<atomId_t,atom*> atom){ 132 132 return lhs->predicate(atom) && rhs->predicate(atom); 133 133 } … … 145 145 } 146 146 147 bool AtomOrDescriptor_impl::predicate(std::pair< int,atom*> atom){147 bool AtomOrDescriptor_impl::predicate(std::pair<atomId_t,atom*> atom){ 148 148 return lhs->predicate(atom) || rhs->predicate(atom); 149 149 } … … 165 165 } 166 166 167 bool AtomNotDescriptor_impl::predicate(std::pair< int,atom*> atom){167 bool AtomNotDescriptor_impl::predicate(std::pair<atomId_t,atom*> atom){ 168 168 return !(arg->predicate(atom)); 169 169 } -
src/Descriptors/AtomDescriptor_impl.hpp
r7042f45 r24a5e0 14 14 virtual ~AtomDescriptor_impl(); 15 15 16 virtual bool predicate(std::pair< int,atom*>)=0;16 virtual bool predicate(std::pair<atomId_t,atom*>)=0; 17 17 18 18 protected: … … 28 28 AtomAllDescriptor_impl(); 29 29 virtual ~AtomAllDescriptor_impl(); 30 virtual bool predicate(std::pair< int,atom*>);30 virtual bool predicate(std::pair<atomId_t,atom*>); 31 31 }; 32 32 … … 35 35 AtomNoneDescriptor_impl(); 36 36 virtual ~AtomNoneDescriptor_impl(); 37 virtual bool predicate(std::pair< int,atom*>);37 virtual bool predicate(std::pair<atomId_t,atom*>); 38 38 }; 39 39 … … 45 45 AtomAndDescriptor_impl(AtomDescriptor::impl_ptr _lhs, AtomDescriptor::impl_ptr _rhs); 46 46 ~AtomAndDescriptor_impl(); 47 virtual bool predicate(std::pair< int,atom*>);47 virtual bool predicate(std::pair<atomId_t,atom*>); 48 48 49 49 private: … … 57 57 AtomOrDescriptor_impl(AtomDescriptor::impl_ptr _lhs, AtomDescriptor::impl_ptr _rhs); 58 58 virtual ~AtomOrDescriptor_impl(); 59 virtual bool predicate(std::pair< int,atom*>);59 virtual bool predicate(std::pair<atomId_t,atom*>); 60 60 61 61 private: … … 70 70 virtual ~AtomNotDescriptor_impl(); 71 71 72 virtual bool predicate(std::pair< int,atom*>);72 virtual bool predicate(std::pair<atomId_t,atom*>); 73 73 74 74 private: -
src/Descriptors/AtomIdDescriptor.cpp
r7042f45 r24a5e0 21 21 {} 22 22 23 bool AtomIdDescriptor_impl::predicate(std::pair< int,atom*> atom) {23 bool AtomIdDescriptor_impl::predicate(std::pair<atomId_t,atom*> atom) { 24 24 return atom.first==id; 25 25 } -
src/Descriptors/AtomIdDescriptor_impl.hpp
r7042f45 r24a5e0 10 10 virtual ~AtomIdDescriptor_impl(); 11 11 12 bool predicate(std::pair< int,atom*> atom);12 bool predicate(std::pair<atomId_t,atom*> atom); 13 13 14 14 protected: -
src/Descriptors/AtomTypeDescriptor.cpp
r7042f45 r24a5e0 20 20 {} 21 21 22 bool AtomTypeDescriptor_impl::predicate(std::pair< int,atom*> atom) {22 bool AtomTypeDescriptor_impl::predicate(std::pair<atomId_t,atom*> atom) { 23 23 return (atom.second->getType()==type); 24 24 } -
src/Descriptors/AtomTypeDescriptor_impl.hpp
r7042f45 r24a5e0 17 17 virtual ~AtomTypeDescriptor_impl(); 18 18 19 bool predicate(std::pair< int,atom*> atom);19 bool predicate(std::pair<atomId_t,atom*> atom); 20 20 private: 21 21 element *type; -
src/Legacy/oldmenu.cpp
r7042f45 r24a5e0 812 812 void oldmenu::ManipulateMolecules(periodentafel *periode, MoleculeListClass *molecules, config *configuration) 813 813 { 814 atom *first = NULL;815 814 Vector x,y,z,n; // coordinates for absolute point in cell volume 816 int j, axis, count, faktor;817 815 char choice; // menu choice char 818 816 molecule *mol = NULL; 819 element **Elements;820 Vector **vectors;821 817 MoleculeLeafClass *Subgraphs = NULL; 822 818 -
src/Makefile.am
r7042f45 r24a5e0 41 41 bin_PROGRAMS = molecuilder joiner analyzer 42 42 molecuilderdir = ${bindir} 43 #libmolecuilder_a_CXXFLAGS = -DNO_CACHING 43 libmolecuilder_a_CXXFLAGS = -Wall 44 #libmolecuilder_a_CXXFLAGS += -DNO_CACHING 44 45 libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER} 45 46 libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER} 46 47 molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db 47 48 molecuilder_LDFLAGS = $(BOOST_LDFLAGS) 48 molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS)49 molecuilder_CXXFLAGS = -Wall $(BOOST_CPPFLAGS) 49 50 #molecuilder_CXXFLAGS += -DNO_CACHING 50 51 molecuilder_SOURCES = builder.cpp -
src/Menu/DisplayMenuItem.cpp
r7042f45 r24a5e0 21 21 22 22 DisplayMenuItem::DisplayMenuItem(Menu* _menu, StringView *_view, string _title, char _spacer, int _length ): 23 MenuItem('\0',"",_menu),24 view(_view),25 title(_title),26 spacer(_spacer),27 length(_length)23 MenuItem('\0',"",_menu), 24 view(_view), 25 title(_title), 26 length(_length), 27 spacer(_spacer) 28 28 { 29 29 } 30 30 31 31 DisplayMenuItem::~DisplayMenuItem() 32 { 33 // TODO Auto-generated destructor stub 34 } 32 {} 35 33 36 34 -
src/Menu/TextMenu.cpp
r7042f45 r24a5e0 18 18 */ 19 19 TextMenu::TextMenu(ostream& _outputter, string _title, char _spacer,int _length) : 20 outputter(_outputter),21 title(_title),22 spacer(_spacer),23 length(_length),24 quit(false),25 defaultItem(0)20 defaultItem(0), 21 outputter(_outputter), 22 title(_title), 23 spacer(_spacer), 24 length(_length), 25 quit(false) 26 26 { 27 27 } -
src/Patterns/Cacheable.hpp
r7042f45 r24a5e0 43 43 Cacheable<T>::Cacheable(Observable *_owner, boost::function<T()> _recalcMethod) : 44 44 owner(_owner), 45 recalcMethod(_recalcMethod),46 45 valid(false), 47 canBeUsed(true) 46 canBeUsed(true), 47 recalcMethod(_recalcMethod) 48 48 { 49 49 // we sign on with the best(=lowest) priority, so cached values are recalculated before -
src/UIElements/Dialog.cpp
r7042f45 r24a5e0 102 102 Dialog::MoleculeQuery::MoleculeQuery(string title, molecule **_target, MoleculeListClass *_molecules) : 103 103 Query(title), 104 t arget(_target),104 tmp(0), 105 105 molecules(_molecules), 106 tmp(0) 106 target(_target) 107 107 108 {} 108 109 … … 116 117 117 118 Dialog::VectorQuery::VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check) : 118 Query(title), target(_target), cellSize(_cellSize), check(_check) 119 Query(title), 120 cellSize(_cellSize), 121 check(_check), 122 target(_target) 119 123 { 120 124 tmp = new Vector(); -
src/UIElements/TextDialog.cpp
r7042f45 r24a5e0 114 114 bool TextDialog::VectorTextQuery::handle() { 115 115 tmp->AskPosition(cellSize,check); 116 return true; 116 117 } -
src/Views/MethodStringView.cpp
r7042f45 r24a5e0 7 7 8 8 #include "MethodStringView.hpp" 9 10 using namespace std; 9 11 10 12 MethodStringView::MethodStringView(boost::function<string()> _displayMethod) : -
src/Views/MethodStringView.hpp
r7042f45 r24a5e0 19 19 { 20 20 public: 21 MethodStringView(boost::function<st ring()>);21 MethodStringView(boost::function<std::string()>); 22 22 virtual ~MethodStringView(); 23 23 24 virtual const st ring toString();24 virtual const std::string toString(); 25 25 26 26 private: 27 boost::function<st ring()> displayMethod;27 boost::function<std::string()> displayMethod; 28 28 }; 29 29 -
src/Views/StreamStringView.cpp
r7042f45 r24a5e0 7 7 8 8 #include <sstream> 9 #include <iostream> 9 10 10 11 #include "StreamStringView.hpp" 11 12 12 StreamStringView::StreamStringView(boost::function<void(ofstream *)> _displayMethod) : 13 using namespace std; 14 15 StreamStringView::StreamStringView(boost::function<void(ostream *)> _displayMethod) : 13 16 StringView(), 14 17 displayMethod(_displayMethod) 15 { 16 // TODO Auto-generated constructor stub 17 18 } 18 {} 19 19 20 20 StreamStringView::~StreamStringView() 21 { 22 // TODO Auto-generated destructor stub 23 } 21 {} 24 22 25 23 const string StreamStringView::toString() { 26 24 stringstream s; 27 displayMethod( (ofstream *)&s);25 displayMethod(dynamic_cast<ostream *>(&s)); 28 26 return s.str(); 29 27 } -
src/Views/StreamStringView.hpp
r7042f45 r24a5e0 10 10 11 11 #include <boost/function.hpp> 12 #include <iostream> 12 13 13 14 #include "Views/StringView.hpp" … … 24 25 { 25 26 public: 26 StreamStringView(boost::function<void( ofstream *)>);27 StreamStringView(boost::function<void(std::ostream *)>); 27 28 virtual ~StreamStringView(); 28 29 29 virtual const st ring toString();30 virtual const std::string toString(); 30 31 31 32 private: 32 boost::function<void( ofstream *)> displayMethod;33 boost::function<void(std::ostream *)> displayMethod; 33 34 }; 34 35 -
src/Views/StringView.hpp
r7042f45 r24a5e0 12 12 #include "Views/View.hpp" 13 13 14 using namespace std;15 16 14 /** 17 15 * View to show something as a string … … 26 24 virtual ~StringView(); 27 25 28 virtual const st ring toString()=0;26 virtual const std::string toString()=0; 29 27 }; 30 28 -
src/World.cpp
r7042f45 r24a5e0 144 144 145 145 World::World() : 146 periode(new periodentafel), 147 atoms(), 146 148 currAtomId(0), 149 molecules(), 147 150 currMoleculeId(0), 148 periode(new periodentafel), 149 molecules_deprecated(new MoleculeListClass(this)), 150 atoms(), 151 molecules() 151 molecules_deprecated(new MoleculeListClass(this)) 152 152 { 153 153 molecules_deprecated->signOn(this); … … 206 206 // should see that it gets the updated new world 207 207 delete oldWorld; 208 return theWorld; 208 209 } 209 210 -
src/World.hpp
r7042f45 r24a5e0 142 142 protected: 143 143 void advanceState(); 144 World* world;145 144 AtomSet::iterator state; 146 145 boost::shared_ptr<AtomDescriptor_impl> descr; 147 146 int index; 147 148 World* world; 148 149 }; 149 150 -
src/WorldIterators.cpp
r7042f45 r24a5e0 17 17 World::AtomIterator::AtomIterator(AtomDescriptor _descr, World* _world) : 18 18 descr(_descr.get_impl()), 19 world(_world),20 index(0)19 index(0), 20 world(_world) 21 21 { 22 22 state = world->atoms.begin(); -
src/atom_particleinfo.cpp
r7042f45 r24a5e0 14 14 15 15 ParticleInfo::ParticleInfo(ParticleInfo *pointer) : 16 Name(pointer->Name),17 nr(pointer->nr)16 nr(pointer->nr), 17 Name(pointer->Name) 18 18 {} 19 19 -
src/boundary.cpp
r7042f45 r24a5e0 965 965 bool freeLC = false; 966 966 bool status = false; 967 CandidateForTesselation *baseline ;967 CandidateForTesselation *baseline=0; 968 968 LineMap::iterator testline; 969 969 bool OneLoopWithoutSuccessFlag = true; // marks whether we went once through all baselines without finding any without two triangles -
src/molecule.cpp
r7042f45 r24a5e0 34 34 first(new bond(start, end, 1, -1)), last(new bond(start, end, 1, -1)), MDSteps(0), AtomCount(0), 35 35 BondCount(0), ElementCount(0), NoNonHydrogen(0), NoNonBonds(0), NoCyclicBonds(0), BondDistance(0.), 36 ActiveFlag(false), IndexNr(-1), last_atom(0), InternalPointer(start), 37 formula(this,boost::bind(&molecule::calcFormula,this)) 36 ActiveFlag(false), IndexNr(-1), 37 formula(this,boost::bind(&molecule::calcFormula,this)), 38 last_atom(0), 39 InternalPointer(start) 38 40 { 39 41 // init atom chain list -
src/molecule.hpp
r7042f45 r24a5e0 350 350 bool OutputConfigForListOfFragments(config *configuration, int *SortIndex); 351 351 int NumberOfActiveMolecules(); 352 void Enumerate(o fstream *out);352 void Enumerate(ostream *out); 353 353 void Output(ofstream *out); 354 354 void DissectMoleculeIntoConnectedSubgraphs(const periodentafel * const periode, config * const configuration); -
src/molecule_dynamics.cpp
r7042f45 r24a5e0 163 163 double molecule::ConstrainedPotential(struct EvaluatePotential &Params) 164 164 { 165 double tmp, result ;165 double tmp, result=0; 166 166 167 167 // go through every atom -
src/moleculelist.cpp
r7042f45 r24a5e0 139 139 * \param *out output stream 140 140 */ 141 void MoleculeListClass::Enumerate(o fstream *out)141 void MoleculeListClass::Enumerate(ostream *out) 142 142 { 143 143 element* Elemental = NULL; -
src/tesselationhelpers.cpp
r7042f45 r24a5e0 27 27 int signum; 28 28 gsl_permutation *p = gsl_permutation_alloc(A->size1); 29 gsl_matrix *tmpA ;29 gsl_matrix *tmpA=0; 30 30 31 31 if (inPlace)
Note:
See TracChangeset
for help on using the changeset viewer.