Changes in / [752bb4:360c8b]
- Files:
-
- 501 added
- 167 deleted
- 123 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r752bb4 r360c8b 138 138 139 139 140 # CodePatterns library (needs Observer::Channels)141 AM_PATH_CODEPATTERNS([1.1. 5], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])140 # CodePatterns library (needs valarray in MemDebug ) 141 AM_PATH_CODEPATTERNS([1.1.6], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])]) 142 142 143 143 # Checks for header files. … … 219 219 220 220 # test suite 221 221 222 AC_CONFIG_FILES([ 222 223 tests/Makefile]) … … 231 232 tests/Fragmentations/atlocal 232 233 tests/Fragmentations/Makefile]) 234 AC_CONFIG_FILES([tests/Fragmentations/analyzer], [chmod +x tests/Fragmentations/analyzer]) 235 AC_CONFIG_FILES([tests/Fragmentations/joiner], [chmod +x tests/Fragmentations/joiner]) 233 236 AC_CONFIG_FILES([tests/Fragmentations/molecuilder], [chmod +x tests/Fragmentations/molecuilder]) 234 237 … … 248 251 doc/molecuilder.xml]) 249 252 AC_CONFIG_FILES([ 250 253 MoleCuilder.pc:MoleCuilder.pc.in]) 251 254 AC_CONFIG_FILES([ 252 255 Makefile … … 255 258 ]) 256 259 AC_CONFIG_FILES([ 257 260 src/unittests/Makefile 258 261 ]) 259 262 AC_OUTPUT -
src/Actions/AnalysisAction/DipoleAngularCorrelationAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " analysis_correlation.hpp"23 #include " boundary.hpp"22 #include "Analysis/analysis_correlation.hpp" 23 #include "Tesselation/boundary.hpp" 24 24 #include "linkedcell.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 #include "CodePatterns/Log.hpp" 27 #include " element.hpp"27 #include "Element/element.hpp" 28 28 #include "molecule.hpp" 29 #include " periodentafel.hpp"29 #include "Element/periodentafel.hpp" 30 30 #include "LinearAlgebra/Vector.hpp" 31 31 #include "World.hpp" -
src/Actions/AnalysisAction/MolecularVolumeAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " boundary.hpp"22 #include "Tesselation/boundary.hpp" 23 23 #include "config.hpp" 24 24 #include "molecule.hpp" … … 27 27 #include "CodePatterns/Verbose.hpp" 28 28 #include "PointCloudAdaptor.hpp" 29 #include " tesselation.hpp"29 #include "Tesselation/tesselation.hpp" 30 30 #include "World.hpp" 31 31 -
src/Actions/AnalysisAction/PairCorrelationAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " analysis_correlation.hpp"23 #include " boundary.hpp"22 #include "Analysis/analysis_correlation.hpp" 23 #include "Tesselation/boundary.hpp" 24 24 #include "linkedcell.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 #include "CodePatterns/Log.hpp" 27 #include " element.hpp"27 #include "Element/element.hpp" 28 28 #include "molecule.hpp" 29 #include " periodentafel.hpp"29 #include "Element/periodentafel.hpp" 30 30 #include "LinearAlgebra/Vector.hpp" 31 31 #include "World.hpp" -
src/Actions/AnalysisAction/PointCorrelationAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " analysis_correlation.hpp"23 #include " boundary.hpp"22 #include "Analysis/analysis_correlation.hpp" 23 #include "Tesselation/boundary.hpp" 24 24 #include "linkedcell.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 #include "CodePatterns/Log.hpp" 27 #include " element.hpp"27 #include "Element/element.hpp" 28 28 #include "molecule.hpp" 29 #include " periodentafel.hpp"29 #include "Element/periodentafel.hpp" 30 30 #include "LinearAlgebra/Vector.hpp" 31 31 #include "World.hpp" -
src/Actions/AnalysisAction/PrincipalAxisSystemAction.cpp
r752bb4 r360c8b 24 24 #include "LinearAlgebra/RealSpaceMatrix.hpp" 25 25 #include "LinearAlgebra/Vector.hpp" 26 #include " element.hpp"26 #include "Element/element.hpp" 27 27 #include "molecule.hpp" 28 28 -
src/Actions/AnalysisAction/SurfaceCorrelationAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " analysis_correlation.hpp"23 #include " boundary.hpp"22 #include "Analysis/analysis_correlation.hpp" 23 #include "Tesselation/boundary.hpp" 24 24 #include "linkedcell.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 #include "CodePatterns/Log.hpp" 27 27 #include "Descriptors/MoleculeIdDescriptor.hpp" 28 #include " element.hpp"28 #include "Element/element.hpp" 29 29 #include "LinearAlgebra/Vector.hpp" 30 30 #include "molecule.hpp" 31 #include " periodentafel.hpp"31 #include "Element/periodentafel.hpp" 32 32 #include "PointCloudAdaptor.hpp" 33 #include " tesselation.hpp"33 #include "Tesselation/tesselation.hpp" 34 34 #include "World.hpp" 35 35 -
src/Actions/AtomAction/AddAction.cpp
r752bb4 r360c8b 22 22 #include "Descriptors/AtomIdDescriptor.hpp" 23 23 #include "atom.hpp" 24 #include " element.hpp"24 #include "Element/element.hpp" 25 25 #include "CodePatterns/Log.hpp" 26 26 #include "molecule.hpp" -
src/Actions/AtomAction/ChangeElementAction.cpp
r752bb4 r360c8b 22 22 #include "Descriptors/AtomIdDescriptor.hpp" 23 23 #include "atom.hpp" 24 #include " element.hpp"24 #include "Element/element.hpp" 25 25 #include "CodePatterns/Log.hpp" 26 26 #include "LinearAlgebra/Vector.hpp" -
src/Actions/CommandAction/BondLengthTableAction.cpp
r752bb4 r360c8b 17 17 #include <config.h> 18 18 #endif 19 20 // include headers that implement a archive in simple text format 21 #include <boost/archive/text_oarchive.hpp> 22 #include <boost/archive/text_iarchive.hpp> 19 23 20 24 #include "CodePatterns/MemDebug.hpp" … … 44 48 45 49 DoLog(0) && (Log() << Verbose(0) << "Using " << params.BondGraphFileName << " as bond length table." << endl); 46 config *configuration = World::getInstance().getConfig(); 47 BondGraph *OldBG = World::getInstance().getBondGraph(); 50 BondGraph *&BG = World::getInstance().getBondGraph(); 48 51 49 BondGraph *BG = new BondGraph(configuration->GetIsAngstroem()); 52 // create undo state 53 std::stringstream undostream; 54 boost::archive::text_oarchive oa(undostream); 55 oa << BG; 56 CommandBondLengthTableState *UndoState = 57 new CommandBondLengthTableState( 58 undostream.str(), 59 params 60 ); 61 62 BG->CleanupBondLengthTable(); 50 63 if ((!params.BondGraphFileName.empty()) 51 64 && boost::filesystem::exists(params.BondGraphFileName)) { … … 54 67 DoLog(0) && (Log() << Verbose(0) << "Bond length table parsed successfully." << endl); 55 68 input.close(); 56 CommandBondLengthTableState *state = new CommandBondLengthTableState(*OldBG, params); 57 World::getInstance().setBondGraph(BG); // Changes OldBG, hence have to copy beforehand 58 return Action::state_ptr(state); 69 return Action::state_ptr(UndoState); 59 70 } else { 60 71 DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table parsing failed." << endl); 61 72 input.close(); 62 return Action::failure;63 73 } 64 74 } else { 65 75 DoeLog(1) && (eLog()<< Verbose(1) << "Bond length table loading failed." << endl); 66 return Action::failure;67 76 } 77 // recover bond graph 78 boost::archive::text_iarchive ia(undostream); 79 delete BG; 80 ia >> BG; 81 delete UndoState; 82 return Action::failure; 68 83 } 69 84 … … 71 86 CommandBondLengthTableState *state = assert_cast<CommandBondLengthTableState*>(_state.get()); 72 87 73 BondGraph *OldBG = World::getInstance().getBondGraph(); 74 CommandBondLengthTableState *restate = new CommandBondLengthTableState(*OldBG, params); 75 World::getInstance().setBondGraph(new BondGraph(state->OldBG)); // Changes OldBG, hence have to copy beforehand 88 BondGraph *BG; 89 std::stringstream undostream(state->undostring); 90 boost::archive::text_iarchive ia(undostream); 91 ia >> BG; 92 World::getInstance().setBondGraph(BG); 76 93 77 return Action::state_ptr( restate);94 return Action::state_ptr(_state); 78 95 } 79 96 … … 81 98 CommandBondLengthTableState *state = assert_cast<CommandBondLengthTableState*>(_state.get()); 82 99 83 BondGraph *OldBG = World::getInstance().getBondGraph(); 84 CommandBondLengthTableState *restate = new CommandBondLengthTableState(*OldBG, params); 85 World::getInstance().setBondGraph(new BondGraph(state->OldBG)); // Changes OldBG, hence have to copy beforehand 100 BondGraph *&BG = World::getInstance().getBondGraph(); 101 BG->CleanupBondLengthTable(); 102 std::ifstream input(state->params.BondGraphFileName.string().c_str()); 103 if ((input.good()) && (BG->LoadBondLengthTable(input))) { 104 DoLog(0) && (Log() << Verbose(0) << "Bond length table parsed successfully." << endl); 105 input.close(); 106 } 86 107 87 return Action::state_ptr( restate);108 return Action::state_ptr(_state); 88 109 } 89 110 90 111 bool CommandBondLengthTableAction::canUndo() { 91 return false;112 return true; 92 113 } 93 114 94 115 bool CommandBondLengthTableAction::shouldUndo() { 95 return false;116 return true; 96 117 } 97 118 /** =========== end of function ====================== */ -
src/Actions/CommandAction/BondLengthTableAction.def
r752bb4 r360c8b 19 19 #define paramreferences (BondGraphFileName) 20 20 21 #define statetypes ( BondGraph)22 #define statereferences ( OldBG)21 #define statetypes (std::string) 22 #define statereferences (undostring) 23 23 24 24 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/CommandAction/ElementDbAction.cpp
r752bb4 r360c8b 25 25 26 26 #include "config.hpp" 27 #include " element.hpp" // we need element because of serialization!28 #include " periodentafel.hpp"27 #include "Element/element.hpp" // we need element because of serialization! 28 #include "Element/periodentafel.hpp" 29 29 #include "CodePatterns/Log.hpp" 30 30 #include "CodePatterns/Verbose.hpp" … … 47 47 // obtain information 48 48 getParametersfromValueStorage(); 49 periodentafel * periode = World::getInstance().getPeriode();49 periodentafel *&periode = World::getInstance().getPeriode(); 50 50 51 51 // create undo state … … 65 65 66 66 // load table 67 periode->CleanupPeriodtable(); 67 68 if (periode->LoadPeriodentafel(configuration->databasepath)) { 68 69 DoLog(0) && (Log() << Verbose(0) << "Element list loaded successfully." << endl); … … 71 72 } else { 72 73 DoLog(0) && (Log() << Verbose(0) << "Element list loading failed." << endl); 74 delete UndoState; 73 75 return Action::failure; 74 76 } … … 99 101 100 102 // load table 101 periodentafel *periode = World::getInstance().getPeriode(); 103 periodentafel *&periode = World::getInstance().getPeriode(); 104 periode->CleanupPeriodtable(); 102 105 if (periode->LoadPeriodentafel(configuration->databasepath)) { 103 106 DoLog(0) && (Log() << Verbose(0) << "Element list loaded successfully." << endl); -
src/Actions/GraphAction/CreateAdjacencyAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include "Descriptors/AtomIdDescriptor.hpp" 23 #include "Descriptors/MoleculeDescriptor.hpp" 22 #include "CodePatterns/Log.hpp" 24 23 25 #include "atom.hpp" 26 #include "Bond/bond.hpp" 27 #include "CodePatterns/Log.hpp" 28 #include "CodePatterns/Range.hpp" 29 #include "CodePatterns/Verbose.hpp" 30 #include "config.hpp" 24 #include "Descriptors/AtomSelectionDescriptor.hpp" 31 25 #include "Graph/BondGraph.hpp" 32 #include "linkedcell.hpp"33 26 #include "molecule.hpp" 34 #include "PointCloudAdaptor.hpp"35 27 #include "World.hpp" 36 #include "WorldTime.hpp"37 28 38 29 #include <iostream> 39 30 #include <list> 40 31 #include <string> 41 42 typedef std::map< moleculeId_t, std::vector<atomId_t> > MolAtomList;43 32 44 33 #include "Actions/GraphAction/CreateAdjacencyAction.hpp" … … 54 43 getParametersfromValueStorage(); 55 44 56 DoLog(1) && (Log() << Verbose(1) << "Constructing bond graph for selected atoms ... " << endl);57 58 45 BondGraph *BG = World::getInstance().getBondGraph(); 59 46 ASSERT(BG != NULL, "GraphCreateAdjacencyAction: BondGraph is NULL."); 60 double BondDistance = BG->getMaxPossibleBondDistance(AtomSetMixin<std::vector<atom *> >(World::getInstance().getSelectedAtoms()));61 47 62 atom *Walker = NULL; 63 atom *OtherWalker = NULL; 64 int n[NDIM]; 65 LinkedCell *LC = NULL; 66 Box &domain = World::getInstance().getDomain(); 48 World::AtomComposite Set = World::getInstance().getAllAtoms(AtomsBySelection()); 49 BG->CreateAdjacency(Set); 67 50 68 // remove every bond from the selected atoms' list 69 int AtomCount = 0; 70 for (World::AtomSelectionIterator AtomRunner = World::getInstance().beginAtomSelection(); 71 AtomRunner != World::getInstance().endAtomSelection(); 72 ++AtomRunner) { 73 AtomCount++; 74 (AtomRunner->second)->removeAllBonds(); 75 // BondList& ListOfBonds = (AtomRunner->second)->getListOfBonds(); 76 // for(BondList::iterator BondRunner = ListOfBonds.begin(); 77 // !ListOfBonds.empty(); 78 // BondRunner = ListOfBonds.begin()) 79 // if ((*BondRunner)->leftatom == AtomRunner->second) 80 // delete((*BondRunner)); 81 } 82 int BondCount = 0; 83 84 // count atoms in molecule = dimension of matrix (also give each unique name and continuous numbering) 85 DoLog(1) && (Log() << Verbose(1) << "AtomCount " << AtomCount << " and bonddistance is " << BondDistance << "." << endl); 86 87 if ((AtomCount > 1) && (BondDistance > 1.)) { 88 DoLog(2) && (Log() << Verbose(2) << "Creating Linked Cell structure ... " << endl); 89 TesselPointSTLList list; 90 for (World::AtomSelectionIterator AtomRunner = World::getInstance().beginAtomSelection(); 91 AtomRunner != World::getInstance().endAtomSelection(); 92 ++AtomRunner) { 93 list.push_back(AtomRunner->second); 94 } 95 PointCloudAdaptor< TesselPointSTLList > cloud(&list, "AtomSelection"); 96 LC = new LinkedCell(cloud, BondDistance); 97 98 // create a list to map Tesselpoint::Nr to atom * 99 DoLog(2) && (Log() << Verbose(2) << "Creating TesselPoint to atom map ... " << endl); 100 101 // set numbers for atoms that can later be used 102 std::map<TesselPoint *, int> AtomIds; 103 int i=0; 104 for (World::AtomSelectionIterator AtomRunner = World::getInstance().beginAtomSelection(); 105 AtomRunner != World::getInstance().endAtomSelection(); 106 ++AtomRunner) { 107 AtomIds.insert(pair<TesselPoint *, int> (AtomRunner->second, i++) ); 108 } 109 110 // 3a. go through every cell 111 DoLog(2) && (Log() << Verbose(2) << "Celling ... " << endl); 112 for (LC->n[0] = 0; LC->n[0] < LC->N[0]; LC->n[0]++) 113 for (LC->n[1] = 0; LC->n[1] < LC->N[1]; LC->n[1]++) 114 for (LC->n[2] = 0; LC->n[2] < LC->N[2]; LC->n[2]++) { 115 const TesselPointSTLList *List = LC->GetCurrentCell(); 116 // Log() << Verbose(2) << "Current cell is " << LC->n[0] << ", " << LC->n[1] << ", " << LC->n[2] << " with No. " << LC->index << " containing " << List->size() << " points." << endl; 117 if (List != NULL) { 118 for (TesselPointSTLList::const_iterator Runner = List->begin(); 119 Runner != List->end(); 120 Runner++) { 121 Walker = dynamic_cast<atom*>(*Runner); 122 ASSERT(Walker,"Tesselpoint that was not an atom retrieved from LinkedNode"); 123 //Log() << Verbose(0) << "Current Atom is " << *Walker << "." << endl; 124 // 3c. check for possible bond between each atom in this and every one in the 27 cells 125 for (n[0] = -1; n[0] <= 1; n[0]++) 126 for (n[1] = -1; n[1] <= 1; n[1]++) 127 for (n[2] = -1; n[2] <= 1; n[2]++) { 128 const TesselPointSTLList *OtherList = LC->GetRelativeToCurrentCell(n); 129 // Log() << Verbose(2) << "Current relative cell is " << LC->n[0] << ", " << LC->n[1] << ", " << LC->n[2] << " with No. " << LC->index << " containing " << List->size() << " points." << endl; 130 if (OtherList != NULL) { 131 for (TesselPointSTLList::const_iterator OtherRunner = OtherList->begin(); OtherRunner != OtherList->end(); OtherRunner++) { 132 if (AtomIds.find(*OtherRunner)->second > AtomIds.find(Walker)->second) { 133 OtherWalker = dynamic_cast<atom*>(*OtherRunner); 134 ASSERT(OtherWalker,"TesselPoint that was not an atom retrieved from LinkedNode"); 135 //Log() << Verbose(1) << "Checking distance " << OtherWalker->x.PeriodicDistanceSquared(&(Walker->x), cell_size) << " against typical bond length of " << bonddistance*bonddistance << "." << endl; 136 const range<double> MinMaxDistanceSquared( 137 BG->getMinMaxDistanceSquared(Walker, OtherWalker)); 138 const double distance = domain.periodicDistanceSquared(OtherWalker->getPosition(),Walker->getPosition()); 139 const bool status = MinMaxDistanceSquared.isInRange(distance); 140 // LOG3, "INFO: MinMaxDistanceSquared interval is " << MinMaxDistanceSquared << "."); 141 if (AtomIds[OtherWalker->father] > AtomIds[Walker->father]) { 142 if (status) { // create bond if distance is smaller 143 // Log() << Verbose(1) << "Adding Bond between " << *Walker << " and " << *OtherWalker << " in distance " << sqrt(distance) << "." << endl; 144 //const bond * Binder = 145 Walker->father->addBond(WorldTime::getTime(), OtherWalker->father); 146 BondCount++; 147 } else { 148 // Log() << Verbose(1) << "Not Adding: distance too great." << endl; 149 } 150 } else { 151 // Log() << Verbose(1) << "Not Adding: Wrong order of labels." << endl; 152 } 153 } 154 } 155 } 156 } 157 } 158 } 159 } 160 delete (LC); 161 DoLog(1) && (Log() << Verbose(1) << "I detected " << BondCount << " bonds in the molecule with distance " << BondDistance << "." << endl); 162 163 // correct bond degree by comparing valence and bond degree 164 DoLog(2) && (Log() << Verbose(2) << "Correcting bond degree ... " << endl); 165 //CorrectBondDegree(); 166 167 } else 168 DoLog(1) && (Log() << Verbose(1) << "AtomCount is " << AtomCount << ", thus no bonds, no connections!." << endl); 169 DoLog(0) && (Log() << Verbose(0) << "End of CreateAdjacencyList." << endl); 51 size_t BondCount = 0; 52 std::vector<molecule *> molecules = World::getInstance().getAllMolecules(); 53 for (std::vector<molecule *>::const_iterator iter = molecules.begin(); 54 iter != molecules.end(); ++iter) 55 BondCount += (*iter)->getBondCount(); 56 LOG(0, "STATUS: Recognized " << BondCount << " bonds."); 170 57 171 58 return Action::success; -
src/Actions/GraphAction/SubgraphDissectionAction.cpp
r752bb4 r360c8b 74 74 } 75 75 76 // 0b. remove all bonds and construct a molecule with all atoms77 molecule *mol = World::getInstance().createMolecule();78 {79 vector <atom *> allatoms = World::getInstance().getAllAtoms();80 for(vector<atom *>::iterator AtomRunner = allatoms.begin(); AtomRunner != allatoms.end(); ++AtomRunner) {81 // const BondList& ListOfBonds = (*AtomRunner)->getListOfBonds();82 // for(BondList::iterator BondRunner = ListOfBonds.begin();83 // !ListOfBonds.empty();84 // BondRunner = ListOfBonds.begin()) {85 // delete(*BondRunner);86 // }87 mol->AddAtom(*AtomRunner);88 }89 }90 91 76 // 1. create the bond structure of the single molecule 92 77 LOG(0, "STATUS: (Re-)constructing adjacency."); 93 if (mol->getBondCount() == 0) { 94 BondGraph *BG = World::getInstance().getBondGraph(); 95 molecule::atomVector Set = mol->getAtomSet(); 96 BG->CreateAdjacency(Set); 97 // if (mol->getBondCount() == 0) { 98 // World::getInstance().destroyMolecule(mol); 99 // ELOG(1, "There are no bonds."); 100 // return Action::failure; 101 // } 102 } 78 BondGraph *BG = World::getInstance().getBondGraph(); 79 World::AtomComposite Set = World::getInstance().getAllAtoms(); 80 BG->CreateAdjacency(Set); 103 81 104 82 // 2. scan for connected subgraphs … … 108 86 if (!World::getInstance().numMolecules()) { 109 87 //World::getInstance().destroyMolecule(mol); 110 DoeLog(1) && (eLog()<< Verbose(1) << "There are no atoms." << endl);88 DoeLog(1) && (eLog()<< Verbose(1) << "There are no molecules." << endl); 111 89 return Action::failure; 112 90 } -
src/Actions/MoleculeAction/BondFileAction.cpp
r752bb4 r360c8b 50 50 << ", adding " << params.id_offset << " to each id."); 51 51 ifstream input(params.bondfile.string().c_str()); 52 molecule::atomVectorSet = mol->getAtomSet();52 World::AtomComposite Set = mol->getAtomSet(); 53 53 World::getInstance().getBondGraph()->CreateAdjacencyListFromDbondFile(Set, &input, params.skiplines, params.id_offset); 54 54 input.close(); -
src/Actions/MoleculeAction/CopyAction.cpp
r752bb4 r360c8b 59 59 MoleculeCopyState *state = assert_cast<MoleculeCopyState*>(_state.get()); 60 60 61 for (molecule::iterator AtomRunner = state->copy->begin(); 62 !state->copy->empty(); 63 AtomRunner = state->copy->begin()) { 64 (*AtomRunner)->removeAllBonds(); 65 // BondList& ListOfBonds = (*AtomRunner)->getListOfBonds(); 66 // for(BondList::iterator BondRunner = ListOfBonds.begin(); 67 // !ListOfBonds.empty(); 68 // BondRunner = ListOfBonds.begin()) { 69 // delete(*BondRunner); 70 // } 71 atom *Walker = *AtomRunner; 72 World::getInstance().destroyAtom(Walker); 73 } 61 state->copy->removeAtomsinMolecule(); 74 62 World::getInstance().destroyMolecule(state->copy); 75 63 -
src/Actions/MoleculeAction/FillVoidWithMoleculeAction.cpp
r752bb4 r360c8b 22 22 #include "atom.hpp" 23 23 #include "Graph/BondGraph.hpp" 24 #include " boundary.hpp"24 #include "Tesselation/boundary.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 #include "config.hpp" … … 74 74 molecule *filler = World::getInstance().getMolecule(MoleculeByOrder(-1)); // get last molecule 75 75 filler->SetNameFromFilename(params.fillername.string().c_str()); 76 molecule::atomVectorSet = filler->getAtomSet();76 World::AtomComposite Set = filler->getAtomSet(); 77 77 World::getInstance().getBondGraph()->CreateAdjacency(Set); 78 78 -
src/Actions/MoleculeAction/FillWithMoleculeAction.cpp
r752bb4 r360c8b 22 22 #include "atom.hpp" 23 23 #include "Graph/BondGraph.hpp" 24 #include " boundary.hpp"24 #include "Tesselation/boundary.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 #include "config.hpp" … … 84 84 // filler->AddBond(first, third, 1); 85 85 // filler->AddBond(second, third, 1); 86 molecule::atomVectorSet = filler->getAtomSet();86 World::AtomComposite Set = filler->getAtomSet(); 87 87 World::getInstance().getBondGraph()->CreateAdjacency(Set); 88 88 // filler->SetNameFromFilename("water"); -
src/Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp
r752bb4 r360c8b 25 25 #include "LinearAlgebra/RealSpaceMatrix.hpp" 26 26 #include "LinearAlgebra/Vector.hpp" 27 #include " element.hpp"27 #include "Element/element.hpp" 28 28 #include "molecule.hpp" 29 29 -
src/Actions/MoleculeAction/SuspendInWaterAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " boundary.hpp"22 #include "Tesselation/boundary.hpp" 23 23 #include "config.hpp" 24 24 #include "CodePatterns/Log.hpp" -
src/Actions/SelectionAction/Atoms/AtomByElementAction.cpp
r752bb4 r360c8b 23 23 #include "Descriptors/AtomSelectionDescriptor.hpp" 24 24 #include "atom.hpp" 25 #include " element.hpp"25 #include "Element/element.hpp" 26 26 #include "CodePatterns/Log.hpp" 27 27 #include "CodePatterns/Verbose.hpp" -
src/Actions/SelectionAction/Atoms/NotAtomByElementAction.cpp
r752bb4 r360c8b 23 23 #include "Descriptors/AtomTypeDescriptor.hpp" 24 24 #include "atom.hpp" 25 #include " element.hpp"25 #include "Element/element.hpp" 26 26 #include "CodePatterns/Log.hpp" 27 27 #include "CodePatterns/Verbose.hpp" -
src/Actions/TesselationAction/ConvexEnvelopeAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " boundary.hpp"22 #include "Tesselation/boundary.hpp" 23 23 #include "CodePatterns/Log.hpp" 24 24 #include "CodePatterns/Verbose.hpp" … … 27 27 #include "molecule.hpp" 28 28 #include "PointCloudAdaptor.hpp" 29 #include " tesselation.hpp"29 #include "Tesselation/tesselation.hpp" 30 30 #include "World.hpp" 31 31 -
src/Actions/TesselationAction/NonConvexEnvelopeAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include " boundary.hpp"22 #include "Tesselation/boundary.hpp" 23 23 #include "CodePatterns/Log.hpp" 24 24 #include "CodePatterns/Verbose.hpp" … … 26 26 #include "molecule.hpp" 27 27 #include "PointCloudAdaptor.hpp" 28 #include " tesselation.hpp"28 #include "Tesselation/tesselation.hpp" 29 29 #include "World.hpp" 30 30 -
src/Actions/ValueStorage.cpp
r752bb4 r360c8b 37 37 #include "atom.hpp" 38 38 #include "Box.hpp" 39 #include " element.hpp"39 #include "Element/element.hpp" 40 40 #include "molecule.hpp" 41 #include " periodentafel.hpp"41 #include "Element/periodentafel.hpp" 42 42 #include "World.hpp" 43 43 -
src/Actions/WorldAction/AddEmptyBoundaryAction.cpp
r752bb4 r360c8b 18 18 #endif 19 19 20 // include headers that implement a archive in simple text format 21 #include <boost/archive/text_oarchive.hpp> 22 #include <boost/archive/text_iarchive.hpp> 23 #include "boost/serialization/vector.hpp" 24 20 25 #include "CodePatterns/MemDebug.hpp" 21 26 22 27 #include "atom.hpp" 28 #include "Box.hpp" 23 29 #include "CodePatterns/Log.hpp" 30 #include "LinearAlgebra/MatrixContent.hpp" 24 31 #include "LinearAlgebra/RealSpaceMatrix.hpp" 25 32 #include "LinearAlgebra/Vector.hpp" … … 46 53 getParametersfromValueStorage(); 47 54 55 // create undo domain 56 std::stringstream undostream; 57 boost::archive::text_oarchive oa(undostream); 58 const RealSpaceMatrix &matrix = World::getInstance().getDomain().getM(); 59 oa << matrix; 60 48 61 // get maximum and minimum 49 vector<atom *> AllAtoms = World::getInstance().getAllAtoms();62 std::vector<atom *> AllAtoms = World::getInstance().getAllAtoms(); 50 63 ASSERT(AllAtoms.size() > 0, "There must be atoms present for AddingEmptyBoundary."); 51 vector<atom *>::iterator AtomRunner = AllAtoms.begin();64 std::vector<atom *>::iterator AtomRunner = AllAtoms.begin(); 52 65 Min = (*AtomRunner)->getPosition(); 53 66 Max = (*AtomRunner)->getPosition(); … … 73 86 // translate all atoms, such that Min is aty (0,0,0) 74 87 AtomRunner = AllAtoms.begin(); 75 for (; AtomRunner != AllAtoms.end(); ++AtomRunner) 88 for (std::vector<atom *>::iterator AtomRunner = AllAtoms.begin(); 89 AtomRunner != AllAtoms.end(); 90 ++AtomRunner) 76 91 *(*AtomRunner) -= Min - params.boundary; 77 92 … … 79 94 LOG(0, "Box domain is now " << World::getInstance().getDomain().getM()); 80 95 81 return Action::success; 96 // create undo state 97 WorldAddEmptyBoundaryState *UndoState = 98 new WorldAddEmptyBoundaryState( 99 undostream.str(), 100 World::getInstance().getDomain().getM(), 101 Min, 102 params 103 ); 104 105 return Action::state_ptr(UndoState); 82 106 } 83 107 84 108 Action::state_ptr WorldAddEmptyBoundaryAction::performUndo(Action::state_ptr _state) { 85 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get());109 WorldAddEmptyBoundaryState *state = assert_cast<WorldAddEmptyBoundaryState*>(_state.get()); 86 110 87 return Action::failure; 88 // string newName = state->mol->getName(); 89 // state->mol->setName(state->lastName); 90 // 91 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 111 // restore domain 112 RealSpaceMatrix matrix; 113 std::stringstream undostream(state->undostring); 114 boost::archive::text_iarchive ia(undostream); 115 ia >> matrix; 116 World::getInstance().setDomain(matrix); 117 118 // give final box size 119 LOG(0, "Box domain restored to " << World::getInstance().getDomain().getM()); 120 121 // restore atoms 122 std::vector<atom *> AllAtoms = World::getInstance().getAllAtoms(); 123 for (std::vector<atom *>::iterator AtomRunner = AllAtoms.begin(); 124 AtomRunner != AllAtoms.end(); 125 ++AtomRunner) 126 *(*AtomRunner) += state->Min - state->params.boundary; 127 128 return Action::state_ptr(_state); 92 129 } 93 130 94 131 Action::state_ptr WorldAddEmptyBoundaryAction::performRedo(Action::state_ptr _state){ 95 return Action::failure; 132 WorldAddEmptyBoundaryState *state = assert_cast<WorldAddEmptyBoundaryState*>(_state.get()); 133 134 World::getInstance().setDomain(state->newdomain); 135 136 // give final box size 137 LOG(0, "Box domain is again " << World::getInstance().getDomain().getM()); 138 139 // shift atoms 140 std::vector<atom *> AllAtoms = World::getInstance().getAllAtoms(); 141 for (std::vector<atom *>::iterator AtomRunner = AllAtoms.begin(); 142 AtomRunner != AllAtoms.end(); 143 ++AtomRunner) 144 *(*AtomRunner) -= state->Min - state->params.boundary; 145 146 return Action::state_ptr(_state); 96 147 } 97 148 98 149 bool WorldAddEmptyBoundaryAction::canUndo() { 99 return false;150 return true; 100 151 } 101 152 102 153 bool WorldAddEmptyBoundaryAction::shouldUndo() { 103 return false;154 return true; 104 155 } 105 156 /** =========== end of function ====================== */ -
src/Actions/WorldAction/AddEmptyBoundaryAction.def
r752bb4 r360c8b 8 8 // all includes and forward declarations necessary for non-integral types below 9 9 #include "Actions/Values.hpp" 10 #include "LinearAlgebra/RealSpaceMatrix.hpp" 10 11 #include "LinearAlgebra/Vector.hpp" 11 12 … … 19 20 #define paramreferences (boundary) 20 21 21 # undef statetypes22 # undef statereferences22 #define statetypes (std::string)(RealSpaceMatrix)(Vector) 23 #define statereferences (undostring)(newdomain)(Min) 23 24 24 25 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/WorldAction/BoundInBoxAction.cpp
r752bb4 r360c8b 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include <boost/shared_ptr.hpp> 23 22 24 #include "CodePatterns/Log.hpp" 23 25 #include "molecule.hpp" … … 40 42 getParametersfromValueStorage(); 41 43 44 // create undo state 45 std::vector< boost::shared_ptr<Vector> > OldPositions; 46 std::vector<molecule*> AllMolecules = World::getInstance().getAllMolecules(); 47 for (vector<molecule*>::iterator MolRunner = AllMolecules.begin(); 48 MolRunner != AllMolecules.end(); 49 ++MolRunner) { 50 for(molecule::const_iterator AtomRunner = (*MolRunner)->begin(); 51 AtomRunner != (*MolRunner)->end(); 52 ++AtomRunner) { 53 OldPositions.push_back( 54 boost::shared_ptr<Vector>(new Vector( 55 (*AtomRunner)->getPosition() 56 )) 57 ); 58 } 59 } 60 WorldBoundInBoxState *undoState = new WorldBoundInBoxState(OldPositions, params); 61 42 62 // center 43 vector<molecule*> AllMolecules = World::getInstance().getAllMolecules(); 44 for (vector<molecule*>::iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) { 63 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) { 45 64 (*MolRunner)->BoundInBox(); 46 65 } 47 return Action::s uccess;66 return Action::state_ptr(undoState); 48 67 } 49 68 50 69 Action::state_ptr WorldBoundInBoxAction::performUndo(Action::state_ptr _state) { 51 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get());70 WorldBoundInBoxState *state = assert_cast<WorldBoundInBoxState*>(_state.get()); 52 71 53 return Action::failure; 54 // string newName = state->mol->getName(); 55 // state->mol->setName(state->lastName); 56 // 57 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 72 // place atoms on old positions 73 std::vector< boost::shared_ptr<Vector> >::const_iterator OldPositionsIter = state->OldPositions.begin(); 74 std::vector<molecule*> AllMolecules = World::getInstance().getAllMolecules(); 75 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); 76 MolRunner != AllMolecules.end(); 77 ++MolRunner) { 78 for(molecule::const_iterator AtomRunner = (*MolRunner)->begin(); 79 AtomRunner != (*MolRunner)->end(); 80 ++AtomRunner) { 81 ASSERT(OldPositionsIter != state->OldPositions.end(), 82 "WorldBoundInBoxAction::performUndo() - too few positions stored in UndoState."); 83 (*AtomRunner)->setPosition(**(OldPositionsIter++)); 84 } 85 } 86 87 return Action::state_ptr(_state); 58 88 } 59 89 60 90 Action::state_ptr WorldBoundInBoxAction::performRedo(Action::state_ptr _state){ 61 return Action::failure; 91 // WorldBoundInBoxState *state = assert_cast<WorldBoundInBoxState*>(_state.get()); 92 93 // center 94 std::vector<molecule*> AllMolecules = World::getInstance().getAllMolecules(); 95 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); 96 MolRunner != AllMolecules.end(); 97 ++MolRunner) { 98 (*MolRunner)->BoundInBox(); 99 } 100 101 return Action::state_ptr(_state); 62 102 } 63 103 64 104 bool WorldBoundInBoxAction::canUndo() { 65 return false;105 return true; 66 106 } 67 107 68 108 bool WorldBoundInBoxAction::shouldUndo() { 69 return false;109 return true; 70 110 } 71 111 /** =========== end of function ====================== */ -
src/Actions/WorldAction/BoundInBoxAction.def
r752bb4 r360c8b 7 7 8 8 // all includes and forward declarations necessary for non-integral types below 9 #include <boost/shared_ptr.hpp> 10 #include "LinearAlgebra/Vector.hpp" 9 11 10 12 … … 18 20 #undef paramreferences 19 21 20 # undef statetypes21 # undef statereferences22 #define statetypes (std::vector< boost::shared_ptr<Vector> >) 23 #define statereferences (OldPositions) 22 24 23 25 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/WorldAction/CenterInBoxAction.cpp
r752bb4 r360c8b 18 18 #endif 19 19 20 // include headers that implement a archive in simple text format 21 #include <boost/archive/text_oarchive.hpp> 22 #include <boost/archive/text_iarchive.hpp> 23 #include "boost/serialization/vector.hpp" 24 20 25 #include "CodePatterns/MemDebug.hpp" 26 27 #include <boost/shared_ptr.hpp> 21 28 22 29 #include "Box.hpp" 23 30 #include "CodePatterns/Log.hpp" 31 #include "LinearAlgebra/MatrixContent.hpp" 24 32 #include "LinearAlgebra/RealSpaceMatrix.hpp" 25 33 #include "molecule.hpp" … … 28 36 #include <iostream> 29 37 #include <string> 38 #include <vector> 30 39 31 40 #include "Actions/WorldAction/CenterInBoxAction.hpp" … … 41 50 getParametersfromValueStorage(); 42 51 52 // create undo state 53 std::stringstream undostream; 54 boost::archive::text_oarchive oa(undostream); 55 RealSpaceMatrix matrix(World::getInstance().getDomain().getM()); 56 oa << matrix; 57 std::vector< boost::shared_ptr<Vector> > OldPositions; 58 std::vector<molecule*> AllMolecules = World::getInstance().getAllMolecules(); 59 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); 60 MolRunner != AllMolecules.end(); 61 ++MolRunner) { 62 for(molecule::const_iterator AtomRunner = (*MolRunner)->begin(); 63 AtomRunner != (*MolRunner)->end(); 64 ++AtomRunner) { 65 OldPositions.push_back( 66 boost::shared_ptr<Vector>(new Vector( 67 (*AtomRunner)->getPosition() 68 )) 69 ); 70 } 71 } 72 73 // set new domain 43 74 World::getInstance().setDomain(params.cell_size.getM()); 44 75 45 // center 46 vector<molecule *> AllMolecules = World::getInstance().getAllMolecules(); 47 for (vector<molecule*>::iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) { 76 // center atoms 77 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) { 48 78 (*MolRunner)->CenterInBox(); 49 79 } … … 52 82 LOG(0, "Box domain is now " << World::getInstance().getDomain().getM()); 53 83 54 return Action::success; 84 // create undo state 85 WorldCenterInBoxState *UndoState = 86 new WorldCenterInBoxState( 87 undostream.str(), 88 OldPositions, 89 params 90 ); 91 92 return Action::state_ptr(UndoState); 55 93 } 56 94 57 95 Action::state_ptr WorldCenterInBoxAction::performUndo(Action::state_ptr _state) { 58 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get());96 WorldCenterInBoxState *state = assert_cast<WorldCenterInBoxState*>(_state.get()); 59 97 60 return Action::failure; 61 // string newName = state->mol->getName(); 62 // state->mol->setName(state->lastName); 63 // 64 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 98 // restore domain 99 RealSpaceMatrix matrix; 100 std::stringstream undostream(state->undostring); 101 boost::archive::text_iarchive ia(undostream); 102 ia >> matrix; 103 World::getInstance().setDomain(matrix); 104 105 // place atoms on old positions 106 std::vector< boost::shared_ptr<Vector> >::const_iterator OldPositionsIter = state->OldPositions.begin(); 107 std::vector<molecule*> AllMolecules = World::getInstance().getAllMolecules(); 108 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); 109 MolRunner != AllMolecules.end(); 110 ++MolRunner) { 111 for(molecule::const_iterator AtomRunner = (*MolRunner)->begin(); 112 AtomRunner != (*MolRunner)->end(); 113 ++AtomRunner) { 114 ASSERT(OldPositionsIter != state->OldPositions.end(), 115 "WorldBoundInBoxAction::performUndo() - too few positions stored in UndoState."); 116 (*AtomRunner)->setPosition(**(OldPositionsIter++)); 117 } 118 } 119 120 // give final box size 121 LOG(0, "Box domain restored to " << World::getInstance().getDomain().getM()); 122 123 return Action::state_ptr(_state); 65 124 } 66 125 67 126 Action::state_ptr WorldCenterInBoxAction::performRedo(Action::state_ptr _state){ 68 return Action::failure; 127 WorldCenterInBoxState *state = assert_cast<WorldCenterInBoxState*>(_state.get()); 128 129 // set new domain 130 World::getInstance().setDomain(state->params.cell_size.getM()); 131 132 // center atoms 133 std::vector<molecule *> AllMolecules = World::getInstance().getAllMolecules(); 134 for (std::vector<molecule*>::iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) { 135 (*MolRunner)->CenterInBox(); 136 } 137 138 // give final box size 139 LOG(0, "Box domain is again " << World::getInstance().getDomain().getM()); 140 141 return Action::state_ptr(_state); 69 142 } 70 143 71 144 bool WorldCenterInBoxAction::canUndo() { 72 return false;145 return true; 73 146 } 74 147 75 148 bool WorldCenterInBoxAction::shouldUndo() { 76 return false;149 return true; 77 150 } 78 151 /** =========== end of function ====================== */ -
src/Actions/WorldAction/CenterInBoxAction.def
r752bb4 r360c8b 9 9 #include "Actions/Values.hpp" 10 10 #include "Box.hpp" 11 #include "LinearAlgebra/Vector.hpp" 12 #include <boost/shared_ptr.hpp> 11 13 12 14 // i.e. there is an integer with variable name Z that can be found in … … 19 21 #define paramreferences (cell_size) 20 22 21 # undef statetypes22 # undef statereferences23 #define statetypes (std::string)(std::vector< boost::shared_ptr<Vector> >) 24 #define statereferences (undostring)(OldPositions) 23 25 24 26 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/WorldAction/CenterOnEdgeAction.cpp
r752bb4 r360c8b 18 18 #endif 19 19 20 // include headers that implement a archive in simple text format 21 #include <boost/archive/text_oarchive.hpp> 22 #include <boost/archive/text_iarchive.hpp> 23 #include "boost/serialization/vector.hpp" 24 20 25 #include "CodePatterns/MemDebug.hpp" 21 26 22 27 #include "atom.hpp" 23 28 #include "CodePatterns/Log.hpp" 29 #include "LinearAlgebra/MatrixContent.hpp" 30 #include "LinearAlgebra/RealSpaceMatrix.hpp" 24 31 #include "LinearAlgebra/Vector.hpp" 32 #include "molecule.hpp" 25 33 #include "World.hpp" 26 #include "LinearAlgebra/RealSpaceMatrix.hpp"27 34 28 35 #include <iostream> 29 36 #include <string> 37 #include <vector> 30 38 31 39 #include "Actions/WorldAction/CenterOnEdgeAction.hpp" … … 44 52 getParametersfromValueStorage(); 45 53 54 // create undo state 55 std::stringstream undostream; 56 boost::archive::text_oarchive oa(undostream); 57 const RealSpaceMatrix &matrix = World::getInstance().getDomain().getM(); 58 oa << matrix; 59 std::vector< boost::shared_ptr<Vector> > OldPositions; 60 std::vector<atom *> AllAtoms = World::getInstance().getAllAtoms(); 61 for (std::vector<atom *>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) 62 OldPositions.push_back( 63 boost::shared_ptr<Vector>(new Vector( 64 (*AtomRunner)->getPosition() 65 )) 66 ); 67 46 68 // get maximum and minimum 47 vector<atom *> AllAtoms = World::getInstance().getAllAtoms();48 69 ASSERT(AllAtoms.size() > 0, "For CenteronEdge atoms must be present."); 49 vector<atom *>::iterator AtomRunner = AllAtoms.begin();70 std::vector<atom *>::iterator AtomRunner = AllAtoms.begin(); 50 71 Min = (*AtomRunner)->getPosition(); 51 72 Max = (*AtomRunner)->getPosition(); … … 67 88 World::getInstance().setDomain(domain); 68 89 // translate all atoms, such that Min is aty (0,0,0) 69 for ( vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner)90 for (std::vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) 70 91 *(*AtomRunner) -= Min; 71 92 … … 73 94 LOG(0, "Box domain is now " << World::getInstance().getDomain().getM()); 74 95 75 return Action::success; 96 // create undo state 97 WorldCenterOnEdgeState *UndoState = 98 new WorldCenterOnEdgeState( 99 undostream.str(), 100 Min, 101 Max, 102 params 103 ); 104 105 return Action::state_ptr(UndoState); 76 106 } 77 107 78 108 Action::state_ptr WorldCenterOnEdgeAction::performUndo(Action::state_ptr _state) { 79 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get());109 WorldCenterOnEdgeState *state = assert_cast<WorldCenterOnEdgeState*>(_state.get()); 80 110 81 return Action::failure; 82 // string newName = state->mol->getName(); 83 // state->mol->setName(state->lastName); 84 // 85 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 111 // restore domain 112 RealSpaceMatrix matrix; 113 std::stringstream undostream(state->undostring); 114 boost::archive::text_iarchive ia(undostream); 115 ia >> matrix; 116 World::getInstance().setDomain(matrix); 117 118 // translate all atoms back 119 std::vector<atom *> AllAtoms = World::getInstance().getAllAtoms(); 120 for (vector<atom*>::iterator AtomRunner = AllAtoms.begin(); 121 AtomRunner != AllAtoms.end(); 122 ++AtomRunner) 123 *(*AtomRunner) += state->Min; 124 125 // give final box size 126 LOG(0, "Box domain restored to " << World::getInstance().getDomain().getM()); 127 128 return Action::state_ptr(_state); 86 129 } 87 130 88 131 Action::state_ptr WorldCenterOnEdgeAction::performRedo(Action::state_ptr _state){ 89 return Action::failure; 132 WorldCenterOnEdgeState *state = assert_cast<WorldCenterOnEdgeState*>(_state.get()); 133 134 // set new box size 135 RealSpaceMatrix rmatrix; 136 for (int i=0;i<NDIM;i++) { 137 double tmp = state->Max[i]-state->Min[i]; 138 tmp = fabs(tmp)>=1. ? tmp : 1.0; 139 rmatrix.at(i,i) = tmp; 140 } 141 World::getInstance().setDomain(rmatrix); 142 // translate all atoms, such that Min is aty (0,0,0) 143 std::vector<atom *> AllAtoms = World::getInstance().getAllAtoms(); 144 for (vector<atom*>::iterator AtomRunner = AllAtoms.begin(); 145 AtomRunner != AllAtoms.end(); 146 ++AtomRunner) 147 *(*AtomRunner) -= state->Min; 148 149 // give final box size 150 LOG(0, "Box domain is again " << World::getInstance().getDomain().getM()); 151 152 return Action::state_ptr(_state); 90 153 } 91 154 92 155 bool WorldCenterOnEdgeAction::canUndo() { 93 return false;156 return true; 94 157 } 95 158 96 159 bool WorldCenterOnEdgeAction::shouldUndo() { 97 return false;160 return true; 98 161 } 99 162 /** =========== end of function ====================== */ -
src/Actions/WorldAction/CenterOnEdgeAction.def
r752bb4 r360c8b 7 7 8 8 // all includes and forward declarations necessary for non-integral types below 9 9 #include "LinearAlgebra/Vector.hpp" 10 10 11 11 // i.e. there is an integer with variable name Z that can be found in … … 18 18 #undef paramreferences 19 19 20 # undef statetypes21 # undef statereferences20 #define statetypes (std::string)(Vector)(Vector) 21 #define statereferences (undostring)(Min)(Max) 22 22 23 23 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/WorldAction/ChangeBoxAction.cpp
r752bb4 r360c8b 18 18 #endif 19 19 20 // include headers that implement a archive in simple text format 21 #include <boost/archive/text_oarchive.hpp> 22 #include <boost/archive/text_iarchive.hpp> 23 #include "boost/serialization/vector.hpp" 24 20 25 #include "CodePatterns/MemDebug.hpp" 21 26 22 27 #include "CodePatterns/Log.hpp" 23 28 #include "CodePatterns/Verbose.hpp" 29 #include "LinearAlgebra/MatrixContent.hpp" 30 #include "LinearAlgebra/RealSpaceMatrix.hpp" 24 31 #include "World.hpp" 25 32 #include "Box.hpp" 26 #include "LinearAlgebra/RealSpaceMatrix.hpp"27 33 28 34 #include <iostream> … … 41 47 getParametersfromValueStorage(); 42 48 49 // create undo state 50 std::stringstream undostream; 51 boost::archive::text_oarchive oa(undostream); 52 const RealSpaceMatrix &matrix = World::getInstance().getDomain().getM(); 53 oa << matrix; 54 43 55 World::getInstance().setDomain(params.cell_size.getM()); // this is needed as only this function is OBSERVEd. 44 56 … … 46 58 LOG(0, "Box domain is now " << World::getInstance().getDomain().getM()); 47 59 48 return Action::success; 60 // create undo state 61 WorldChangeBoxState *UndoState = 62 new WorldChangeBoxState( 63 undostream.str(), 64 params 65 ); 66 67 return Action::state_ptr(UndoState); 49 68 } 50 69 51 70 Action::state_ptr WorldChangeBoxAction::performUndo(Action::state_ptr _state) { 52 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get());71 WorldChangeBoxState *state = assert_cast<WorldChangeBoxState*>(_state.get()); 53 72 54 return Action::failure; 55 // string newName = state->mol->getName(); 56 // state->mol->setName(state->lastName); 57 // 58 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 73 // restore domain 74 RealSpaceMatrix matrix; 75 std::stringstream undostream(state->undostring); 76 boost::archive::text_iarchive ia(undostream); 77 ia >> matrix; 78 World::getInstance().setDomain(matrix); 79 80 // give final box size 81 LOG(0, "Box domain restored to " << World::getInstance().getDomain().getM()); 82 83 return Action::state_ptr(_state); 59 84 } 60 85 61 86 Action::state_ptr WorldChangeBoxAction::performRedo(Action::state_ptr _state){ 62 return Action::failure; 87 World::getInstance().setDomain(params.cell_size.getM()); // this is needed as only this function is OBSERVEd. 88 89 // give final box size 90 LOG(0, "Box domain is again " << World::getInstance().getDomain().getM()); 91 92 return Action::state_ptr(_state); 63 93 } 64 94 65 95 bool WorldChangeBoxAction::canUndo() { 66 return false;96 return true; 67 97 } 68 98 69 99 bool WorldChangeBoxAction::shouldUndo() { 70 return false;100 return true; 71 101 } 72 102 /** =========== end of function ====================== */ -
src/Actions/WorldAction/ChangeBoxAction.def
r752bb4 r360c8b 19 19 #define paramreferences (cell_size) 20 20 21 # undef statetypes22 # undef statereferences21 #define statetypes (std::string) 22 #define statereferences (undostring) 23 23 24 24 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/WorldAction/RepeatBoxAction.cpp
r752bb4 r360c8b 31 31 32 32 #include <iostream> 33 #include <set> 33 34 #include <string> 34 35 #include <vector> … … 42 43 #include "Action_impl_pre.hpp" 43 44 /** =========== define the function ====================== */ 44 Action::state_ptr WorldRepeatBoxAction::performCall() { 45 46 void repeatMoleculesinDomain(Vector Repeater, const std::vector<molecule *> &AllMolecules) 47 { 45 48 int count; 46 49 const element ** Elements; 47 molecule *mol = NULL;48 50 int j = 0; 49 51 atom *Walker = NULL; 50 52 MoleculeListClass *molecules = World::getInstance().getMolecules(); 51 53 52 // obtain information 53 getParametersfromValueStorage(); 54 55 vector<molecule *> AllMolecules; 56 if (mol != NULL) { 57 DoLog(0) && (Log() << Verbose(0) << "Using molecule " << mol->name << "." << endl); 58 AllMolecules = World::getInstance().getAllMolecules(MoleculeByPtr(mol)); 59 } else { 60 DoLog(0) && (Log() << Verbose(0) << "Using all molecules." << endl); 61 AllMolecules = World::getInstance().getAllMolecules(); 62 } 63 64 (cout << "Repeating box " << params.Repeater << " times for (x,y,z) axis." << endl); 54 LOG(0, "STATUS: Repeating box " << Repeater << " times for (x,y,z) axis."); 55 56 // set new domain 65 57 RealSpaceMatrix M = World::getInstance().getDomain().getM(); 66 58 RealSpaceMatrix newM = M; … … 69 61 RealSpaceMatrix repMat; 70 62 for (int axis = 0; axis < NDIM; axis++) { 71 params.Repeater[axis] = floor(params.Repeater[axis]);72 if ( params.Repeater[axis] < 1) {73 DoeLog(1) && (eLog()<< Verbose(1) << "Repetition factor must be greater than 1!" << endl);74 params.Repeater[axis] = 1;63 Repeater[axis] = floor(Repeater[axis]); 64 if (Repeater[axis] < 1) { 65 ELOG(1, "Repetition factor must be greater than 1!"); 66 Repeater[axis] = 1; 75 67 } 76 repMat.at(axis,axis) = params.Repeater[axis];68 repMat.at(axis,axis) = Repeater[axis]; 77 69 } 78 70 newM *= repMat; 79 71 World::getInstance().setDomain(newM); 80 72 73 // add molecules in each repeated domain part 81 74 molecule *newmol = NULL; 82 75 std::vector<Vector> vectors; 83 for (n[0] = 0; n[0] < params.Repeater[0]; n[0]++) {76 for (n[0] = 0; n[0] < Repeater[0]; n[0]++) { 84 77 y[0] = n[0]; 85 for (n[1] = 0; n[1] < params.Repeater[1]; n[1]++) {78 for (n[1] = 0; n[1] < Repeater[1]; n[1]++) { 86 79 y[1] = n[1]; 87 for (n[2] = 0; n[2] < params.Repeater[2]; n[2]++) {80 for (n[2] = 0; n[2] < Repeater[2]; n[2]++) { 88 81 y[2] = n[2]; 89 82 if ((n[0] == 0) && (n[1] == 0) && (n[2] == 0)) 90 83 continue; 91 for (vector<molecule *>:: iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) {92 mol = *MolRunner;93 DoLog(1) && (Log() << Verbose(1) << "Current mol is " << mol->name << "." << endl);84 for (vector<molecule *>::const_iterator MolRunner = AllMolecules.begin(); MolRunner != AllMolecules.end(); ++MolRunner) { 85 const molecule *mol = *MolRunner; 86 LOG(2, "INFO: Current mol is " << mol->name << "."); 94 87 count = mol->getAtomCount(); // is changed becausing of adding, thus has to be stored away beforehand 95 88 if (count != 0) { // if there is more than none … … 97 90 vectors.resize(count); 98 91 j = 0; 99 for(molecule:: iterator AtomRunner = mol->begin(); AtomRunner != mol->end(); ++AtomRunner) {92 for(molecule::const_iterator AtomRunner = mol->begin(); AtomRunner != mol->end(); ++AtomRunner) { 100 93 Elements[j] = (*AtomRunner)->getType(); 101 94 vectors[j] = (*AtomRunner)->getPosition(); … … 103 96 } 104 97 if (count != j) 105 DoeLog(1) && (eLog()<< Verbose(1) << "AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!" << endl);98 ELOG(1, "AtomCount " << count << " is not equal to number of atoms in molecule " << j << "!"); 106 99 x = y; 107 100 x *= M; 108 101 newmol = World::getInstance().createMolecule(); 102 // TODO: Remove this when World don't has deprecated MoleculeListClass anymore 109 103 molecules->insert(newmol); 110 104 for (int k=count;k--;) { // go through every atom of the original cell … … 118 112 delete[](Elements); 119 113 } else { 120 DoLog(1) && (Log() << Verbose(1) << "\t ... is empty." << endl);114 LOG(1, "\t ... is empty."); 121 115 } 122 116 } … … 124 118 } 125 119 } 120 } 121 122 Action::state_ptr WorldRepeatBoxAction::performCall() { 123 molecule *mol = NULL; 124 125 // obtain information 126 getParametersfromValueStorage(); 127 128 std::vector<molecule *> AllMolecules; 129 if (mol != NULL) { 130 DoLog(0) && (Log() << Verbose(0) << "Using molecule " << mol->name << "." << endl); 131 AllMolecules = World::getInstance().getAllMolecules(MoleculeByPtr(mol)); 132 } else { 133 DoLog(0) && (Log() << Verbose(0) << "Using all molecules." << endl); 134 AllMolecules = World::getInstance().getAllMolecules(); 135 } 136 137 // prepare undo state 138 RealSpaceMatrix olddomain = World::getInstance().getDomain().getM(); 139 std::set<molecule *> oldmolecules; 140 for(std::vector<molecule *>::const_iterator iter = AllMolecules.begin(); 141 iter != AllMolecules.end(); 142 ++iter) 143 oldmolecules.insert(*iter); 144 WorldRepeatBoxState *undostate = new WorldRepeatBoxState(olddomain, oldmolecules, params); 145 146 repeatMoleculesinDomain(params.Repeater, AllMolecules); 126 147 127 148 // give final box size 128 149 LOG(0, "Box domain is now " << World::getInstance().getDomain().getM()); 129 150 130 return Action::s uccess;151 return Action::state_ptr(undostate); 131 152 } 132 153 133 154 Action::state_ptr WorldRepeatBoxAction::performUndo(Action::state_ptr _state) { 134 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get()); 135 136 return Action::failure; 137 // string newName = state->mol->getName(); 138 // state->mol->setName(state->lastName); 139 // 140 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 155 WorldRepeatBoxState *state = assert_cast<WorldRepeatBoxState*>(_state.get()); 156 MoleculeListClass *molecules = World::getInstance().getMolecules(); 157 158 // set old domain 159 World::getInstance().setDomain(state->olddomain); 160 161 // remove all added molecules (and their atoms) 162 std::vector<molecule *> allmolecules = World::getInstance().getAllMolecules(); 163 for (std::vector<molecule *>::iterator iter = allmolecules.begin(); 164 iter != allmolecules.end(); 165 ++iter) { 166 if (state->oldmolecules.find(*iter) == state->oldmolecules.end()) { 167 (*iter)->removeAtomsinMolecule(); 168 // TODO: Remove this when World don't has deprecated MoleculeListClass anymore 169 molecules->erase(*iter); 170 World::getInstance().destroyMolecule(*iter); 171 } 172 } 173 174 // give final box size 175 LOG(0, "Box domain restored to " << World::getInstance().getDomain().getM()); 176 177 return Action::state_ptr(_state); 141 178 } 142 179 143 180 Action::state_ptr WorldRepeatBoxAction::performRedo(Action::state_ptr _state){ 144 return Action::failure; 181 WorldRepeatBoxState *state = assert_cast<WorldRepeatBoxState*>(_state.get()); 182 183 std::vector<molecule *> originalmolecules; 184 for(std::set<molecule *>::const_iterator iter = state->oldmolecules.begin(); 185 iter != state->oldmolecules.end(); 186 ++iter) 187 originalmolecules.push_back(*iter); 188 repeatMoleculesinDomain(state->params.Repeater, originalmolecules); 189 190 // give final box size 191 LOG(0, "Box domain is again " << World::getInstance().getDomain().getM()); 192 193 return Action::state_ptr(_state); 145 194 } 146 195 147 196 bool WorldRepeatBoxAction::canUndo() { 148 return false;197 return true; 149 198 } 150 199 151 200 bool WorldRepeatBoxAction::shouldUndo() { 152 return false;201 return true; 153 202 } 154 203 /** =========== end of function ====================== */ -
src/Actions/WorldAction/RepeatBoxAction.def
r752bb4 r360c8b 8 8 // all includes and forward declarations necessary for non-integral types below 9 9 #include "Actions/Values.hpp" 10 #include "LinearAlgebra/RealSpaceMatrix.hpp" 10 11 #include "LinearAlgebra/Vector.hpp" 12 #include <set> 13 14 class molecule; 11 15 12 16 // i.e. there is an integer with variable name Z that can be found in … … 19 23 #define paramreferences (Repeater) 20 24 21 # undef statetypes22 # undef statereferences25 #define statetypes (RealSpaceMatrix)(std::set< molecule *>) 26 #define statereferences (olddomain)(oldmolecules) 23 27 24 28 // some defines for all the names, you may use ACTION, STATE and PARAMS -
src/Actions/WorldAction/ScaleBoxAction.cpp
r752bb4 r360c8b 22 22 #include "atom.hpp" 23 23 #include "CodePatterns/Log.hpp" 24 #include "LinearAlgebra/RealSpaceMatrix.hpp" 24 25 #include "LinearAlgebra/Vector.hpp" 25 #include "CodePatterns/Verbose.hpp"26 26 #include "World.hpp" 27 27 #include "Box.hpp" 28 #include "LinearAlgebra/RealSpaceMatrix.hpp"29 28 30 29 #include <iostream> 31 30 #include <string> 31 #include <vector> 32 32 33 33 #include "Actions/WorldAction/ScaleBoxAction.hpp" … … 45 45 getParametersfromValueStorage(); 46 46 47 DoLog(1) && (Log() << Verbose(1) << "Scaling all atomic positions by factor." << endl);47 // scale atoms 48 48 for (int i=0;i<NDIM;i++) 49 49 x[i] = params.Scaler[i]; 50 vector<atom*> AllAtoms = World::getInstance().getAllAtoms();51 for( vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) {50 std::vector<atom*> AllAtoms = World::getInstance().getAllAtoms(); 51 for(std::vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) { 52 52 (*AtomRunner)->ScaleAll(x); 53 53 } 54 54 55 // scale box 55 56 RealSpaceMatrix M = World::getInstance().getDomain().getM(); 56 57 RealSpaceMatrix scale; 57 58 58 for (int i=0;i<NDIM;i++) { 59 scale.at(i,i) = x[i];59 scale.at(i,i) = params.Scaler[i]; 60 60 } 61 61 M *= scale; … … 65 65 LOG(0, "Box domain is now " << World::getInstance().getDomain().getM()); 66 66 67 return Action::success; 67 // create undo state 68 WorldScaleBoxState *UndoState = new WorldScaleBoxState(params); 69 70 return Action::state_ptr(UndoState); 68 71 } 69 72 70 73 Action::state_ptr WorldScaleBoxAction::performUndo(Action::state_ptr _state) { 71 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get());74 WorldScaleBoxState *state = assert_cast<WorldScaleBoxState*>(_state.get()); 72 75 73 return Action::failure; 74 // string newName = state->mol->getName(); 75 // state->mol->setName(state->lastName); 76 // 77 // return Action::state_ptr(new ParserLoadXyzState(state->mol,newName)); 76 // scale back atoms 77 double x[NDIM]; 78 for (int i=0;i<NDIM;i++) 79 x[i] = 1./state->params.Scaler[i]; 80 vector<atom*> AllAtoms = World::getInstance().getAllAtoms(); 81 for(vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) { 82 (*AtomRunner)->ScaleAll(x); 83 } 84 85 // scale back box 86 RealSpaceMatrix M = World::getInstance().getDomain().getM(); 87 RealSpaceMatrix scale; 88 for (int i=0;i<NDIM;i++) { 89 scale.at(i,i) = 1./state->params.Scaler[i]; 90 } 91 M *= scale; 92 World::getInstance().setDomain(M); 93 94 // give final box size 95 LOG(0, "Box domain restored to " << World::getInstance().getDomain().getM()); 96 97 return Action::state_ptr(_state); 78 98 } 79 99 80 100 Action::state_ptr WorldScaleBoxAction::performRedo(Action::state_ptr _state){ 81 return Action::failure; 101 WorldScaleBoxState *state = assert_cast<WorldScaleBoxState*>(_state.get()); 102 103 // scale atoms 104 double x[NDIM]; 105 for (int i=0;i<NDIM;i++) 106 x[i] = state->params.Scaler[i]; 107 vector<atom*> AllAtoms = World::getInstance().getAllAtoms(); 108 for(vector<atom*>::iterator AtomRunner = AllAtoms.begin(); AtomRunner != AllAtoms.end(); ++AtomRunner) { 109 (*AtomRunner)->ScaleAll(x); 110 } 111 112 // scale box 113 RealSpaceMatrix M = World::getInstance().getDomain().getM(); 114 RealSpaceMatrix scale; 115 for (int i=0;i<NDIM;i++) { 116 scale.at(i,i) = state->params.Scaler[i]; 117 } 118 M *= scale; 119 World::getInstance().setDomain(M); 120 121 // give final box size 122 LOG(0, "Box domain is again " << World::getInstance().getDomain().getM()); 123 124 return Action::state_ptr(_state); 82 125 } 83 126 84 127 bool WorldScaleBoxAction::canUndo() { 85 return false;128 return true; 86 129 } 87 130 88 131 bool WorldScaleBoxAction::shouldUndo() { 89 return false;132 return true; 90 133 } 91 134 /** =========== end of function ====================== */ -
src/AtomicInfo.cpp
r752bb4 r360c8b 22 22 #include "atom.hpp" 23 23 #include "AtomicInfo.hpp" 24 #include " element.hpp"24 #include "Element/element.hpp" 25 25 #include "LinearAlgebra/Vector.hpp" 26 26 -
src/Bond/bond.cpp
r752bb4 r360c8b 23 23 #include "atom.hpp" 24 24 #include "Bond/bond.hpp" 25 #include " element.hpp"25 #include "Element/element.hpp" 26 26 27 27 -
src/Box.cpp
r752bb4 r360c8b 38 38 39 39 using namespace std; 40 41 VECTORSET(std::list) Box::internal_list; 40 42 41 43 Box::Box() : … … 135 137 VECTORSET(std::list) Box::explode(const Vector &point,int n) const{ 136 138 ASSERT(isInside(point),"Exploded point not inside Box"); 137 VECTORSET(std::list) res; 139 internal_explode(point, n); 140 VECTORSET(std::list) res(internal_list); 141 return res; 142 } 143 144 void Box::internal_explode(const Vector &point,int n) const{ 145 internal_list.clear(); 138 146 139 147 Vector translater = translateOut(point); … … 156 164 if(!dims){ 157 165 // all boundaries are ignored 158 res.push_back(point);159 return res;166 internal_list.push_back(point); 167 return; 160 168 } 161 169 … … 189 197 case Ignore: 190 198 ASSERT(0,"Ignored coordinate handled in generation loop"); 199 break; 191 200 default: 192 201 ASSERT(0,"No default case for this switch-case"); 202 break; 193 203 } 194 204 … … 196 206 // add back all ignored coordinates (not handled in above loop) 197 207 helper+=mask; 198 res.push_back(translateIn(helper));208 internal_list.push_back(translateIn(helper)); 199 209 // set the new indexes 200 210 int pos=0; … … 209 219 } 210 220 } 211 return res;212 221 } 213 222 … … 218 227 219 228 double Box::periodicDistanceSquared(const Vector &point1,const Vector &point2) const{ 220 Vector helper1 = WrapPeriodically(point1);221 Vector helper2 = WrapPeriodically(point2);222 VECTORSET(std::list) expansion = explode(helper1);223 double res = expansion.minDistSquared(helper2);229 Vector helper1(!isInside(point1) ? WrapPeriodically(point1) : point1); 230 Vector helper2(!isInside(point2) ? WrapPeriodically(point2) : point2); 231 internal_explode(helper1,1); 232 double res = internal_list.minDistSquared(helper2); 224 233 return res; 225 234 } -
src/Box.hpp
r752bb4 r360c8b 122 122 123 123 private: 124 /** Internal explode function that works on the staticly present internal_list 125 * 126 * \todo Note that is not thread-safe! 127 * 128 * Most of the time of explode is consumed by memory allocation if it is called 129 * repeatedly. 130 * 131 * @param point point to explode 132 * @param n neighbour shells to explode 133 */ 134 void internal_explode(const Vector &point,int n) const; 135 136 //!> Internal vector list for exploding vectors and checking. 137 static VECTORSET(std::list) internal_list; 138 124 139 Conditions_t conditions; 125 140 RealSpaceMatrix *M; //!< Defines the layout of the box -
src/Descriptors/AtomIdDescriptor.hpp
r752bb4 r360c8b 15 15 16 16 17 #include " Helpers/defs.hpp"17 #include "types.hpp" 18 18 #include "Descriptors/AtomDescriptor.hpp" 19 19 -
src/Descriptors/AtomTypeDescriptor.cpp
r752bb4 r360c8b 25 25 #include "atom.hpp" 26 26 #include "World.hpp" 27 #include " periodentafel.hpp"27 #include "Element/periodentafel.hpp" 28 28 29 29 AtomTypeDescriptor_impl::AtomTypeDescriptor_impl(const element* _type) : -
src/Dynamics/LinearInterpolationBetweenSteps.hpp
r752bb4 r360c8b 25 25 #include "Dynamics/MinimiseConstrainedPotential.hpp" 26 26 #include "molecule.hpp" 27 #include "parser.hpp"28 27 #include "World.hpp" 29 28 -
src/Dynamics/MinimiseConstrainedPotential.cpp
r752bb4 r360c8b 26 26 #include "atom.hpp" 27 27 #include "config.hpp" 28 #include " element.hpp"28 #include "Element/element.hpp" 29 29 #include "CodePatterns/enumeration.hpp" 30 30 #include "CodePatterns/Info.hpp" 31 31 #include "CodePatterns/Verbose.hpp" 32 32 #include "CodePatterns/Log.hpp" 33 #include "Fragmentation/ForceMatrix.hpp" 33 34 #include "Helpers/helpers.hpp" 34 35 #include "molecule.hpp" 35 #include "parser.hpp"36 36 #include "LinearAlgebra/Plane.hpp" 37 37 #include "World.hpp" -
src/Dynamics/VerletForceIntegration.hpp
r752bb4 r360c8b 21 21 #include "CodePatterns/Verbose.hpp" 22 22 #include "Dynamics/MinimiseConstrainedPotential.hpp" 23 #include "Fragmentation/ForceMatrix.hpp" 23 24 #include "Helpers/helpers.hpp" 24 25 #include "LinearAlgebra/Vector.hpp" 25 #include "parser.hpp"26 26 #include "ThermoStatContainer.hpp" 27 27 #include "Thermostats/Berendsen.hpp" -
src/Formula.cpp
r752bb4 r360c8b 25 25 26 26 #include "World.hpp" 27 #include " periodentafel.hpp"28 #include " element.hpp"27 #include "Element/periodentafel.hpp" 28 #include "Element/element.hpp" 29 29 #include "CodePatterns/Assert.hpp" 30 30 #include "CodePatterns/Range.hpp" -
src/Graph/BondGraph.cpp
r752bb4 r360c8b 26 26 #include "Graph/BondGraph.hpp" 27 27 #include "Box.hpp" 28 #include " element.hpp"28 #include "Element/element.hpp" 29 29 #include "CodePatterns/Info.hpp" 30 30 #include "CodePatterns/Log.hpp" … … 32 32 #include "CodePatterns/Verbose.hpp" 33 33 #include "molecule.hpp" 34 #include " parser.hpp"35 #include " periodentafel.hpp"34 #include "Element/periodentafel.hpp" 35 #include "Fragmentation/MatrixContainer.hpp" 36 36 #include "LinearAlgebra/Vector.hpp" 37 37 #include "World.hpp" … … 39 39 40 40 const double BondGraph::BondThreshold = 0.4; //!< CSD threshold in bond check which is the width of the interval whose center is the sum of the covalent radii 41 42 BondGraph::BondGraph() : 43 BondLengthMatrix(NULL), 44 IsAngstroem(true) 45 {} 41 46 42 47 BondGraph::BondGraph(bool IsA) : … … 47 52 BondGraph::~BondGraph() 48 53 { 54 CleanupBondLengthTable(); 55 } 56 57 void BondGraph::CleanupBondLengthTable() 58 { 49 59 if (BondLengthMatrix != NULL) { 50 60 delete(BondLengthMatrix); … … 63 73 LOG(1, "MatrixContainer for Bond length already present, removing."); 64 74 delete(BondLengthMatrix); 75 BondLengthMatrix = NULL; 65 76 } 66 77 TempContainer = new MatrixContainer; … … 164 175 int n[NDIM]; 165 176 Box &domain = World::getInstance().getDomain(); 177 size_t CurrentTime = WorldTime::getTime(); 166 178 167 179 unsigned int BondCount = 0; … … 191 203 ASSERT(OtherWalker != NULL, 192 204 "BondGraph::CreateAdjacency() - TesselPoint that was not an atom retrieved from LinkedNode"); 193 const range<double> MinMaxDistanceSquared(194 getMinMaxDistanceSquared(Walker, OtherWalker));195 const double distance = domain.periodicDistanceSquared(OtherWalker->getPosition(),Walker->getPosition());196 LOG(2, "INFO: Checking squared distance " << distance << " against typical bond length of " << MinMaxDistanceSquared << ".");197 const bool status = MinMaxDistanceSquared.isInRange(distance);198 205 if (OtherWalker->father > Walker->father ) { // just to not add bonds from both sides 206 const range<double> MinMaxDistanceSquared( 207 getMinMaxDistanceSquared(Walker, OtherWalker)); 208 const double distance = domain.periodicDistanceSquared(OtherWalker->getPosition(),Walker->getPosition()); 209 LOG(3, "INFO: Checking squared distance " << distance << " against typical bond length of " << MinMaxDistanceSquared << "."); 210 const bool status = MinMaxDistanceSquared.isInRange(distance); 199 211 if (status) { // create bond if distance is smaller 200 212 LOG(1, "ACCEPT: Adding Bond between " << *Walker << " and " << *OtherWalker << " in distance " << sqrt(distance) << "."); 201 213 //const bond * Binder = 202 Walker->father->addBond( WorldTime::getTime(), OtherWalker->father);214 Walker->father->addBond(CurrentTime, OtherWalker->father); 203 215 BondCount++; 204 216 } else { 205 LOG( 1, "REJECT: Squared distance "217 LOG(2, "REJECT: Squared distance " 206 218 << distance << " is out of squared covalent bounds " 207 219 << MinMaxDistanceSquared << "."); … … 222 234 } 223 235 236 bool BondGraph::operator==(const BondGraph &other) const 237 { 238 if (IsAngstroem != other.IsAngstroem) 239 return false; 240 if (((BondLengthMatrix != NULL) && (other.BondLengthMatrix == NULL)) 241 || ((BondLengthMatrix == NULL) && (other.BondLengthMatrix != NULL))) 242 return false; 243 if ((BondLengthMatrix != NULL) && (other.BondLengthMatrix != NULL)) 244 if (*BondLengthMatrix != *other.BondLengthMatrix) 245 return false; 246 return true; 247 } -
src/Graph/BondGraph.hpp
r752bb4 r360c8b 20 20 #include <iosfwd> 21 21 22 #include <boost/serialization/array.hpp> 23 22 24 #include "AtomSet.hpp" 23 25 #include "Bond/bond.hpp" … … 26 28 #include "CodePatterns/Range.hpp" 27 29 #include "CodePatterns/Verbose.hpp" 28 #include "element.hpp" 30 #include "Element/element.hpp" 31 #include "Fragmentation/MatrixContainer.hpp" 29 32 #include "linkedcell.hpp" 30 33 #include "IPointCloud.hpp" … … 65 68 */ 66 69 bool LoadBondLengthTable(std::istream &input); 70 71 /** Removes allocated bond length table. 72 * 73 */ 74 void CleanupBondLengthTable(); 67 75 68 76 /** Determines the maximum of all element::CovalentRadius for elements present in \a &Set. … … 300 308 } 301 309 310 /** Equality comparator for class BondGraph. 311 * 312 * @param other other instance to compare to 313 * @return true - if equal in every member variable, except static 314 * \a BondGraph::BondThreshold. 315 */ 316 bool operator==(const BondGraph &other) const; 317 318 /** Unequality comparator for class BondGraph. 319 * 320 * @param other other instance to compare to 321 * @return false - if equal in every member variable, except static 322 * \a BondGraph::BondThreshold. 323 */ 324 bool operator!=(const BondGraph &other) const { 325 return !(*this == other); 326 } 327 302 328 private: 303 static const double BondThreshold;304 329 305 330 /** Returns the BondLengthMatrix entry for a given index pair. … … 383 408 } 384 409 410 bool operator==(const periodentafel &other) const; 411 412 bool operator!=(const periodentafel &other) const { 413 return !(*this == other); 414 } 415 416 private: 417 // default constructor for serialization 418 BondGraph(); 419 420 friend class boost::serialization::access; 421 // serialization 422 template<class Archive> 423 void serialize(Archive & ar, const unsigned int version) 424 { 425 //ar & const_cast<double &>(BondThreshold); 426 ar & BondLengthMatrix; 427 ar & IsAngstroem; 428 } 429 430 //!> half width of the interval for allowed bond distances 431 static const double BondThreshold; 385 432 //!> Matrix with bond lenth per two elements 386 433 MatrixContainer *BondLengthMatrix; -
src/Graph/CyclicStructureAnalysis.cpp
r752bb4 r360c8b 28 28 #include "CodePatterns/Log.hpp" 29 29 #include "CodePatterns/Verbose.hpp" 30 #include " element.hpp"30 #include "Element/element.hpp" 31 31 #include "molecule.hpp" 32 32 -
src/Helpers/defs.hpp
r752bb4 r360c8b 5 5 */ 6 6 7 #ifndef DEFS_HPP_8 #define DEFS_HPP_7 #ifndef HELPERS_DEFS_HPP_ 8 #define HELPERS_DEFS_HPP_ 9 9 10 10 // include config.h … … 89 89 const extern unsigned int MAX_FRAGMENTATION_SKIPS; 90 90 91 #endif /* DEFS_HPP_*/91 #endif /* HELPERS_DEFS_HPP_*/ -
src/Helpers/helpers.hpp
r752bb4 r360c8b 4 4 */ 5 5 6 #ifndef HELPERS_H PP_7 #define HELPERS_H PP_6 #ifndef HELPERS_HELPERS_HPP_ 7 #define HELPERS_HELPERS_HPP_ 8 8 9 9 using namespace std; … … 51 51 }; 52 52 53 #endif /* HELPERS_HPP_*/53 #endif /* HELPERS_HELPERS_HPP_*/ -
src/Makefile.am
r752bb4 r360c8b 8 8 9 9 include Actions/Makefile.am 10 include Analysis/Makefile.am 11 include Element/Makefile.am 10 12 include Graph/Makefile.am 13 include Helpers/Makefile.am 14 include Fragmentation/Makefile.am 11 15 include Parser/Makefile.am 12 16 include RandomNumbers/Makefile.am … … 38 42 AtomicInfo.hpp \ 39 43 AtomSet.hpp 40 41 ANALYSISSOURCE = \42 analysis_bonds.cpp \43 analysis_correlation.cpp44 ANALYSISHEADER = \45 analysis_bonds.hpp \46 analysis_correlation.hpp47 44 48 45 BONDSOURCE = \ … … 116 113 Dynamics/VerletForceIntegration.hpp 117 114 118 HELPERSSOURCE = \119 Helpers/defs.cpp120 121 HELPERSHEADER = \122 Helpers/defs.hpp \123 Helpers/helpers.hpp124 125 115 THERMOSTATSOURCE = \ 126 116 Thermostats/Berendsen.cpp \ … … 142 132 143 133 TESSELATIONSOURCE = \ 144 BoundaryLineSet.cpp \ 145 BoundaryPointSet.cpp \ 146 BoundaryPolygonSet.cpp \ 147 BoundaryTriangleSet.cpp \ 148 CandidateForTesselation.cpp \ 149 tesselation.cpp \ 150 tesselationhelpers.cpp \ 151 TesselPoint.cpp 134 Tesselation/boundary.cpp \ 135 Tesselation/BoundaryLineSet.cpp \ 136 Tesselation/BoundaryPointSet.cpp \ 137 Tesselation/BoundaryPolygonSet.cpp \ 138 Tesselation/BoundaryTriangleSet.cpp \ 139 Tesselation/CandidateForTesselation.cpp \ 140 Tesselation/ellipsoid.cpp \ 141 Tesselation/tesselation.cpp \ 142 Tesselation/tesselationhelpers.cpp \ 143 Tesselation/TesselPoint.cpp \ 144 Tesselation/triangleintersectionlist.cpp 152 145 153 146 TESSELATIONHEADER = \ 154 BoundaryLineSet.hpp \ 155 BoundaryMaps.hpp \ 156 BoundaryPointSet.hpp \ 157 BoundaryPolygonSet.hpp \ 158 BoundaryTriangleSet.hpp \ 159 CandidateForTesselation.hpp \ 147 Tesselation/boundary.hpp \ 148 Tesselation/BoundaryLineSet.hpp \ 149 Tesselation/BoundaryMaps.hpp \ 150 Tesselation/BoundaryPointSet.hpp \ 151 Tesselation/BoundaryPolygonSet.hpp \ 152 Tesselation/BoundaryTriangleSet.hpp \ 153 Tesselation/CandidateForTesselation.hpp \ 154 Tesselation/ellipsoid.hpp \ 160 155 IPointCloud.hpp \ 161 156 PointCloudAdaptor.hpp \ 162 tesselation.hpp \ 163 tesselationhelpers.hpp \ 164 TesselPoint.hpp 157 Tesselation/tesselation.hpp \ 158 Tesselation/tesselationhelpers.hpp \ 159 Tesselation/TesselPoint.hpp \ 160 Tesselation/triangleintersectionlist.hpp 165 161 166 162 MOLECUILDERSOURCE = \ 167 ${ANALYSISSOURCE} \168 163 ${ATOMSOURCE} \ 169 164 ${BONDSOURCE} \ 170 165 ${DESCRIPTORSOURCE} \ 171 166 ${DYNAMICSSOURCE} \ 172 ${HELPERSSOURCE} \173 167 ${THERMOSTATSOURCE} \ 174 168 ${TESSELATIONSOURCE} \ 175 boundary.cpp \176 169 Box.cpp \ 177 170 config.cpp \ 178 171 ConfigFileBuffer.cpp \ 179 element.cpp \180 elements_db.cpp \181 ellipsoid.cpp \182 172 Formula.cpp \ 183 173 graph.cpp \ … … 188 178 molecule_geometry.cpp \ 189 179 molecule_graph.cpp \ 190 parser.cpp \191 periodentafel.cpp \192 180 ThermoStatContainer.cpp \ 193 triangleintersectionlist.cpp \194 181 UIElements/UIFactory.cpp \ 195 182 version.c \ … … 198 185 199 186 MOLECUILDERHEADER = \ 200 ${ANALYSISHEADER} \201 187 ${ATOMHEADER} \ 202 188 ${BONDHEADER} \ … … 204 190 ${DESCRIPTORIMPLHEADER} \ 205 191 ${DYNAMICSHEADER} \ 206 ${HELPERSHEADER} \207 192 ${THERMOSTATHEADER} \ 208 193 ${TESSELATIONHEADER} \ 209 boundary.hpp \210 194 Box.hpp \ 211 195 config.hpp \ 212 196 ConfigFileBuffer.hpp \ 213 element.hpp \214 elements_db.hpp \215 ellipsoid.hpp \216 197 Formula.hpp \ 217 198 graph.hpp \ 218 199 linkedcell.hpp \ 219 200 molecule.hpp \ 220 parser.hpp \221 periodentafel.hpp \222 201 ThermoStatContainer.hpp \ 223 triangleintersectionlist.hpp \224 202 types.hpp \ 225 203 UIElements/UIFactory.hpp \ … … 281 259 libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER} 282 260 283 molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.dbHbondangle.db261 molecuilder_DATA = Element/elements.db Element/valence.db Element/orbitals.db Element/Hbonddistance.db Element/Hbondangle.db 284 262 285 263 molecuilder_CXXFLAGS = $(AM_CPPFLAGS) … … 313 291 $(GUI_LIBS) 314 292 315 joiner_SOURCES = joiner.cpp datacreator.cpp datacreator.hpp periodentafel.hpp293 joiner_SOURCES = Fragmentation/joiner.cpp Fragmentation/datacreator.cpp Fragmentation/datacreator.hpp 316 294 joiner_LDADD = \ 317 libMolecuilder.la \ 318 libMolecuilderParser.la \ 319 libMolecuilderShapes.la \ 320 libMolecuilderRandomNumbers.la \ 295 libMolecuilderFragmentation.la \ 296 libMolecuilderHelpers.la \ 297 libMolecuilderElement.la \ 321 298 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 322 299 ${CodePatterns_LIBS} \ 323 300 $(BOOST_THREAD_LIBS) 324 301 325 analyzer_SOURCES = analyzer.cpp datacreator.cpp periodentafel.hpp datacreator.hpp302 analyzer_SOURCES = Fragmentation/analyzer.cpp Fragmentation/datacreator.cpp Fragmentation/datacreator.hpp 326 303 analyzer_LDADD = \ 327 libMolecuilder.la \ 328 libMolecuilderParser.la \ 329 libMolecuilderShapes.la \ 330 libMolecuilderRandomNumbers.la \ 304 libMolecuilderFragmentation.la \ 305 libMolecuilderHelpers.la \ 306 libMolecuilderElement.la \ 331 307 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 332 308 ${CodePatterns_LIBS} \ -
src/Parser/MpqcParser.cpp
r752bb4 r360c8b 29 29 #include "atom.hpp" 30 30 #include "config.hpp" 31 #include " element.hpp"31 #include "Element/element.hpp" 32 32 #include "molecule.hpp" 33 33 #include "CodePatterns/Log.hpp" … … 35 35 #include "CodePatterns/Verbose.hpp" 36 36 #include "LinearAlgebra/Vector.hpp" 37 #include " periodentafel.hpp"37 #include "Element/periodentafel.hpp" 38 38 #include "World.hpp" 39 39 -
src/Parser/PcpParser.cpp
r752bb4 r360c8b 27 27 #include "config.hpp" 28 28 #include "ConfigFileBuffer.hpp" 29 #include " element.hpp"29 #include "Element/element.hpp" 30 30 #include "CodePatterns/Assert.hpp" 31 31 #include "CodePatterns/Log.hpp" … … 34 34 #include "molecule.hpp" 35 35 #include "PcpParser.hpp" 36 #include " periodentafel.hpp"36 #include "Element/periodentafel.hpp" 37 37 #include "ThermoStatContainer.hpp" 38 38 #include "World.hpp" -
src/Parser/PdbParser.cpp
r752bb4 r360c8b 28 28 #include "atom.hpp" 29 29 #include "Bond/bond.hpp" 30 #include " element.hpp"30 #include "Element/element.hpp" 31 31 #include "molecule.hpp" 32 #include " periodentafel.hpp"32 #include "Element/periodentafel.hpp" 33 33 #include "Descriptors/AtomIdDescriptor.hpp" 34 34 #include "Parser/PdbParser.hpp" -
src/Parser/Psi3Parser.cpp
r752bb4 r360c8b 29 29 #include "atom.hpp" 30 30 #include "config.hpp" 31 #include "element.hpp" 31 #include "Element/element.hpp" 32 #include "Element/periodentafel.hpp" 32 33 #include "molecule.hpp" 33 34 #include "CodePatterns/Log.hpp" … … 35 36 #include "CodePatterns/Verbose.hpp" 36 37 #include "LinearAlgebra/Vector.hpp" 37 #include "periodentafel.hpp"38 38 #include "World.hpp" 39 39 -
src/Parser/TremoloParser.cpp
r752bb4 r360c8b 29 29 #include "atom.hpp" 30 30 #include "Bond/bond.hpp" 31 #include " element.hpp"31 #include "Element/element.hpp" 32 32 #include "molecule.hpp" 33 #include " periodentafel.hpp"33 #include "Element/periodentafel.hpp" 34 34 #include "Descriptors/AtomIdDescriptor.hpp" 35 35 #include <map> -
src/Parser/XyzParser.cpp
r752bb4 r360c8b 28 28 #include "atom.hpp" 29 29 #include "molecule.hpp" 30 #include " element.hpp"31 #include " periodentafel.hpp"30 #include "Element/element.hpp" 31 #include "Element/periodentafel.hpp" 32 32 33 33 using namespace std; -
src/Parser/unittests/ParserMpqcUnitTest.cpp
r752bb4 r360c8b 28 28 #include "World.hpp" 29 29 #include "atom.hpp" 30 #include " element.hpp"31 #include " periodentafel.hpp"30 #include "Element/element.hpp" 31 #include "Element/periodentafel.hpp" 32 32 #include "Descriptors/AtomTypeDescriptor.hpp" 33 33 #include "CodePatterns/Assert.hpp" -
src/Parser/unittests/ParserPcpUnitTest.cpp
r752bb4 r360c8b 26 26 #include "World.hpp" 27 27 #include "atom.hpp" 28 #include " element.hpp"29 #include " periodentafel.hpp"28 #include "Element/element.hpp" 29 #include "Element/periodentafel.hpp" 30 30 #include "CodePatterns/Log.hpp" 31 31 #include "Descriptors/AtomTypeDescriptor.hpp" -
src/Parser/unittests/ParserPdbUnitTest.cpp
r752bb4 r360c8b 26 26 #include "World.hpp" 27 27 #include "atom.hpp" 28 #include " element.hpp"29 #include " periodentafel.hpp"28 #include "Element/element.hpp" 29 #include "Element/periodentafel.hpp" 30 30 #include "CodePatterns/Log.hpp" 31 31 #include "Descriptors/AtomTypeDescriptor.hpp" -
src/Parser/unittests/ParserPsi3UnitTest.cpp
r752bb4 r360c8b 26 26 #include <boost/any.hpp> 27 27 28 #include "World.hpp" 28 #include "CodePatterns/Assert.hpp" 29 29 30 #include "atom.hpp" 30 #include "element.hpp"31 #include "periodentafel.hpp"32 31 #include "Descriptors/AtomTypeDescriptor.hpp" 33 #include "CodePatterns/Assert.hpp" 32 #include "Element/element.hpp" 33 #include "Element/periodentafel.hpp" 34 34 #include "Parser/ChangeTracker.hpp" 35 35 #include "Parser/Psi3Parser.hpp" 36 #include "World.hpp" 36 37 37 38 #ifdef HAVE_TESTRUNNER -
src/Parser/unittests/ParserTremoloUnitTest.cpp
r752bb4 r360c8b 26 26 #include "atom.hpp" 27 27 #include "Descriptors/AtomTypeDescriptor.hpp" 28 #include "element.hpp" 28 #include "Element/element.hpp" 29 #include "Element/periodentafel.hpp" 29 30 #include "Parser/TremoloParser.hpp" 30 31 #include "Parser/ChangeTracker.hpp" 31 #include "periodentafel.hpp"32 32 #include "World.hpp" 33 33 #include "WorldTime.hpp" -
src/Parser/unittests/ParserXyzUnitTest.cpp
r752bb4 r360c8b 26 26 #include "World.hpp" 27 27 #include "atom.hpp" 28 #include " element.hpp"29 #include " periodentafel.hpp"28 #include "Element/element.hpp" 29 #include "Element/periodentafel.hpp" 30 30 #include "CodePatterns/Log.hpp" 31 31 #include "Descriptors/AtomTypeDescriptor.hpp" -
src/PointCloudAdaptor.hpp
r752bb4 r360c8b 16 16 #include "CodePatterns/Assert.hpp" 17 17 #include "IPointCloud.hpp" 18 #include "Tessel Point.hpp"18 #include "Tesselation/TesselPoint.hpp" 19 19 #include "LinearAlgebra/Vector.hpp" 20 20 -
src/RandomNumbers/unittests/Makefile.am
r752bb4 r360c8b 30 30 31 31 RANDOMNUMBERLIBS = \ 32 ${CodePatterns_LIBS} 33 # $(BOOST_LIB) 32 ../libMolecuilderRandomNumbers.la \ 33 ${CodePatterns_LIBS} \ 34 $(BOOST_LIB) 34 35 35 36 RandomNumberDistributionFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 36 37 ../RandomNumbers/unittests/RandomNumberDistributionFactoryUnitTest.cpp \ 37 38 ../RandomNumbers/unittests/RandomNumberDistributionFactoryUnitTest.hpp 38 RandomNumberDistributionFactoryUnitTest_LDADD = ${RANDOMNUMBERLIBS} \ 39 ../libMolecuilderRandomNumbers.la 39 RandomNumberDistributionFactoryUnitTest_LDADD = ${RANDOMNUMBERLIBS} 40 40 41 41 RandomNumberEngineFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 42 42 ../RandomNumbers/unittests/RandomNumberEngineFactoryUnitTest.cpp \ 43 43 ../RandomNumbers/unittests/RandomNumberEngineFactoryUnitTest.hpp 44 RandomNumberEngineFactoryUnitTest_LDADD = ${RANDOMNUMBERLIBS} \ 45 ../libMolecuilderRandomNumbers.la 44 RandomNumberEngineFactoryUnitTest_LDADD = ${RANDOMNUMBERLIBS} 46 45 47 46 RandomNumberGeneratorFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 48 47 ../RandomNumbers/unittests/RandomNumberGeneratorFactoryUnitTest.cpp \ 49 48 ../RandomNumbers/unittests/RandomNumberGeneratorFactoryUnitTest.hpp 50 RandomNumberGeneratorFactoryUnitTest_LDADD = ${RANDOMNUMBERLIBS} \ 51 ../libMolecuilderRandomNumbers.la 49 RandomNumberGeneratorFactoryUnitTest_LDADD = ${RANDOMNUMBERLIBS} 52 50 53 51 RandomNumberGeneratorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 54 52 ../RandomNumbers/unittests/RandomNumberGeneratorUnitTest.cpp \ 55 53 ../RandomNumbers/unittests/RandomNumberGeneratorUnitTest.hpp 56 RandomNumberGeneratorUnitTest_LDADD = ${RANDOMNUMBERLIBS} \ 57 ../libMolecuilderRandomNumbers.la 54 RandomNumberGeneratorUnitTest_LDADD = ${RANDOMNUMBERLIBS} 58 55 59 56 -
src/Thermostats/Berendsen.cpp
r752bb4 r360c8b 14 14 15 15 #include "Berendsen.hpp" 16 #include " element.hpp"16 #include "Element/element.hpp" 17 17 #include "config.hpp" 18 18 #include "CodePatterns/Verbose.hpp" -
src/Thermostats/GaussianThermostat.cpp
r752bb4 r360c8b 19 19 #include "LinearAlgebra/Vector.hpp" 20 20 #include "AtomSet.hpp" 21 #include " element.hpp"21 #include "Element/element.hpp" 22 22 #include "config.hpp" 23 23 #include "World.hpp" -
src/Thermostats/Langevin.cpp
r752bb4 r360c8b 14 14 15 15 #include "Langevin.hpp" 16 #include " element.hpp"16 #include "Element/element.hpp" 17 17 #include "config.hpp" 18 18 #include "CodePatterns/Verbose.hpp" -
src/Thermostats/NoseHoover.cpp
r752bb4 r360c8b 15 15 #include "NoseHoover.hpp" 16 16 17 #include " element.hpp"17 #include "Element/element.hpp" 18 18 #include "config.hpp" 19 19 #include "CodePatterns/Verbose.hpp" -
src/Thermostats/Woodcock.cpp
r752bb4 r360c8b 15 15 #include "Woodcock.hpp" 16 16 17 #include " element.hpp"17 #include "Element/element.hpp" 18 18 #include "config.hpp" 19 19 #include "CodePatterns/Verbose.hpp" -
src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp
r752bb4 r360c8b 30 30 #include "CodePatterns/Verbose.hpp" 31 31 #include "World.hpp" 32 #include "Box.hpp"33 32 34 33 using namespace std; -
src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp
r752bb4 r360c8b 24 24 #include "CodePatterns/Log.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 #include " element.hpp"27 #include " periodentafel.hpp"26 #include "Element/element.hpp" 27 #include "Element/periodentafel.hpp" 28 28 #include "World.hpp" 29 29 -
src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp
r752bb4 r360c8b 24 24 #include "CodePatterns/Log.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 #include " element.hpp"27 #include " periodentafel.hpp"26 #include "Element/element.hpp" 27 #include "Element/periodentafel.hpp" 28 28 #include "World.hpp" 29 29 -
src/UIElements/CommandLineUI/TypeEnumContainer.cpp
r752bb4 r360c8b 34 34 #include "LinearAlgebra/BoxVector.hpp" 35 35 #include "LinearAlgebra/Vector.hpp" 36 #include " element.hpp"36 #include "Element/element.hpp" 37 37 #include "molecule.hpp" 38 38 #include "RandomNumbers/RandomNumberDistribution_Parameters.hpp" -
src/UIElements/Makefile.am
r752bb4 r360c8b 264 264 libMolecuilderActionPrototypes.la \ 265 265 libMolecuilderActions.la \ 266 libMolecuilderAnalysis.la \ 266 267 libMolecuilderGraph.la \ 267 268 libMolecuilder.la \ 269 libMolecuilderFragmentation.la \ 268 270 libMolecuilderParser.la \ 269 271 libMolecuilderShapes.la \ 272 libMolecuilderHelpers.la \ 273 libMolecuilderElement.la \ 270 274 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 271 275 libMolecuilderRandomNumbers.la \ -
src/UIElements/Qt4/Pipe/ElementQtQueryPipe.cpp
r752bb4 r360c8b 24 24 25 25 #include "CodePatterns/MemDebug.hpp" 26 #include " element.hpp"27 #include " periodentafel.hpp"26 #include "Element/element.hpp" 27 #include "Element/periodentafel.hpp" 28 28 #include "World.hpp" 29 29 -
src/UIElements/Qt4/Pipe/ElementsQtQueryPipe.cpp
r752bb4 r360c8b 26 26 27 27 #include "CodePatterns/MemDebug.hpp" 28 #include " element.hpp"29 #include " periodentafel.hpp"28 #include "Element/element.hpp" 29 #include "Element/periodentafel.hpp" 30 30 #include "World.hpp" 31 31 -
src/UIElements/Qt4/Query/ElementQtQuery.cpp
r752bb4 r360c8b 27 27 #include "UIElements/Qt4/Pipe/ElementQtQueryPipe.hpp" 28 28 29 #include " element.hpp"30 #include " periodentafel.hpp"29 #include "Element/element.hpp" 30 #include "Element/periodentafel.hpp" 31 31 #include "World.hpp" 32 32 -
src/UIElements/Qt4/Query/ElementsQtQuery.cpp
r752bb4 r360c8b 27 27 #include "UIElements/Qt4/Pipe/ElementsQtQueryPipe.hpp" 28 28 29 #include " element.hpp"30 #include " periodentafel.hpp"29 #include "Element/element.hpp" 30 #include "Element/periodentafel.hpp" 31 31 #include "World.hpp" 32 32 -
src/UIElements/TextUI/Query/ElementTextQuery.cpp
r752bb4 r360c8b 26 26 #include "CodePatterns/Log.hpp" 27 27 #include "CodePatterns/Verbose.hpp" 28 #include " element.hpp"29 #include " periodentafel.hpp"28 #include "Element/element.hpp" 29 #include "Element/periodentafel.hpp" 30 30 #include "World.hpp" 31 31 -
src/UIElements/TextUI/Query/ElementsTextQuery.cpp
r752bb4 r360c8b 27 27 #include "CodePatterns/Log.hpp" 28 28 #include "CodePatterns/Verbose.hpp" 29 #include " element.hpp"30 #include " periodentafel.hpp"29 #include "Element/element.hpp" 30 #include "Element/periodentafel.hpp" 31 31 #include "World.hpp" 32 32 -
src/UIElements/TextUI/TextWindow.cpp
r752bb4 r360c8b 45 45 // all needed due to config::SaveAll() 46 46 #include "config.hpp" 47 #include " periodentafel.hpp"47 #include "Element/periodentafel.hpp" 48 48 49 49 // config::SaveAll() and enumerate() -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject.cpp
r752bb4 r360c8b 33 33 34 34 #include "Helpers/defs.hpp" 35 #include " element.hpp"36 #include " periodentafel.hpp"35 #include "Element/element.hpp" 36 #include "Element/periodentafel.hpp" 37 37 #include "World.hpp" 38 38 -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_atom.cpp
r752bb4 r360c8b 30 30 31 31 #include "Descriptors/AtomIdDescriptor.hpp" 32 #include " element.hpp"32 #include "Element/element.hpp" 33 33 #include "LinearAlgebra/Vector.hpp" 34 34 #include "World.hpp" -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.cpp
r752bb4 r360c8b 32 32 #include "atom.hpp" 33 33 #include "Bond/bond.hpp" 34 #include " element.hpp"34 #include "Element/element.hpp" 35 35 #include "Helpers/defs.hpp" 36 36 #include "LinearAlgebra/Line.hpp" -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp
r752bb4 r360c8b 145 145 //#include "atom.hpp" 146 146 //#include "Bond/bond.hpp" 147 //#include " element.hpp"147 //#include "Element/element.hpp" 148 148 //#include "molecule.hpp" 149 //#include " periodentafel.hpp"149 //#include "Element/periodentafel.hpp" 150 150 //#include "World.hpp" 151 151 // -
src/World.cpp
r752bb4 r360c8b 40 40 #include "LinearAlgebra/RealSpaceMatrix.hpp" 41 41 #include "molecule.hpp" 42 #include " periodentafel.hpp"42 #include "Element/periodentafel.hpp" 43 43 #include "ThermoStatContainer.hpp" 44 44 #include "WorldTime.hpp" … … 802 802 Observable("World"), 803 803 BG(new BondGraph(true)), // assume Angstroem for the moment 804 periode(new periodentafel ),804 periode(new periodentafel(true)), 805 805 configuration(new config), 806 806 Thermostats(new ThermoStatContainer), -
src/atom.cpp
r752bb4 r360c8b 23 23 #include "CodePatterns/Log.hpp" 24 24 #include "config.hpp" 25 #include "element.hpp" 26 #include "parser.hpp" 25 #include "Element/element.hpp" 27 26 #include "LinearAlgebra/Vector.hpp" 28 27 #include "World.hpp" -
src/atom.hpp
r752bb4 r360c8b 26 26 #include "atom_graphnode.hpp" 27 27 #include "atom_particleinfo.hpp" 28 #include "Tessel Point.hpp"28 #include "Tesselation/TesselPoint.hpp" 29 29 #include "types.hpp" 30 30 -
src/atom_atominfo.cpp
r752bb4 r360c8b 23 23 #include "CodePatterns/Verbose.hpp" 24 24 #include "config.hpp" 25 #include " element.hpp"26 #include " parser.hpp"27 #include " periodentafel.hpp"25 #include "Element/element.hpp" 26 #include "Element/periodentafel.hpp" 27 #include "Fragmentation/ForceMatrix.hpp" 28 28 #include "World.hpp" 29 29 #include "WorldTime.hpp" -
src/atom_bondedparticle.cpp
r752bb4 r360c8b 26 26 #include "CodePatterns/Log.hpp" 27 27 #include "CodePatterns/Verbose.hpp" 28 #include " element.hpp"28 #include "Element/element.hpp" 29 29 #include "WorldTime.hpp" 30 30 -
src/builder_init.cpp
r752bb4 r360c8b 26 26 #include "CodePatterns/Log.hpp" 27 27 #include "molecule.hpp" 28 #include " periodentafel.hpp"29 #include " tesselationhelpers.hpp"28 #include "Element/periodentafel.hpp" 29 #include "Tesselation/tesselationhelpers.hpp" 30 30 #include "UIElements/UIFactory.hpp" 31 31 #include "UIElements/Menu/MenuDescription.hpp" -
src/config.cpp
r752bb4 r360c8b 34 34 #include "config.hpp" 35 35 #include "ConfigFileBuffer.hpp" 36 #include " element.hpp"36 #include "Element/element.hpp" 37 37 #include "Graph/BondGraph.hpp" 38 38 #include "Helpers/helpers.hpp" … … 40 40 #include "molecule.hpp" 41 41 #include "molecule.hpp" 42 #include " periodentafel.hpp"42 #include "Element/periodentafel.hpp" 43 43 #include "ThermoStatContainer.hpp" 44 44 #include "World.hpp" -
src/linkedcell.cpp
r752bb4 r360c8b 26 26 #include "molecule.hpp" 27 27 #include "IPointCloud.hpp" 28 #include " tesselation.hpp"28 #include "Tesselation/tesselation.hpp" 29 29 #include "LinearAlgebra/Vector.hpp" 30 30 -
src/molecule.cpp
r752bb4 r360c8b 32 32 #include "CodePatterns/Log.hpp" 33 33 #include "config.hpp" 34 #include " element.hpp"34 #include "Element/element.hpp" 35 35 #include "graph.hpp" 36 36 #include "Graph/BondGraph.hpp" … … 42 42 #include "linkedcell.hpp" 43 43 #include "molecule.hpp" 44 #include " periodentafel.hpp"45 #include " tesselation.hpp"44 #include "Element/periodentafel.hpp" 45 #include "Tesselation/tesselation.hpp" 46 46 #include "World.hpp" 47 47 #include "WorldTime.hpp" … … 233 233 } 234 234 235 molecule::atomVectormolecule::getAtomSet() const236 { 237 atomVectorvector_of_atoms;235 World::AtomComposite molecule::getAtomSet() const 236 { 237 World::AtomComposite vector_of_atoms; 238 238 BOOST_FOREACH(atom *_atom, atoms) 239 239 vector_of_atoms.push_back(_atom); -
src/molecule.hpp
r752bb4 r360c8b 69 69 public: 70 70 typedef ATOMSET(std::list) atomSet; 71 typedef ATOMSET(std::vector) atomVector;72 71 typedef std::set<atomId_t> atomIdSet; 73 72 typedef ObservedIterator<atomSet> iterator; … … 125 124 virtual bool changeId(atomId_t newId); 126 125 127 atomVectorgetAtomSet() const;126 World::AtomComposite getAtomSet() const; 128 127 129 128 iterator begin(); -
src/molecule_fragmentation.cpp
r752bb4 r360c8b 28 28 #include "CodePatterns/Log.hpp" 29 29 #include "config.hpp" 30 #include " element.hpp"30 #include "Element/element.hpp" 31 31 #include "Graph/BondGraph.hpp" 32 32 #include "Graph/CheckAgainstAdjacencyFile.hpp" … … 36 36 #include "LinearAlgebra/RealSpaceMatrix.hpp" 37 37 #include "molecule.hpp" 38 #include " periodentafel.hpp"38 #include "Element/periodentafel.hpp" 39 39 #include "World.hpp" 40 40 … … 681 681 ++iter) { 682 682 // correct bond degree 683 molecule::atomVectorSet = (*iter)->getAtomSet();683 World::AtomComposite Set = (*iter)->getAtomSet(); 684 684 World::getInstance().getBondGraph()->CorrectBondDegree(Set); 685 685 } -
src/molecule_geometry.cpp
r752bb4 r360c8b 26 26 #include "CodePatterns/Verbose.hpp" 27 27 #include "config.hpp" 28 #include " element.hpp"28 #include "Element/element.hpp" 29 29 #include "Graph/BondGraph.hpp" 30 30 #include "LinearAlgebra/leastsquaremin.hpp" -
src/molecule_graph.cpp
r752bb4 r360c8b 31 31 #include "config.hpp" 32 32 #include "Graph/DepthFirstSearchAnalysis.hpp" 33 #include " element.hpp"33 #include "Element/element.hpp" 34 34 #include "Graph/BondGraph.hpp" 35 35 #include "Helpers/defs.hpp" -
src/moleculelist.cpp
r752bb4 r360c8b 26 26 #include "atom.hpp" 27 27 #include "Bond/bond.hpp" 28 #include " boundary.hpp"28 #include "Tesselation/boundary.hpp" 29 29 #include "Box.hpp" 30 30 #include "CodePatterns/Assert.hpp" … … 32 32 #include "CodePatterns/Verbose.hpp" 33 33 #include "config.hpp" 34 #include " element.hpp"34 #include "Element/element.hpp" 35 35 #include "Graph/BondGraph.hpp" 36 36 #include "Helpers/helpers.hpp" … … 40 40 #include "Parser/MpqcParser.hpp" 41 41 #include "Parser/FormatParserStorage.hpp" 42 #include " periodentafel.hpp"43 #include " tesselation.hpp"42 #include "Element/periodentafel.hpp" 43 #include "Tesselation/tesselation.hpp" 44 44 #include "World.hpp" 45 45 #include "WorldTime.hpp" -
src/unittests/LinkedCellUnitTest.cpp
r752bb4 r360c8b 30 30 #include "atom.hpp" 31 31 #include "Descriptors/MoleculeDescriptor.hpp" 32 #include " element.hpp"32 #include "Element/element.hpp" 33 33 #include "linkedcell.hpp" 34 34 #include "molecule.hpp" 35 #include " periodentafel.hpp"35 #include "Element/periodentafel.hpp" 36 36 #include "PointCloudAdaptor.hpp" 37 37 #include "World.hpp" -
src/unittests/ListOfBondsUnitTest.cpp
r752bb4 r360c8b 30 30 #include "atom.hpp" 31 31 #include "Bond/bond.hpp" 32 #include " element.hpp"32 #include "Element/element.hpp" 33 33 #include "molecule.hpp" 34 #include " periodentafel.hpp"34 #include "Element/periodentafel.hpp" 35 35 #include "World.hpp" 36 36 #include "WorldTime.hpp" -
src/unittests/Makefile.am
r752bb4 r360c8b 7 7 8 8 include ../../src/Actions/unittests/Makefile.am 9 include ../../src/Analysis/unittests/Makefile.am 9 10 include ../../src/Descriptors/unittests/Makefile.am 11 include ../../src/Element/unittests/Makefile.am 12 include ../../src/Fragmentation/unittests/Makefile.am 13 include ../../src/Graph/unittests/Makefile.am 10 14 include ../../src/Parser/unittests/Makefile.am 11 15 include ../../src/RandomNumbers/unittests/Makefile.am 12 16 include ../../src/Shapes/unittests/Makefile.am 17 include ../../src/Tesselation/unittests/Makefile.am 13 18 include ../../src/UIElements/CommandLineUI/unittests/Makefile.am 14 19 include ../../src/UIElements/Menu/unittests/Makefile.am … … 20 25 21 26 GENERALTESTS = \ 22 AnalysisBondsUnitTest \23 AnalysisCorrelationToPointUnitTest \24 AnalysisCorrelationToSurfaceUnitTest \25 AnalysisPairCorrelationUnitTest \26 BondGraphUnitTest \27 27 BoxUnitTest \ 28 CountBondsUnitTest \29 ElementUnitTest \30 28 FormulaUnittest \ 31 29 LinkedCellUnitTest \ 32 30 ListOfBondsUnitTest \ 33 PeriodentafelUnitTest \34 TesselationUnitTest \35 Tesselation_BoundaryTriangleUnitTest \36 Tesselation_InOutsideUnitTest \37 31 WorldTimeUnitTest 38 32 … … 49 43 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) 50 44 45 GENERALLIBS = \ 46 ../libMolecuilder.la \ 47 ../libMolecuilderHelpers.la \ 48 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 49 ${CodePatterns_LIBS} \ 50 $(BOOST_LIB) 51 51 52 ALLLIBS = \ 52 53 ../libMolecuilderUI.la \ … … 58 59 TESTSOURCES = \ 59 60 ${ACTIONTESTSSOURCES} \ 61 ${ANALYSISTESTSSOURCES} \ 60 62 ${DESCRIPTORTESTSSOURCES} \ 63 ${ELEMENTTESTSSOURCES} \ 64 ${FRAGMENTATIONTESTSSOURCES} \ 65 ${GRAPHTESTSSOURCES} \ 61 66 ${LINEARALGEBRATESTSSOURCES} \ 62 67 ${PARSERTESTSSOURCES} \ 63 68 ${RANDOMNUMBERTESTSSOURCES} \ 64 69 ${SHAPETESTSSOURCES} \ 70 ${TESSELATIONTESTSSOURCES} \ 65 71 $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \ 66 72 ${UIELEMENTSMENUTESTSSOURCES} \ 67 AnalysisBondsUnitTest.cpp \68 AnalysisCorrelationToPointUnitTest.cpp \69 AnalysisCorrelationToSurfaceUnitTest.cpp \70 AnalysisPairCorrelationUnitTest.cpp \71 BondGraphUnitTest.cpp \72 73 BoxUnitTest.cpp \ 73 CountBondsUnitTest.cpp \74 ElementUnitTest.cpp \75 74 FormulaUnitTest.cpp \ 76 75 LinkedCellUnitTest.cpp \ 77 76 ListOfBondsUnitTest.cpp \ 78 PeriodentafelUnitTest.cpp \79 TesselationUnitTest.cpp \80 Tesselation_BoundaryTriangleUnitTest.cpp \81 Tesselation_InsideOutsideUnitTest.cpp \82 77 WorldTimeUnitTest.cpp 83 78 84 79 TESTHEADERS = \ 85 80 ${ACTIONTESTSHEADERS} \ 81 ${ANALYSISTESTSHEADERS} \ 86 82 ${DESCRIPTORTESTSHEADERS} \ 83 ${ELEMENTTESTSHEADERS} \ 84 ${FRAGMENTATIONTESTSHEADERS} \ 85 ${GRAPHTESTSHEADERS} \ 87 86 ${LINEARALGEBRATESTSHEADERS} \ 88 87 ${PARSERTESTSHEADERS} \ 89 88 ${RANDOMNUMBERTESTSHEADERS} \ 90 89 ${SHAPETESTSHEADERS} \ 90 ${TESSELATIONTESTSHEADERS} \ 91 91 $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \ 92 92 ${UIELEMENTSMENUTESTSHEADERS} \ 93 AnalysisBondsUnitTest.hpp \94 AnalysisCorrelationToPointUnitTest.hpp \95 AnalysisCorrelationToSurfaceUnitTest.hpp \96 AnalysisPairCorrelationUnitTest.hpp \97 BondGraphUnitTest.hpp \98 93 BoxUnitTest.hpp \ 99 CountBondsUnitTest.hpp \100 ElementUnitTest.hpp \101 94 FormulaUnitTest.hpp \ 102 95 LinkedCellUnitTest.hpp \ 103 96 ListOfBondsUnitTest.hpp \ 104 PeriodentafelUnitTest.hpp \105 TesselationUnitTest.hpp \106 Tesselation_BoundaryTriangleUnitTest.hpp \107 Tesselation_InsideOutsideUnitTest.hpp \108 97 WorldTimeUnitTest.hpp 109 98 110 111 AnalysisBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \112 AnalysisBondsUnitTest.cpp \113 AnalysisBondsUnitTest.hpp114 AnalysisBondsUnitTest_LDADD = ${ALLLIBS}115 116 AnalysisCorrelationToPointUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \117 AnalysisCorrelationToPointUnitTest.cpp \118 AnalysisCorrelationToPointUnitTest.hpp119 AnalysisCorrelationToPointUnitTest_LDADD = ${ALLLIBS}120 121 AnalysisCorrelationToSurfaceUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \122 AnalysisCorrelationToSurfaceUnitTest.cpp \123 AnalysisCorrelationToSurfaceUnitTest.hpp124 AnalysisCorrelationToSurfaceUnitTest_LDADD = ${ALLLIBS}125 126 AnalysisPairCorrelationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \127 AnalysisPairCorrelationUnitTest.cpp \128 AnalysisPairCorrelationUnitTest.hpp129 AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS}130 131 BondGraphUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \132 BondGraphUnitTest.cpp \133 BondGraphUnitTest.hpp134 BondGraphUnitTest_LDADD = ${ALLLIBS}135 99 136 100 BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 137 101 BoxUnitTest.cpp \ 138 102 BoxUnitTest.hpp 139 BoxUnitTest_LDADD = ${ALLLIBS} 140 141 CountBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 142 CountBondsUnitTest.cpp \ 143 CountBondsUnitTest.hpp 144 CountBondsUnitTest_LDADD = ${ALLLIBS} 145 146 ElementUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 147 ElementUnitTest.cpp \ 148 ../element.cpp \ 149 ElementUnitTest.hpp \ 150 ../element.hpp 151 ElementUnitTest_LDADD = \ 152 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) 103 BoxUnitTest_LDADD = \ 104 ../libMolecuilder.la \ 105 ../libMolecuilderShapes.la \ 106 ../libMolecuilderHelpers.la \ 107 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la 153 108 154 109 FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 155 110 FormulaUnitTest.cpp \ 156 111 FormulaUnitTest.hpp 157 FormulaUnittest_LDADD = $ {ALLLIBS}112 FormulaUnittest_LDADD = $(ALLLIBS) 158 113 159 114 LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 160 115 LinkedCellUnitTest.cpp \ 161 116 LinkedCellUnitTest.hpp 162 LinkedCellUnitTest_LDADD = $ {ALLLIBS}117 LinkedCellUnitTest_LDADD = $(ALLLIBS) 163 118 164 119 ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 165 120 ListOfBondsUnitTest.cpp \ 166 121 ListOfBondsUnitTest.hpp 167 ListOfBondsUnitTest_LDADD = ${ALLLIBS} 168 169 PeriodentafelUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 170 PeriodentafelUnitTest.cpp \ 171 PeriodentafelUnitTest.hpp 172 PeriodentafelUnitTest_LDADD = ${ALLLIBS} 173 174 TesselationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 175 TesselationUnitTest.cpp \ 176 TesselationUnitTest.hpp 177 TesselationUnitTest_LDADD = ${ALLLIBS} 178 179 Tesselation_BoundaryTriangleUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 180 Tesselation_BoundaryTriangleUnitTest.cpp \ 181 Tesselation_BoundaryTriangleUnitTest.hpp 182 Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS} 183 184 Tesselation_InOutsideUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 185 Tesselation_InsideOutsideUnitTest.cpp \ 186 Tesselation_InsideOutsideUnitTest.hpp 187 Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS} 122 ListOfBondsUnitTest_LDADD = $(ALLLIBS) 188 123 189 124 WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ -
tests/Fragmentations/Makefile.am
r752bb4 r360c8b 4 4 testsuite.at \ 5 5 $(TESTSUITE) \ 6 analyzer.in \ 6 7 atlocal.in \ 8 joiner.in \ 7 9 molecuilder.in \ 8 10 $(srcdir)/package.m4 \ 9 $(srcdir)/1_2-dimethoxyethane \ 10 $(srcdir)/1_2-dimethylbenzene \ 11 $(srcdir)/2-methylcyclohexanone \ 12 $(srcdir)/benzene \ 13 $(srcdir)/cholesterol \ 14 $(srcdir)/cycloheptane \ 15 $(srcdir)/dimethyl_bromomalonate \ 16 $(srcdir)/glucose \ 17 $(srcdir)/heptan \ 18 $(srcdir)/isoleucine \ 19 $(srcdir)/neohexane \ 20 $(srcdir)/N_N-dimethylacetamide \ 21 $(srcdir)/proline \ 22 $(srcdir)/putrescine \ 23 $(srcdir)/tartaric_acid 11 $(srcdir)/Analyzing/heptan \ 12 $(srcdir)/Fragmenting/1_2-dimethoxyethane \ 13 $(srcdir)/Fragmenting/1_2-dimethylbenzene \ 14 $(srcdir)/Fragmenting/2-methylcyclohexanone \ 15 $(srcdir)/Fragmenting/benzene \ 16 $(srcdir)/Fragmenting/cholesterol \ 17 $(srcdir)/Fragmenting/cycloheptane \ 18 $(srcdir)/Fragmenting/dimethyl_bromomalonate \ 19 $(srcdir)/Fragmenting/glucose \ 20 $(srcdir)/Fragmenting/heptan \ 21 $(srcdir)/Fragmenting/isoleucine \ 22 $(srcdir)/Fragmenting/neohexane \ 23 $(srcdir)/Fragmenting/N_N-dimethylacetamide \ 24 $(srcdir)/Fragmenting/proline \ 25 $(srcdir)/Fragmenting/putrescine \ 26 $(srcdir)/Fragmenting/tartaric_acid \ 27 $(srcdir)/Joining/heptan 24 28 25 29 TESTSUITE = $(srcdir)/testsuite … … 28 32 29 33 TESTSCRIPTS = \ 30 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order1.at \ 31 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order2.at \ 32 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order3.at \ 33 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order4.at \ 34 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order1.at \ 35 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order2.at \ 36 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order3.at \ 37 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order4.at \ 38 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order1.at \ 39 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order2.at \ 40 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order3.at \ 41 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order4.at \ 42 benzene/testsuite-benzene-order1.at \ 43 benzene/testsuite-benzene-order2.at \ 44 benzene/testsuite-benzene-order3.at \ 45 benzene/testsuite-benzene-order4.at \ 46 benzene/testsuite-benzene-order5.at \ 47 benzene/testsuite-benzene-order6.at \ 48 cholesterol/testsuite-cholesterol-order1.at \ 49 cholesterol/testsuite-cholesterol-order2.at \ 50 cholesterol/testsuite-cholesterol-order3.at \ 51 cholesterol/testsuite-cholesterol-order4.at \ 52 cycloheptane/testsuite-cycloheptane-order1.at \ 53 cycloheptane/testsuite-cycloheptane-order2.at \ 54 cycloheptane/testsuite-cycloheptane-order3.at \ 55 cycloheptane/testsuite-cycloheptane-order4.at \ 56 cycloheptane/testsuite-cycloheptane-order5.at \ 57 cycloheptane/testsuite-cycloheptane-order6.at \ 58 dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order1.at \ 59 dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order2.at \ 60 dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order3.at \ 61 dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order4.at \ 62 dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order5.at \ 63 dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order6.at \ 64 glucose/testsuite-glucose-order1.at \ 65 glucose/testsuite-glucose-order2.at \ 66 glucose/testsuite-glucose-order3.at \ 67 glucose/testsuite-glucose-order4.at \ 68 glucose/testsuite-glucose-order5.at \ 69 glucose/testsuite-glucose-order6.at \ 70 heptan/testsuite-heptan-order1.at \ 71 heptan/testsuite-heptan-order2.at \ 72 heptan/testsuite-heptan-order3.at \ 73 heptan/testsuite-heptan-order4.at \ 74 isoleucine/testsuite-isoleucine-order1.at \ 75 isoleucine/testsuite-isoleucine-order2.at \ 76 isoleucine/testsuite-isoleucine-order3.at \ 77 isoleucine/testsuite-isoleucine-order4.at \ 78 isoleucine/testsuite-isoleucine-order5.at \ 79 isoleucine/testsuite-isoleucine-order6.at \ 80 neohexane/testsuite-neohexane-order1.at \ 81 neohexane/testsuite-neohexane-order2.at \ 82 neohexane/testsuite-neohexane-order3.at \ 83 neohexane/testsuite-neohexane-order4.at \ 84 neohexane/testsuite-neohexane-order5.at \ 85 neohexane/testsuite-neohexane-order6.at \ 86 N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order1.at \ 87 N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order2.at \ 88 N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order3.at \ 89 N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order4.at \ 90 N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order5.at \ 91 N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order6.at \ 92 proline/testsuite-proline-order1.at \ 93 proline/testsuite-proline-order2.at \ 94 proline/testsuite-proline-order3.at \ 95 proline/testsuite-proline-order4.at \ 96 proline/testsuite-proline-order5.at \ 97 proline/testsuite-proline-order6.at \ 98 putrescine/testsuite-putrescine-order1.at \ 99 putrescine/testsuite-putrescine-order2.at \ 100 putrescine/testsuite-putrescine-order3.at \ 101 putrescine/testsuite-putrescine-order4.at \ 102 putrescine/testsuite-putrescine-order5.at \ 103 putrescine/testsuite-putrescine-order6.at \ 104 tartaric_acid/testsuite-tartaric_acid-order1.at \ 105 tartaric_acid/testsuite-tartaric_acid-order2.at \ 106 tartaric_acid/testsuite-tartaric_acid-order3.at \ 107 tartaric_acid/testsuite-tartaric_acid-order4.at \ 108 tartaric_acid/testsuite-tartaric_acid-order5.at \ 109 tartaric_acid/testsuite-tartaric_acid-order6.at 34 Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order1.at \ 35 Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order2.at \ 36 Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order3.at \ 37 Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order4.at \ 38 Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order1.at \ 39 Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order2.at \ 40 Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order3.at \ 41 Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order4.at \ 42 Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order1.at \ 43 Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order2.at \ 44 Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order3.at \ 45 Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order4.at \ 46 Fragmenting/benzene/testsuite-fragmenting-benzene-order1.at \ 47 Fragmenting/benzene/testsuite-fragmenting-benzene-order2.at \ 48 Fragmenting/benzene/testsuite-fragmenting-benzene-order3.at \ 49 Fragmenting/benzene/testsuite-fragmenting-benzene-order4.at \ 50 Fragmenting/benzene/testsuite-fragmenting-benzene-order5.at \ 51 Fragmenting/benzene/testsuite-fragmenting-benzene-order6.at \ 52 Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order1.at \ 53 Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order2.at \ 54 Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order3.at \ 55 Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order4.at \ 56 Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order1.at \ 57 Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order2.at \ 58 Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order3.at \ 59 Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order4.at \ 60 Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order5.at \ 61 Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order6.at \ 62 Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order1.at \ 63 Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order2.at \ 64 Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order3.at \ 65 Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order4.at \ 66 Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order5.at \ 67 Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order6.at \ 68 Fragmenting/glucose/testsuite-fragmenting-glucose-order1.at \ 69 Fragmenting/glucose/testsuite-fragmenting-glucose-order2.at \ 70 Fragmenting/glucose/testsuite-fragmenting-glucose-order3.at \ 71 Fragmenting/glucose/testsuite-fragmenting-glucose-order4.at \ 72 Fragmenting/glucose/testsuite-fragmenting-glucose-order5.at \ 73 Fragmenting/glucose/testsuite-fragmenting-glucose-order6.at \ 74 Fragmenting/heptan/testsuite-fragmenting-heptan-order1.at \ 75 Fragmenting/heptan/testsuite-fragmenting-heptan-order2.at \ 76 Fragmenting/heptan/testsuite-fragmenting-heptan-order3.at \ 77 Fragmenting/heptan/testsuite-fragmenting-heptan-order4.at \ 78 Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order1.at \ 79 Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order2.at \ 80 Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order3.at \ 81 Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order4.at \ 82 Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order5.at \ 83 Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order6.at \ 84 Fragmenting/neohexane/testsuite-fragmenting-neohexane-order1.at \ 85 Fragmenting/neohexane/testsuite-fragmenting-neohexane-order2.at \ 86 Fragmenting/neohexane/testsuite-fragmenting-neohexane-order3.at \ 87 Fragmenting/neohexane/testsuite-fragmenting-neohexane-order4.at \ 88 Fragmenting/neohexane/testsuite-fragmenting-neohexane-order5.at \ 89 Fragmenting/neohexane/testsuite-fragmenting-neohexane-order6.at \ 90 Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order1.at \ 91 Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order2.at \ 92 Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order3.at \ 93 Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order4.at \ 94 Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order5.at \ 95 Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order6.at \ 96 Fragmenting/proline/testsuite-fragmenting-proline-order1.at \ 97 Fragmenting/proline/testsuite-fragmenting-proline-order2.at \ 98 Fragmenting/proline/testsuite-fragmenting-proline-order3.at \ 99 Fragmenting/proline/testsuite-fragmenting-proline-order4.at \ 100 Fragmenting/proline/testsuite-fragmenting-proline-order5.at \ 101 Fragmenting/proline/testsuite-fragmenting-proline-order6.at \ 102 Fragmenting/putrescine/testsuite-fragmenting-putrescine-order1.at \ 103 Fragmenting/putrescine/testsuite-fragmenting-putrescine-order2.at \ 104 Fragmenting/putrescine/testsuite-fragmenting-putrescine-order3.at \ 105 Fragmenting/putrescine/testsuite-fragmenting-putrescine-order4.at \ 106 Fragmenting/putrescine/testsuite-fragmenting-putrescine-order5.at \ 107 Fragmenting/putrescine/testsuite-fragmenting-putrescine-order6.at \ 108 Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order1.at \ 109 Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order2.at \ 110 Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order3.at \ 111 Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order4.at \ 112 Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order5.at \ 113 Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order6.at \ 114 Joining/heptan/testsuite-joining-heptan.at \ 115 Analyzing/heptan/testsuite-analyzing-heptan.at 110 116 111 117 max_jobs = 4 -
tests/Fragmentations/testsuite.at
r752bb4 r360c8b 4 4 # In pre initial files are placed, in post results can be found to be checked by diff in this testsuite. 5 5 6 AT_INIT([Molecular Builder - Tesselations])6 AT_INIT([Molecular Builder - Fragmentation]) 7 7 AT_TESTED(diff grep egrep fgrep) 8 8 … … 11 11 12 12 # fragmentation of 1_2-dimethoxyethane 13 m4_include( 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order1.at)14 m4_include( 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order2.at)15 m4_include( 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order3.at)16 m4_include( 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane-order4.at)13 m4_include(Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order1.at) 14 m4_include(Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order2.at) 15 m4_include(Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order3.at) 16 m4_include(Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order4.at) 17 17 18 18 # fragmentation of 1_2-dimethylbenzene 19 m4_include( 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order1.at)20 m4_include( 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order2.at)21 m4_include( 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order3.at)22 m4_include( 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene-order4.at)19 m4_include(Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order1.at) 20 m4_include(Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order2.at) 21 m4_include(Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order3.at) 22 m4_include(Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order4.at) 23 23 24 24 # fragmentation of 2-methylcyclohexanone 25 m4_include( 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order1.at)26 m4_include( 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order2.at)27 m4_include( 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order3.at)28 m4_include( 2-methylcyclohexanone/testsuite-2-methylcyclohexanone-order4.at)25 m4_include(Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order1.at) 26 m4_include(Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order2.at) 27 m4_include(Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order3.at) 28 m4_include(Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order4.at) 29 29 30 30 # fragmentation of benzene 31 m4_include( benzene/testsuite-benzene-order1.at)32 m4_include( benzene/testsuite-benzene-order2.at)33 m4_include( benzene/testsuite-benzene-order3.at)34 m4_include( benzene/testsuite-benzene-order4.at)35 m4_include( benzene/testsuite-benzene-order5.at)36 m4_include( benzene/testsuite-benzene-order6.at)31 m4_include(Fragmenting/benzene/testsuite-fragmenting-benzene-order1.at) 32 m4_include(Fragmenting/benzene/testsuite-fragmenting-benzene-order2.at) 33 m4_include(Fragmenting/benzene/testsuite-fragmenting-benzene-order3.at) 34 m4_include(Fragmenting/benzene/testsuite-fragmenting-benzene-order4.at) 35 m4_include(Fragmenting/benzene/testsuite-fragmenting-benzene-order5.at) 36 m4_include(Fragmenting/benzene/testsuite-fragmenting-benzene-order6.at) 37 37 38 38 # fragmentation of cholesterol 39 m4_include( cholesterol/testsuite-cholesterol-order1.at)40 m4_include( cholesterol/testsuite-cholesterol-order2.at)41 m4_include( cholesterol/testsuite-cholesterol-order3.at)42 m4_include( cholesterol/testsuite-cholesterol-order4.at)39 m4_include(Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order1.at) 40 m4_include(Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order2.at) 41 m4_include(Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order3.at) 42 m4_include(Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order4.at) 43 43 44 44 # fragmentation of cycloheptane 45 m4_include( cycloheptane/testsuite-cycloheptane-order1.at)46 m4_include( cycloheptane/testsuite-cycloheptane-order2.at)47 m4_include( cycloheptane/testsuite-cycloheptane-order3.at)48 m4_include( cycloheptane/testsuite-cycloheptane-order4.at)49 m4_include( cycloheptane/testsuite-cycloheptane-order5.at)50 m4_include( cycloheptane/testsuite-cycloheptane-order6.at)45 m4_include(Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order1.at) 46 m4_include(Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order2.at) 47 m4_include(Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order3.at) 48 m4_include(Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order4.at) 49 m4_include(Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order5.at) 50 m4_include(Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order6.at) 51 51 52 52 # fragmentation of dimethyl_bromomalonate 53 m4_include( dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order1.at)54 m4_include( dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order2.at)55 m4_include( dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order3.at)56 m4_include( dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order4.at)57 m4_include( dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order5.at)58 m4_include( dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate-order6.at)53 m4_include(Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order1.at) 54 m4_include(Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order2.at) 55 m4_include(Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order3.at) 56 m4_include(Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order4.at) 57 m4_include(Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order5.at) 58 m4_include(Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order6.at) 59 59 60 60 # fragmentation of glucose 61 m4_include( glucose/testsuite-glucose-order1.at)62 m4_include( glucose/testsuite-glucose-order2.at)63 m4_include( glucose/testsuite-glucose-order3.at)64 m4_include( glucose/testsuite-glucose-order4.at)65 m4_include( glucose/testsuite-glucose-order5.at)66 m4_include( glucose/testsuite-glucose-order6.at)61 m4_include(Fragmenting/glucose/testsuite-fragmenting-glucose-order1.at) 62 m4_include(Fragmenting/glucose/testsuite-fragmenting-glucose-order2.at) 63 m4_include(Fragmenting/glucose/testsuite-fragmenting-glucose-order3.at) 64 m4_include(Fragmenting/glucose/testsuite-fragmenting-glucose-order4.at) 65 m4_include(Fragmenting/glucose/testsuite-fragmenting-glucose-order5.at) 66 m4_include(Fragmenting/glucose/testsuite-fragmenting-glucose-order6.at) 67 67 68 68 # fragmentation of heptan 69 m4_include( heptan/testsuite-heptan-order1.at)70 m4_include( heptan/testsuite-heptan-order2.at)71 m4_include( heptan/testsuite-heptan-order3.at)72 m4_include( heptan/testsuite-heptan-order4.at)69 m4_include(Fragmenting/heptan/testsuite-fragmenting-heptan-order1.at) 70 m4_include(Fragmenting/heptan/testsuite-fragmenting-heptan-order2.at) 71 m4_include(Fragmenting/heptan/testsuite-fragmenting-heptan-order3.at) 72 m4_include(Fragmenting/heptan/testsuite-fragmenting-heptan-order4.at) 73 73 74 74 # fragmentation of isoleucine 75 m4_include( isoleucine/testsuite-isoleucine-order1.at)76 m4_include( isoleucine/testsuite-isoleucine-order2.at)77 m4_include( isoleucine/testsuite-isoleucine-order3.at)78 m4_include( isoleucine/testsuite-isoleucine-order4.at)79 m4_include( isoleucine/testsuite-isoleucine-order5.at)80 m4_include( isoleucine/testsuite-isoleucine-order6.at)75 m4_include(Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order1.at) 76 m4_include(Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order2.at) 77 m4_include(Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order3.at) 78 m4_include(Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order4.at) 79 m4_include(Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order5.at) 80 m4_include(Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order6.at) 81 81 82 82 # fragmentation of neohexane 83 m4_include( neohexane/testsuite-neohexane-order1.at)84 m4_include( neohexane/testsuite-neohexane-order2.at)85 m4_include( neohexane/testsuite-neohexane-order3.at)86 m4_include( neohexane/testsuite-neohexane-order4.at)87 m4_include( neohexane/testsuite-neohexane-order5.at)88 m4_include( neohexane/testsuite-neohexane-order6.at)83 m4_include(Fragmenting/neohexane/testsuite-fragmenting-neohexane-order1.at) 84 m4_include(Fragmenting/neohexane/testsuite-fragmenting-neohexane-order2.at) 85 m4_include(Fragmenting/neohexane/testsuite-fragmenting-neohexane-order3.at) 86 m4_include(Fragmenting/neohexane/testsuite-fragmenting-neohexane-order4.at) 87 m4_include(Fragmenting/neohexane/testsuite-fragmenting-neohexane-order5.at) 88 m4_include(Fragmenting/neohexane/testsuite-fragmenting-neohexane-order6.at) 89 89 90 90 # fragmentation of N_N-dimethylacetamide 91 m4_include( N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order1.at)92 m4_include( N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order2.at)93 m4_include( N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order3.at)94 m4_include( N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order4.at)95 m4_include( N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order5.at)96 m4_include( N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide-order6.at)91 m4_include(Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order1.at) 92 m4_include(Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order2.at) 93 m4_include(Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order3.at) 94 m4_include(Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order4.at) 95 m4_include(Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order5.at) 96 m4_include(Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order6.at) 97 97 98 98 # fragmentation of proline 99 m4_include( proline/testsuite-proline-order1.at)100 m4_include( proline/testsuite-proline-order2.at)101 m4_include( proline/testsuite-proline-order3.at)102 m4_include( proline/testsuite-proline-order4.at)103 m4_include( proline/testsuite-proline-order5.at)104 m4_include( proline/testsuite-proline-order6.at)99 m4_include(Fragmenting/proline/testsuite-fragmenting-proline-order1.at) 100 m4_include(Fragmenting/proline/testsuite-fragmenting-proline-order2.at) 101 m4_include(Fragmenting/proline/testsuite-fragmenting-proline-order3.at) 102 m4_include(Fragmenting/proline/testsuite-fragmenting-proline-order4.at) 103 m4_include(Fragmenting/proline/testsuite-fragmenting-proline-order5.at) 104 m4_include(Fragmenting/proline/testsuite-fragmenting-proline-order6.at) 105 105 106 106 # fragmentation of putrescine 107 m4_include( putrescine/testsuite-putrescine-order1.at)108 m4_include( putrescine/testsuite-putrescine-order2.at)109 m4_include( putrescine/testsuite-putrescine-order3.at)110 m4_include( putrescine/testsuite-putrescine-order4.at)111 m4_include( putrescine/testsuite-putrescine-order5.at)112 m4_include( putrescine/testsuite-putrescine-order6.at)107 m4_include(Fragmenting/putrescine/testsuite-fragmenting-putrescine-order1.at) 108 m4_include(Fragmenting/putrescine/testsuite-fragmenting-putrescine-order2.at) 109 m4_include(Fragmenting/putrescine/testsuite-fragmenting-putrescine-order3.at) 110 m4_include(Fragmenting/putrescine/testsuite-fragmenting-putrescine-order4.at) 111 m4_include(Fragmenting/putrescine/testsuite-fragmenting-putrescine-order5.at) 112 m4_include(Fragmenting/putrescine/testsuite-fragmenting-putrescine-order6.at) 113 113 114 114 # fragmentation of tartaric_acid 115 m4_include(tartaric_acid/testsuite-tartaric_acid-order1.at) 116 m4_include(tartaric_acid/testsuite-tartaric_acid-order2.at) 117 m4_include(tartaric_acid/testsuite-tartaric_acid-order3.at) 118 m4_include(tartaric_acid/testsuite-tartaric_acid-order4.at) 119 m4_include(tartaric_acid/testsuite-tartaric_acid-order5.at) 120 m4_include(tartaric_acid/testsuite-tartaric_acid-order6.at) 115 m4_include(Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order1.at) 116 m4_include(Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order2.at) 117 m4_include(Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order3.at) 118 m4_include(Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order4.at) 119 m4_include(Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order5.at) 120 m4_include(Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order6.at) 121 122 # Joining of heptan 123 m4_include(Joining/heptan/testsuite-joining-heptan.at) 124 125 # Analyzing of heptan 126 m4_include(Analyzing/heptan/testsuite-analyzing-heptan.at) -
tests/Makefile.am
r752bb4 r360c8b 1 SUBDIRS = CodeChecks regression Fragmentations Tesselations 1 SUBDIRS = \ 2 CodeChecks \ 3 regression \ 4 Fragmentations \ 5 Tesselations 2 6 -
tests/regression/Domain/AddEmptyBoundary/testsuite-domain-add-empty-boundary.at
r752bb4 r360c8b 15 15 16 16 AT_SETUP([Domain - center and add empty boundary with Undo]) 17 AT_XFAIL_IF([/bin/true]) 18 AT_KEYWORDS([domain add-empty-boundar undo]) 17 AT_KEYWORDS([domain add-empty-boundary undo]) 19 18 20 19 file=test.conf … … 22 21 AT_CHECK([chmod u+w $file], 0) 23 22 AT_CHECK([../../molecuilder -i $file -c "5, 10, 15" --undo], 0, [stdout], [stderr]) 24 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])25 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/AddEmptyBoundary/post/test .conf], 0, [stdout], [stderr])23 AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore]) 24 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/AddEmptyBoundary/post/test-undo.conf], 0, [stdout], [stderr]) 26 25 27 26 AT_CLEANUP … … 29 28 30 29 AT_SETUP([Domain - center and add empty boundary with Redo]) 31 AT_XFAIL_IF([/bin/true])32 30 AT_KEYWORDS([domain add-empty-boundary redo]) 33 31 -
tests/regression/Domain/CenterInBox/testsuite-domain-center-in-box.at
r752bb4 r360c8b 15 15 16 16 AT_SETUP([Domain - setting and centering in domain with Undo]) 17 AT_XFAIL_IF([/bin/true])18 17 AT_KEYWORDS([domain center-in-box undo]) 19 18 … … 22 21 AT_CHECK([chmod u+w $file], 0) 23 22 AT_CHECK([../../molecuilder -i $file -b "15, 0, 15, 0, 0, 15" --undo], 0, [stdout], [stderr]) 24 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])25 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test .conf], 0, [stdout], [stderr])23 AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore]) 24 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test-undo.conf], 0, [stdout], [stderr]) 26 25 27 26 AT_CLEANUP … … 29 28 30 29 AT_SETUP([Domain - setting and centering in domain with Redo]) 31 AT_XFAIL_IF([/bin/true])32 30 AT_KEYWORDS([domain center-in-box redo]) 33 31 … … 36 34 AT_CHECK([chmod u+w $file], 0) 37 35 AT_CHECK([../../molecuilder -i $file -b "15, 0, 15, 0, 0, 15" --undo --redo], 0, [stdout], [stderr]) 38 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])36 AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore]) 39 37 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test.conf], 0, [stdout], [stderr]) 40 38 -
tests/regression/Domain/CenterOnEdge/testsuite-domain-center-on-edge.at
r752bb4 r360c8b 7 7 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/pre/test.conf $file], 0) 8 8 AT_CHECK([chmod u+w $file], 0) 9 AT_CHECK([../../molecuilder -i $file 9 AT_CHECK([../../molecuilder -i $file -O], 0, [stdout], [stderr]) 10 10 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore]) 11 11 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/post/test.conf], 0, [stdout], [stderr]) … … 15 15 16 16 AT_SETUP([Domain - set domain to minimum size with Undo]) 17 AT_XFAIL_IF([/bin/true])18 17 AT_KEYWORDS([domain center-edge undo]) 19 18 … … 21 20 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/pre/test.conf $file], 0) 22 21 AT_CHECK([chmod u+w $file], 0) 23 AT_CHECK([../../molecuilder -i $file 22 AT_CHECK([../../molecuilder -i $file -O --undo], 0, [stdout], [stderr]) 24 23 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore]) 25 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/post/test .conf], 0, [stdout], [stderr])24 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/post/test-undo.conf], 0, [stdout], [stderr]) 26 25 27 26 AT_CLEANUP … … 29 28 30 29 AT_SETUP([Domain - set domain to minimum size with Redo]) 31 AT_XFAIL_IF([/bin/true])32 30 AT_KEYWORDS([domain center-edge redo]) 33 31 … … 35 33 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/pre/test.conf $file], 0) 36 34 AT_CHECK([chmod u+w $file], 0) 37 AT_CHECK([../../molecuilder -i $file 35 AT_CHECK([../../molecuilder -i $file -O --undo --redo], 0, [stdout], [stderr]) 38 36 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore]) 39 37 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterOnEdge/post/test.conf], 0, [stdout], [stderr]) -
tests/regression/Domain/ChangeBox/testsuite-domain-change-box.at
r752bb4 r360c8b 13 13 14 14 AT_SETUP([Domain - defining simulation domain]) 15 AT_XFAIL_IF([/bin/true])16 15 AT_KEYWORDS([domain change-box undo]) 17 16 … … 25 24 26 25 AT_SETUP([Domain - defining simulation domain]) 27 AT_XFAIL_IF([/bin/true])28 26 AT_KEYWORDS([domain change-box redo]) 29 27 -
tests/regression/Domain/RepeatBox/testsuite-domain-repeat-box.at
r752bb4 r360c8b 44 44 45 45 AT_SETUP([Domain - duplicating box with Undo]) 46 AT_XFAIL_IF([/bin/true])47 46 AT_KEYWORDS([domain repeat-box undo]) 48 47 … … 51 50 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 52 51 AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo], 0, [stdout], [stderr]) 53 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])52 AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore]) 54 53 AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 55 AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test .xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])54 AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) 56 55 AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore]) 57 56 … … 60 59 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 61 60 AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo], 0, [stdout], [stderr]) 62 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])61 AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore]) 63 62 AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 64 AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test- x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])63 AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) 65 64 AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore]) 66 65 … … 69 68 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 70 69 AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo], 0, [stdout], [stderr]) 71 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])70 AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore]) 72 71 AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 73 AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test- y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])72 AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) 74 73 AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore]) 75 74 … … 78 77 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 79 78 AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo], 0, [stdout], [stderr]) 80 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])79 AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore]) 81 80 AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 82 AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test- z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])81 AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) 83 82 AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore]) 84 83 … … 87 86 88 87 AT_SETUP([Domain - duplicating box with Redo]) 89 AT_XFAIL_IF([/bin/true])90 88 AT_KEYWORDS([domain repeat-box redo]) 91 89 … … 94 92 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 95 93 AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo --redo], 0, [stdout], [stderr]) 96 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])94 AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore]) 97 95 AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 98 96 AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) … … 103 101 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 104 102 AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo --redo], 0, [stdout], [stderr]) 105 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])103 AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore]) 106 104 AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 107 105 AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) … … 112 110 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 113 111 AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo --redo], 0, [stdout], [stderr]) 114 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])112 AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore]) 115 113 AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 116 114 AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) … … 121 119 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 122 120 AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo --redo], 0, [stdout], [stderr]) 123 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])121 AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore]) 124 122 AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore]) 125 123 AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore]) -
tests/regression/Domain/ScaleBox/testsuite-domain-scale-box.at
r752bb4 r360c8b 15 15 16 16 AT_SETUP([Domain - scaling box with Undo]) 17 AT_XFAIL_IF([/bin/true])18 17 AT_KEYWORDS([domain scale-box undo]) 19 18 … … 23 22 AT_CHECK([../../molecuilder -i $file --scale-box "0.5, 1., 0.9" --undo], 0, [stdout], [stderr]) 24 23 AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore]) 25 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/ScaleBox/post/test .conf], 0, [stdout], [stderr])24 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/ScaleBox/post/test-undo.conf], 0, [stdout], [stderr]) 26 25 27 26 AT_CLEANUP … … 29 28 30 29 AT_SETUP([Domain - scaling box with Redo]) 31 AT_XFAIL_IF([/bin/true])32 30 AT_KEYWORDS([domain scale-box redo]) 33 31 -
tests/regression/Domain/testsuite-domain.at
r752bb4 r360c8b 3 3 # define box setting 4 4 m4_include([Domain/ChangeBox/testsuite-domain-change-box.at]) 5 6 # bound atoms in defined domain 7 m4_include([Domain/BoundInBox/testsuite-domain-bound-in-box.at]) 5 8 6 9 # center atoms in defined domain -
tests/regression/Makefile.am
r752bb4 r360c8b 41 41 $(srcdir)/Analysis/AngularDipoleCorrelation-DiscreteAngles/testsuite-analysis-angular-dipole-correlation-discrete-angles.at \ 42 42 $(srcdir)/Domain/testsuite-domain.at \ 43 $(srcdir)/Domain/BoundInBox/testsuite-domain-bound-in-box.at \ 43 44 $(srcdir)/Domain/ChangeBox/testsuite-domain-change-box.at \ 44 45 $(srcdir)/Domain/CenterInBox/testsuite-domain-center-in-box.at \ -
tests/regression/Options/BondLengthTable/testsuite-options-bond-length-table.at
r752bb4 r360c8b 16 16 17 17 AT_SETUP([Standard Options - bond length table with Undo]) 18 AT_XFAIL_IF([/bin/true])19 18 AT_KEYWORDS([options bond-table undo]) 20 19 … … 31 30 32 31 AT_SETUP([Standard Options - bond length table with Redo]) 33 AT_XFAIL_IF([/bin/true])34 32 AT_KEYWORDS([options bond-table redo]) 35 33 -
tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-select-atoms-inside-cuboid-with-defaults.at
r752bb4 r360c8b 3 3 4 4 AT_SETUP([Selection - All atoms inside cuboid with defaults]) 5 AT_KEYWORDS([selection cuboid select-atoms-inside-cuboid])5 AT_KEYWORDS([selection atom cuboid select-atoms-inside-cuboid]) 6 6 7 7 file=allatomsoutsidecuboid.xyz … … 24 24 25 25 AT_SETUP([Selection - All atoms inside cuboid with defaults with Undo]) 26 AT_KEYWORDS([selection cuboid select-atoms-inside-cuboid undo])26 AT_KEYWORDS([selection atom cuboid select-atoms-inside-cuboid undo]) 27 27 28 28 file=allatomsoutsidecuboid.xyz … … 36 36 37 37 AT_SETUP([Selection - All atoms inside cuboid with defaults with Redo]) 38 AT_KEYWORDS([selection cuboid select-atoms-inside-cuboid redo])38 AT_KEYWORDS([selection atom cuboid select-atoms-inside-cuboid redo]) 39 39 40 40 file=allatomsoutsidecuboid.xyz -
tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-select-atoms-inside-cuboid.at
r752bb4 r360c8b 2 2 3 3 AT_SETUP([Selection - All atoms inside cuboid]) 4 AT_KEYWORDS([selection cuboid select-atoms-inside-cuboid])4 AT_KEYWORDS([selection atom cuboid select-atoms-inside-cuboid]) 5 5 6 6 file=allatomsoutsidecuboid.xyz … … 23 23 24 24 AT_SETUP([Selection - All atoms inside cuboid with Undo]) 25 AT_KEYWORDS([selection cuboid select-atoms-inside-cuboid undo])25 AT_KEYWORDS([selection atom cuboid select-atoms-inside-cuboid undo]) 26 26 27 27 file=allatomsoutsidecuboid.xyz … … 35 35 36 36 AT_SETUP([Selection - All atoms inside cuboid with Redo]) 37 AT_KEYWORDS([selection cuboid select-atoms-inside-cuboid redo])37 AT_KEYWORDS([selection atom cuboid select-atoms-inside-cuboid redo]) 38 38 39 39 file=allatomsoutsidecuboid.xyz -
tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-unselect-atoms-inside-cuboid.at
r752bb4 r360c8b 3 3 4 4 AT_SETUP([Unselection - All atoms inside cuboid]) 5 AT_KEYWORDS([unselection cuboid unselect-atoms-inside-cuboid])5 AT_KEYWORDS([unselection atom cuboid unselect-atoms-inside-cuboid]) 6 6 7 7 file=allatomsinsidecuboid.xyz … … 24 24 25 25 AT_SETUP([Unselection - All atoms inside cuboid with Undo]) 26 AT_KEYWORDS([unselection cuboid unselect-atoms-inside-cuboid undo])26 AT_KEYWORDS([unselection atom cuboid unselect-atoms-inside-cuboid undo]) 27 27 28 28 file=allatomsinsidecuboid.xyz … … 36 36 37 37 AT_SETUP([Unselection - All atoms inside cuboid with Redo]) 38 AT_KEYWORDS([unselection cuboid unselect-atoms-inside-cuboid redo])38 AT_KEYWORDS([unselection atom cuboid unselect-atoms-inside-cuboid redo]) 39 39 40 40 file=allatomsinsidecuboid.xyz -
tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-select-atoms-inside-sphere.at
r752bb4 r360c8b 2 2 3 3 AT_SETUP([Selection - All atoms inside sphere]) 4 AT_KEYWORDS([selection sphere select-atoms-inside-sphere])4 AT_KEYWORDS([selection atom sphere select-atoms-inside-sphere]) 5 5 6 6 file=allatomsoutsidesphere.xyz … … 23 23 24 24 AT_SETUP([Selection - All atoms inside sphere with Undo]) 25 AT_KEYWORDS([selection sphere select-atoms-inside-sphere undo])25 AT_KEYWORDS([selection atom sphere select-atoms-inside-sphere undo]) 26 26 27 27 file=allatomsoutsidesphere.xyz … … 35 35 36 36 AT_SETUP([Selection - All atoms inside sphere with Redo]) 37 AT_KEYWORDS([selection sphere select-atoms-inside-sphere redo])37 AT_KEYWORDS([selection atom sphere select-atoms-inside-sphere redo]) 38 38 39 39 file=allatomsoutsidesphere.xyz -
tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-unselect-atoms-inside-sphere.at
r752bb4 r360c8b 3 3 4 4 AT_SETUP([Unselection - All atoms inside sphere]) 5 AT_KEYWORDS([unselection sphere unselect-atoms-inside-sphere])5 AT_KEYWORDS([unselection atom sphere unselect-atoms-inside-sphere]) 6 6 7 7 file=allatomsinsidesphere.xyz … … 24 24 25 25 AT_SETUP([Unselection - All atoms inside sphere with Undo]) 26 AT_KEYWORDS([unselection sphere unselect-atoms-inside-sphere undo])26 AT_KEYWORDS([unselection atom sphere unselect-atoms-inside-sphere undo]) 27 27 28 28 file=allatomsinsidesphere.xyz … … 36 36 37 37 AT_SETUP([Unselection - All atoms inside sphere with Redo]) 38 AT_KEYWORDS([unselection sphere unselect-atoms-inside-sphere redo])38 AT_KEYWORDS([unselection atom sphere unselect-atoms-inside-sphere redo]) 39 39 40 40 file=allatomsinsidesphere.xyz
Note:
See TracChangeset
for help on using the changeset viewer.