Changes in / [677e13:0430e3]
- Files:
-
- 10 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Descriptors/MoleculePtrDescriptor.cpp
r677e13 r0430e3 10 10 #include "MoleculePtrDescriptor.hpp" 11 11 #include "MoleculePtrDescriptor_impl.hpp" 12 13 #include "Patterns/ObservedContainer_impl.hpp"14 12 15 13 #include "molecule.hpp" -
src/Makefile.am
r677e13 r0430e3 77 77 Actions/Process.hpp 78 78 79 EXCEPTIONSOURCE = \ 80 Exceptions/CustomException.cpp \ 81 Exceptions/IllegalTypeException.cpp \ 82 Exceptions/LinearDependenceException.cpp \ 83 Exceptions/MathException.cpp \ 84 Exceptions/MissingValueException.cpp \ 85 Exceptions/NotInvertibleException.cpp \ 86 Exceptions/ParseError.cpp \ 87 Exceptions/SkewException.cpp \ 88 Exceptions/ZeroVectorException.cpp 79 EXCEPTIONSOURCE = Exceptions/CustomException.cpp \ 80 Exceptions/IllegalTypeException.cpp \ 81 Exceptions/LinearDependenceException.cpp \ 82 Exceptions/MathException.cpp \ 83 Exceptions/MissingValueException.cpp \ 84 Exceptions/NotInvertibleException.cpp \ 85 Exceptions/SkewException.cpp \ 86 Exceptions/ZeroVectorException.cpp 89 87 90 EXCEPTIONHEADER = \ 91 Exceptions/CustomException.hpp \ 92 Exceptions/IllegalTypeException.hpp \ 93 Exceptions/LinearDependenceException.hpp \ 94 Exceptions/MathException.hpp \ 95 Exceptions/MissingValueException.hpp \ 96 Exceptions/NotInvertibleException.hpp \ 97 Exceptions/ParseError.hpp \ 98 Exceptions/SkewException.hpp \ 99 Exceptions/ZeroVectorException.hpp 88 EXCEPTIONHEADER = Exceptions/CustomException.hpp \ 89 Exceptions/IllegalTypeException.hpp \ 90 Exceptions/LinearDependenceException.hpp \ 91 Exceptions/MathException.hpp \ 92 Exceptions/MissingValueException.hpp \ 93 Exceptions/NotInvertibleException.hpp \ 94 Exceptions/SkewException.hpp \ 95 Exceptions/ZeroVectorException.hpp 100 96 101 97 PARSERSOURCE = \ … … 155 151 Descriptors/AtomTypeDescriptor.cpp \ 156 152 Descriptors/MoleculeDescriptor.cpp \ 157 Descriptors/MoleculeFormulaDescriptor.cpp \158 153 Descriptors/MoleculeIdDescriptor.cpp \ 159 154 Descriptors/MoleculeNameDescriptor.cpp \ … … 167 162 Descriptors/AtomTypeDescriptor.hpp \ 168 163 Descriptors/MoleculeDescriptor.hpp \ 169 Descriptors/MoleculeFormulaDescriptor.hpp \170 164 Descriptors/MoleculeIdDescriptor.hpp \ 171 165 Descriptors/MoleculeNameDescriptor.hpp \ … … 208 202 ellipsoid.cpp \ 209 203 errorlogger.cpp \ 210 Formula.cpp \211 204 graph.cpp \ 212 205 helpers.cpp \ … … 259 252 ellipsoid.hpp \ 260 253 errorlogger.hpp \ 261 Formula.hpp \262 254 graph.hpp \ 263 255 helpers.hpp \ -
src/World.cpp
r677e13 r0430e3 234 234 atomIdPool_t::iterator iter=atomIdPool.begin(); 235 235 atomId_t id = iter->first; 236 range<atomId_t> newRange = makeRange(id+1,iter->last);236 pair<atomId_t,atomId_t> newRange = make_pair(id+1,iter->second); 237 237 // we wont use this iterator anymore, so we don't care about invalidating 238 238 atomIdPool.erase(iter); 239 if(newRange.first<newRange. last){239 if(newRange.first<newRange.second){ 240 240 atomIdPool.insert(newRange); 241 241 } … … 247 247 248 248 void World::releaseAtomId(atomId_t id){ 249 atomIdPool.insert(make Range(id,id+1));249 atomIdPool.insert(make_pair(id,id+1)); 250 250 defragAtomIdPool(); 251 251 } … … 253 253 bool World::reserveAtomId(atomId_t id){ 254 254 if(id>=currAtomId ){ 255 range<atomId_t> newRange = makeRange(currAtomId,id);256 if(newRange.first<newRange. last){255 pair<atomId_t,atomId_t> newRange = make_pair(currAtomId,id); 256 if(newRange.first<newRange.second){ 257 257 atomIdPool.insert(newRange); 258 258 } … … 263 263 // look for a range that matches the request 264 264 for(atomIdPool_t::iterator iter=atomIdPool.begin();iter!=atomIdPool.end();++iter){ 265 if(iter-> isBefore(id)){266 // we have cover ed all available ranges... nothing to be found here265 if(iter->first>id){ 266 // we have coverd all available ranges... nothing to be found here 267 267 break; 268 268 } 269 269 // no need to check first, since it has to be <=id, since otherwise we would have broken out 270 if( !iter->isBeyond(id)){270 if(iter->second > id){ 271 271 // we found a matching range... get the id from this range 272 272 273 273 // split up this range at the point of id 274 range<atomId_t> bottomRange = makeRange(iter->first,id);275 range<atomId_t> topRange = makeRange(id+1,iter->last);274 pair<atomId_t,atomId_t> bottomRange = make_pair(iter->first,id); 275 pair<atomId_t,atomId_t> topRange = make_pair(id+1,iter->second); 276 276 // remove this range 277 277 atomIdPool.erase(iter); 278 if(bottomRange.first<bottomRange. last){278 if(bottomRange.first<bottomRange.second){ 279 279 atomIdPool.insert(bottomRange); 280 280 } 281 if(topRange.first<topRange. last){281 if(topRange.first<topRange.second){ 282 282 atomIdPool.insert(topRange); 283 283 } … … 301 301 atomIdPool_t::iterator next = iter; 302 302 next++; 303 if(next!=atomIdPool.end() && (next->first==iter-> last)){303 if(next!=atomIdPool.end() && (next->first==iter->second)){ 304 304 // merge the two ranges 305 range<atomId_t> newRange = makeRange(iter->first,next->last);305 pair<atomId_t,atomId_t> newRange = make_pair(iter->first,next->second); 306 306 atomIdPool.erase(iter); 307 307 atomIdPool.erase(next); … … 317 317 atomIdPool_t::iterator iter = atomIdPool.end(); 318 318 iter--; 319 if(iter-> last==currAtomId){319 if(iter->second==currAtomId){ 320 320 currAtomId=iter->first; 321 321 atomIdPool.erase(iter); … … 333 333 moleculeIdPool_t::iterator iter=moleculeIdPool.begin(); 334 334 moleculeId_t id = iter->first; 335 range<moleculeId_t> newRange = makeRange(id+1,iter->last);335 pair<moleculeId_t,moleculeId_t> newRange = make_pair(id+1,iter->second); 336 336 // we wont use this iterator anymore, so we don't care about invalidating 337 337 moleculeIdPool.erase(iter); 338 if(newRange.first<newRange. last){338 if(newRange.first<newRange.second){ 339 339 moleculeIdPool.insert(newRange); 340 340 } … … 346 346 347 347 void World::releaseMoleculeId(moleculeId_t id){ 348 moleculeIdPool.insert(make Range(id,id+1));348 moleculeIdPool.insert(make_pair(id,id+1)); 349 349 defragMoleculeIdPool(); 350 350 } … … 352 352 bool World::reserveMoleculeId(moleculeId_t id){ 353 353 if(id>=currMoleculeId ){ 354 range<moleculeId_t> newRange = makeRange(currMoleculeId,id);355 if(newRange.first<newRange. last){354 pair<moleculeId_t,moleculeId_t> newRange = make_pair(currMoleculeId,id); 355 if(newRange.first<newRange.second){ 356 356 moleculeIdPool.insert(newRange); 357 357 } … … 362 362 // look for a range that matches the request 363 363 for(moleculeIdPool_t::iterator iter=moleculeIdPool.begin();iter!=moleculeIdPool.end();++iter){ 364 if(iter-> isBefore(id)){364 if(iter->first>id){ 365 365 // we have coverd all available ranges... nothing to be found here 366 366 break; 367 367 } 368 368 // no need to check first, since it has to be <=id, since otherwise we would have broken out 369 if( !iter->isBeyond(id)){369 if(iter->second > id){ 370 370 // we found a matching range... get the id from this range 371 371 372 372 // split up this range at the point of id 373 range<moleculeId_t> bottomRange = makeRange(iter->first,id);374 range<moleculeId_t> topRange = makeRange(id+1,iter->last);373 pair<moleculeId_t,moleculeId_t> bottomRange = make_pair(iter->first,id); 374 pair<moleculeId_t,moleculeId_t> topRange = make_pair(id+1,iter->second); 375 375 // remove this range 376 376 moleculeIdPool.erase(iter); 377 if(bottomRange.first<bottomRange. last){377 if(bottomRange.first<bottomRange.second){ 378 378 moleculeIdPool.insert(bottomRange); 379 379 } 380 if(topRange.first<topRange. last){380 if(topRange.first<topRange.second){ 381 381 moleculeIdPool.insert(topRange); 382 382 } … … 400 400 moleculeIdPool_t::iterator next = iter; 401 401 next++; 402 if(next!=moleculeIdPool.end() && (next->first==iter-> last)){402 if(next!=moleculeIdPool.end() && (next->first==iter->second)){ 403 403 // merge the two ranges 404 range<moleculeId_t> newRange = makeRange(iter->first,next->last);404 pair<moleculeId_t,moleculeId_t> newRange = make_pair(iter->first,next->second); 405 405 moleculeIdPool.erase(iter); 406 406 moleculeIdPool.erase(next); … … 416 416 moleculeIdPool_t::iterator iter = moleculeIdPool.end(); 417 417 iter--; 418 if(iter-> last==currMoleculeId){418 if(iter->second==currMoleculeId){ 419 419 currMoleculeId=iter->first; 420 420 moleculeIdPool.erase(iter); -
src/World.hpp
r677e13 r0430e3 24 24 #include "Patterns/Singleton.hpp" 25 25 #include "Patterns/ObservedContainer.hpp" 26 #include "Helpers/Range.hpp"27 26 28 27 // include config.h … … 361 360 AtomSet atoms; 362 361 AtomSet selectedAtoms; 363 typedef std::set< range<atomId_t> > atomIdPool_t;362 typedef std::set<std::pair<atomId_t, atomId_t> > atomIdPool_t; 364 363 /** 365 364 * stores the pool for all available AtomIds below currAtomId … … 374 373 MoleculeSet molecules; 375 374 MoleculeSet selectedMolecules; 376 typedef std::set< range<atomId_t> > moleculeIdPool_t;375 typedef std::set<std::pair<moleculeId_t, moleculeId_t> > moleculeIdPool_t; 377 376 /** 378 377 * stores the pool for all available AtomIds below currAtomId -
src/config.cpp
r677e13 r0430e3 1031 1031 { 1032 1032 bool result = true; 1033 // bring MaxTypes up to date 1034 mol->CountElements(); 1033 1035 const Matrix &domain = World::getInstance().getDomain().getM(); 1034 1036 ofstream * const output = new ofstream(filename, ios::out); … … 1136 1138 *output << "IsAngstroem\t" << config::IsAngstroem << "\t# 0 - Bohr, 1 - Angstroem" << endl; 1137 1139 *output << "RelativeCoord\t" << config::RelativeCoord << "\t# whether ion coordinates are relative (1) or absolute (0)" << endl; 1138 *output << "MaxTypes\t" << mol-> getElementCount()<< "\t# maximum number of different ion types" << endl;1140 *output << "MaxTypes\t" << mol->ElementCount << "\t# maximum number of different ion types" << endl; 1139 1141 *output << endl; 1140 1142 result = result && mol->Checkout(output); … … 1531 1533 mol->SetNameFromFilename(ConfigFileName); 1532 1534 molecules->SimpleMultiMerge(mol, src, N); 1535 mol->doCountAtoms(); 1536 mol->CountElements(); 1533 1537 //mol->CalculateOrbitals(*this); 1534 1538 delete[](src); -
src/molecule.cpp
r677e13 r0430e3 49 49 molecule::molecule(const periodentafel * const teil) : 50 50 Observable("molecule"), 51 elemente(teil), MDSteps(0), BondCount(0), NoNonHydrogen(0), NoNonBonds(0),51 elemente(teil), MDSteps(0), BondCount(0), ElementCount(0), NoNonHydrogen(0), NoNonBonds(0), 52 52 NoCyclicBonds(0), BondDistance(0.), ActiveFlag(false), IndexNr(-1), 53 formula(this,boost::bind(&molecule::calcFormula,this),"formula"), 53 54 AtomCount(this,boost::bind(&molecule::doCountAtoms,this),"AtomCount"), last_atom(0), InternalPointer(atoms.begin()) 54 55 { 55 56 57 // other stuff 58 for(int i=MAX_ELEMENTS;i--;) 59 ElementsInMolecule[i] = 0; 56 60 strcpy(name,World::getInstance().getDefaultName().c_str()); 57 61 }; … … 97 101 } 98 102 99 const Formula &molecule::getFormula(){ 100 return formula; 101 } 102 103 unsigned int molecule::getElementCount(){ 104 return formula.getElementCount(); 105 } 106 107 bool molecule::hasElement(const element *element) const{ 108 return formula.hasElement(element); 109 } 110 111 bool molecule::hasElement(atomicNumber_t Z) const{ 112 return formula.hasElement(Z); 113 } 114 115 bool molecule::hasElement(const string &shorthand) const{ 116 return formula.hasElement(shorthand); 103 const std::string molecule::getFormula(){ 104 return *formula; 105 } 106 107 std::string molecule::calcFormula(){ 108 std::map<atomicNumber_t,unsigned int> counts; 109 stringstream sstr; 110 periodentafel *periode = World::getInstance().getPeriode(); 111 for (molecule::const_iterator iter = begin(); iter != end(); ++iter) { 112 counts[(*iter)->type->getNumber()]++; 113 } 114 std::map<atomicNumber_t,unsigned int>::reverse_iterator iter; 115 for(iter = counts.rbegin(); iter != counts.rend(); ++iter) { 116 atomicNumber_t Z = (*iter).first; 117 sstr << periode->FindElement(Z)->symbol << (*iter).second; 118 } 119 return sstr.str(); 117 120 } 118 121 … … 207 210 pointer->sort = &pointer->nr; 208 211 if (pointer->type != NULL) { 209 formula += pointer->type; 212 if (ElementsInMolecule[pointer->type->Z] == 0) 213 ElementCount++; 214 ElementsInMolecule[pointer->type->Z]++; // increase number of elements 210 215 if (pointer->type->Z != 1) 211 216 NoNonHydrogen++; … … 646 651 647 652 // copy values 653 copy->CountElements(); 648 654 if (hasBondStructure()) { // if adjaceny list is present 649 655 copy->BondDistance = BondDistance; … … 768 774 ASSERT(pointer, "Null pointer passed to molecule::RemoveAtom()."); 769 775 OBSERVE; 770 formula-=pointer->type; 776 if (ElementsInMolecule[pointer->type->Z] != 0) { // this would indicate an error 777 ElementsInMolecule[pointer->type->Z]--; // decrease number of atom of this element 778 } else 779 DoeLog(1) && (eLog()<< Verbose(1) << "Atom " << pointer->getName() << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl); 780 if (ElementsInMolecule[pointer->type->Z] == 0) // was last atom of this element? 781 ElementCount--; 771 782 RemoveBonds(pointer); 772 783 erase(pointer); … … 782 793 if (pointer == NULL) 783 794 return false; 784 formula-=pointer->type; 795 if (ElementsInMolecule[pointer->type->Z] != 0) // this would indicate an error 796 ElementsInMolecule[pointer->type->Z]--; // decrease number of atom of this element 797 else 798 DoeLog(1) && (eLog()<< Verbose(1) << "Atom " << pointer->getName() << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl); 799 if (ElementsInMolecule[pointer->type->Z] == 0) // was last atom of this element? 800 ElementCount--; 785 801 erase(pointer); 786 802 return true; … … 855 871 { 856 872 int ElementNo[MAX_ELEMENTS], AtomNo[MAX_ELEMENTS]; 873 CountElements(); 857 874 858 875 for (int i=0;i<MAX_ELEMENTS;++i) { … … 881 898 { 882 899 int ElementNo[MAX_ELEMENTS], AtomNo[MAX_ELEMENTS]; 900 CountElements(); 883 901 884 902 if (output == NULL) { … … 922 940 bool molecule::Checkout(ofstream * const output) const 923 941 { 924 return formula.checkOut(output);942 return elemente->Checkout(output, ElementsInMolecule); 925 943 }; 926 944 … … 980 998 }; 981 999 1000 /** Brings molecule::ElementCount and molecule::ElementsInMolecule up-to-date. 1001 */ 1002 void molecule::CountElements() 1003 { 1004 for(int i=MAX_ELEMENTS;i--;) 1005 ElementsInMolecule[i] = 0; 1006 ElementCount = 0; 1007 1008 SetIndexedArrayForEachAtomTo ( ElementsInMolecule, &element::Z, &Increment, 1); 1009 1010 for(int i=MAX_ELEMENTS;i--;) 1011 ElementCount += (ElementsInMolecule[i] != 0 ? 1 : 0); 1012 }; 1013 982 1014 /** Determines whether two molecules actually contain the same atoms and coordination. 983 1015 * \param *out output stream for debugging … … 998 1030 /// first count both their atoms and elements and update lists thereby ... 999 1031 //Log() << Verbose(0) << "Counting atoms, updating list" << endl; 1032 CountElements(); 1033 OtherMolecule->CountElements(); 1000 1034 1001 1035 /// ... and compare: … … 1007 1041 } else Log() << Verbose(4) << "AtomCounts match: " << getAtomCount() << " == " << OtherMolecule->getAtomCount() << endl; 1008 1042 } 1009 /// -# Formula1043 /// -# ElementCount 1010 1044 if (result) { 1011 if ( formula != OtherMolecule->formula) {1012 DoLog(4) && (Log() << Verbose(4) << " Formulas don't match: " << formula << " == " << OtherMolecule->formula<< endl);1045 if (ElementCount != OtherMolecule->ElementCount) { 1046 DoLog(4) && (Log() << Verbose(4) << "ElementCount don't match: " << ElementCount << " == " << OtherMolecule->ElementCount << endl); 1013 1047 result = false; 1014 } else Log() << Verbose(4) << "Formulas match: " << formula << " == " << OtherMolecule->formula << endl; 1048 } else Log() << Verbose(4) << "ElementCount match: " << ElementCount << " == " << OtherMolecule->ElementCount << endl; 1049 } 1050 /// -# ElementsInMolecule 1051 if (result) { 1052 for (flag=MAX_ELEMENTS;flag--;) { 1053 //Log() << Verbose(5) << "Element " << flag << ": " << ElementsInMolecule[flag] << " <-> " << OtherMolecule->ElementsInMolecule[flag] << "." << endl; 1054 if (ElementsInMolecule[flag] != OtherMolecule->ElementsInMolecule[flag]) 1055 break; 1056 } 1057 if (flag < MAX_ELEMENTS) { 1058 DoLog(4) && (Log() << Verbose(4) << "ElementsInMolecule don't match." << endl); 1059 result = false; 1060 } else Log() << Verbose(4) << "ElementsInMolecule match." << endl; 1015 1061 } 1016 1062 /// then determine and compare center of gravity for each molecule ... -
src/molecule.hpp
r677e13 r0430e3 28 28 #include "Patterns/ObservedIterator.hpp" 29 29 #include "Patterns/Cacheable.hpp" 30 #include "Formula.hpp"31 30 32 31 #include "Descriptors/MoleculeDescriptor_impl.hpp" … … 98 97 //int AtomCount; //!< number of atoms, brought up-to-date by CountAtoms() 99 98 int BondCount; //!< number of atoms, brought up-to-date by CountBonds() 99 int ElementCount; //!< how many unique elements are therein 100 int ElementsInMolecule[MAX_ELEMENTS]; //!< list whether element (sorted by atomic number) is alread present or not 100 101 mutable int NoNonHydrogen; //!< number of non-hydrogen atoms in molecule 101 102 mutable int NoNonBonds; //!< number of non-hydrogen bonds in molecule … … 108 109 109 110 private: 110 Formulaformula;111 Cacheable<string> formula; 111 112 Cacheable<int> AtomCount; 112 113 moleculeId_t id; … … 134 135 void setId(moleculeId_t); 135 136 void setName(const std::string); 136 const Formula &getFormula(); 137 unsigned int getElementCount(); 138 bool hasElement(const element*) const; 139 bool hasElement(atomicNumber_t) const; 140 bool hasElement(const std::string&) const; 141 137 const std::string getFormula(); 138 std::string calcFormula(); 142 139 143 140 iterator begin(); … … 257 254 258 255 /// Count and change present atoms' coordination. 256 void CountElements(); 259 257 bool CenterInBox(); 260 258 bool BoundInBox(); -
src/molecule_dynamics.cpp
r677e13 r0430e3 560 560 ForceMatrix Force; 561 561 562 CountElements(); // make sure ElementsInMolecule is up to date 563 562 564 const int AtomCount = getAtomCount(); 563 565 // check file -
src/moleculelist.cpp
r677e13 r0430e3 597 597 periodentafel::const_iterator elemIter; 598 598 for(elemIter=periode->begin();elemIter!=periode->end();++elemIter){ 599 if ((*ListRunner)-> hasElement((*elemIter).first)) { // if this element got atoms599 if ((*ListRunner)->ElementsInMolecule[(*elemIter).first]) { // if this element got atoms 600 600 for(molecule::iterator atomIter = (*ListRunner)->begin(); atomIter !=(*ListRunner)->end();++atomIter){ 601 601 if ((*atomIter)->type->getNumber() == (*elemIter).first) { … … 689 689 690 690 // also calculate necessary orbitals 691 (*ListRunner)->CountElements(); // this is a bugfix, atoms should shoulds actually be added correctly to this fragment 691 692 //(*ListRunner)->CalculateOrbitals(*World::getInstance().getConfig); 692 693 -
src/periodentafel.cpp
r677e13 r0430e3 125 125 * \return pointer to element 126 126 */ 127 element * const periodentafel::FindElement(const string &shorthand) const127 element * const periodentafel::FindElement(const char * const shorthand) const 128 128 { 129 129 element *res = 0; … … 205 205 for(const_iterator iter=elements.begin(); iter !=elements.end();++iter){ 206 206 result = result && (*iter).second->Output(output); 207 } 208 return result; 209 } else 210 return false; 211 }; 212 213 /** Prints period table to given stream. 214 * \param *output output stream 215 * \param *checkliste elements table for this molecule 216 */ 217 bool periodentafel::Checkout(ostream * const output, const int * const checkliste) const 218 { 219 bool result = true; 220 int No = 1; 221 222 if (output != NULL) { 223 *output << "# Ion type data (PP = PseudoPotential, Z = atomic number)" << endl; 224 *output << "#Ion_TypeNr.\tAmount\tZ\tRGauss\tL_Max(PP)L_Loc(PP)IonMass\t# chemical name, symbol" << endl; 225 for(const_iterator iter=elements.begin(); iter!=elements.end();++iter){ 226 if (((*iter).first < MAX_ELEMENTS) && (checkliste[(*iter).first])) { 227 (*iter).second->No = No; 228 result = result && (*iter).second->Checkout(output, No++, checkliste[(*iter).first]); 229 } 207 230 } 208 231 return result; -
src/periodentafel.hpp
r677e13 r0430e3 11 11 #include <iosfwd> 12 12 #include <map> 13 #include <string>14 13 15 14 #include "unittests/periodentafelTest.hpp" … … 48 47 void CleanupPeriodtable(); 49 48 element * const FindElement(atomicNumber_t) const; 50 element * const FindElement(const std::string &shorthand) const;49 element * const FindElement(const char * const shorthand) const; 51 50 element * const AskElement() const; 52 51 element * const EnterElement(); … … 57 56 reverse_iterator rend(); 58 57 bool Output(std::ostream * const output) const; 58 bool Checkout(std::ostream * const output, const int * const checkliste) const; 59 59 bool LoadPeriodentafel(const char * const path); 60 60 bool StorePeriodentafel(const char * const path) const; -
src/unittests/Makefile.am
r677e13 r0430e3 21 21 CacheableTest \ 22 22 CountBondsUnitTest \ 23 FormulaUnittest \24 23 GSLMatrixSymmetricUnitTest \ 25 24 GSLMatrixUnitTest \ … … 67 66 CacheableTest.cpp \ 68 67 CountBondsUnitTest.cpp \ 69 FormulaUnittest.cpp \70 68 gslmatrixsymmetricunittest.cpp \ 71 69 gslmatrixunittest.cpp \ … … 104 102 CacheableTest.hpp \ 105 103 CountBondsUnitTest.hpp \ 106 FormulaUnittest.hpp \107 104 gslmatrixsymmetricunittest.hpp \ 108 105 gslmatrixunittest.hpp \ … … 161 158 CountBondsUnitTest_LDADD = ${ALLLIBS} 162 159 163 FormulaUnittest_SOURCES = UnitTestMain.cpp FormulaUnittest.cpp FormulaUnittest.hpp164 FormulaUnittest_LDADD = ${ALLLIBS}165 166 160 GSLMatrixSymmetricUnitTest_SOURCES = UnitTestMain.cpp gslmatrixsymmetricunittest.cpp gslmatrixsymmetricunittest.hpp 167 161 GSLMatrixSymmetricUnitTest_LDADD = ${GSLLIBS} -
test_all.sh
r677e13 r0430e3 129 129 echo "Valgrinding"; 130 130 retval=0; 131 for test in src/unittests/*131 for test in molecuilder/src/unittests/* 132 132 do 133 133 if [ -x "$test" ] … … 150 150 151 151 echo "Testing with \"$2\""; 152 echo "" >> $logfile;153 echo "" >> $logfile;154 echo "" >> $logfile;155 echo "Testing with \"$2\"" >> $logfile;156 152 157 153 echo -n " Configuring: " >> $outfile;
Note:
See TracChangeset
for help on using the changeset viewer.