Changes in / [5837dd:7ba268]
- Files:
-
- 35 added
- 13 deleted
- 144 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r5837dd r7ba268 164 164 AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])]) 165 165 166 # add replacement/saturation hydrogen or not167 AC_ARG_ENABLE([hydrogen],AS_HELP_STRING([--enable-hydrogen],[Adding saturation hydrogen (default is yes)]),168 [enable_hydrogen=$enableval], [enable_hydrogen=yes])169 if test x"$enable_hydrogen" = xyes; then170 AC_DEFINE(ADDHYDROGEN,1, ["Adding saturation hydrogen"])171 AC_SUBST(ADDHYDROGEN)172 fi173 174 166 # use CppUnit TestRunner or not 175 167 AC_ARG_ENABLE([ecut],AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient (default is no)]), -
src/Actions/FragmentationAction/FragmentationAction.cpp
r5837dd r7ba268 25 25 #include "CodePatterns/Log.hpp" 26 26 #include "CodePatterns/Verbose.hpp" 27 #include "Fragmentation/Fragmentation.hpp" 28 #include "Fragmentation/HydrogenSaturation_enum.hpp" 27 29 #include "Graph/DepthFirstSearchAnalysis.hpp" 28 30 #include "molecule.hpp" … … 49 51 getParametersfromValueStorage(); 50 52 53 LOG(0, "STATUS: Fragmenting molecular system with current connection matrix maximum bond distance " 54 << params.distance << " up to " 55 << params.order << " order. Fragment files begin with " 56 << params.prefix << " and are stored as: " 57 << params.types << "." << std::endl); 58 51 59 DepthFirstSearchAnalysis DFS; 52 60 for (World::MoleculeSelectionConstIterator iter = World::getInstance().beginMoleculeSelection(); iter != World::getInstance().endMoleculeSelection(); ++iter) { … … 56 64 start = clock(); 57 65 if (mol->hasBondStructure()) { 58 LOG(1, "STAUS: Fragmenting molecule with current connection matrix ..."); 59 ExitFlag = mol->FragmentMolecule(params.order, params.path, DFS); 66 Fragmentation Fragmenter(mol, params.DoSaturation ? DoSaturate : DontSaturate); 67 Fragmenter.setOutputTypes(params.types); 68 ExitFlag = Fragmenter.FragmentMolecule(params.order, params.prefix, DFS); 60 69 } 61 70 World::getInstance().setExitFlag(ExitFlag); -
src/Actions/FragmentationAction/FragmentationAction.def
r5837dd r7ba268 7 7 8 8 // all includes and forward declarations necessary for non-integral types below 9 9 #include <string> 10 #include <vector> 10 11 11 12 // i.e. there is an integer with variable name Z that can be found in 12 13 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 13 14 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 14 #define paramtypes (std::string)(double)(int) 15 #define paramtokens ("fragment-molecule")("distance")("order") 16 #define paramdescriptions ("p ath to where the fragment configurations shall be stored")("distance in space")("order of a discretization, dissection, ...")17 # undef paramdefaults18 #define paramreferences (p ath)(distance)(order)15 #define paramtypes (std::string)(double)(int)(bool)(std::vector<std::string>) 16 #define paramtokens ("fragment-molecule")("distance")("order")("DoSaturate")("output-types") 17 #define paramdescriptions ("prefix of each fragment file")("distance in space")("order of a discretization, dissection, ...")("do saturate dangling bonds with hydrogen")("type(s) of parsers that output fragment config files") 18 #define paramdefaults (NODEFAULT)(NODEFAULT)(NODEFAULT)("1")("pcp tremolo xyz") 19 #define paramreferences (prefix)(distance)(order)(DoSaturation)(types) 19 20 20 21 #undef statetypes -
src/Actions/GraphAction/DepthFirstSearchAction.cpp
r5837dd r7ba268 25 25 #include "CodePatterns/Log.hpp" 26 26 #include "CodePatterns/Verbose.hpp" 27 #include "Fragmentation/HydrogenSaturation_enum.hpp" 27 28 #include "Graph/CyclicStructureAnalysis.hpp" 28 29 #include "Graph/DepthFirstSearchAnalysis.hpp" 29 30 #include "molecule.hpp" 31 #include "MoleculeLeafClass.hpp" 30 32 #include "Descriptors/MoleculeDescriptor.hpp" 31 33 #include "Descriptors/MoleculeIdDescriptor.hpp" … … 62 64 LocalBackEdgeStack = new std::deque<bond *>; // no need to have it Subgraphs->Leaf->BondCount size 63 65 DFS.PickLocalBackEdges(ListOfAtoms, LocalBackEdgeStack); 64 CyclicStructureAnalysis CycleAnalysis ;66 CyclicStructureAnalysis CycleAnalysis(params.DoSaturation ? DoSaturate : DontSaturate); 65 67 CycleAnalysis(LocalBackEdgeStack); 66 68 delete(LocalBackEdgeStack); -
src/Actions/GraphAction/DepthFirstSearchAction.def
r5837dd r7ba268 12 12 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 13 13 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value 14 #define paramtypes (double) 15 #define paramtokens ("depth-first-search") 16 #define paramdescriptions ("maximum distance to look for neighbors") 17 # undef paramdefaults18 #define paramreferences (distance) 14 #define paramtypes (double)(bool) 15 #define paramtokens ("depth-first-search")("DoSaturate") 16 #define paramdescriptions ("maximum distance to look for neighbors")("whether to treat hydrogen special or not") 17 #define paramdefaults (NODEFAULT)("1") 18 #define paramreferences (distance)(DoSaturation) 19 19 20 20 #undef statetypes -
src/Actions/GraphAction/SubgraphDissectionAction.cpp
r5837dd r7ba268 31 31 #include "Graph/DepthFirstSearchAnalysis.hpp" 32 32 #include "molecule.hpp" 33 #include "MoleculeListClass.hpp" 33 34 #include "World.hpp" 34 35 -
src/Actions/Makefile.am
r5837dd r7ba268 232 232 PARSERACTIONSOURCE = \ 233 233 Actions/ParserAction/ParseTremoloPotentialsAction.cpp \ 234 Actions/ParserAction/Set MpqcParametersAction.cpp \234 Actions/ParserAction/SetParserParametersAction.cpp \ 235 235 Actions/ParserAction/SetOutputFormatsAction.cpp \ 236 236 Actions/ParserAction/SetTremoloAtomdataAction.cpp 237 237 PARSERACTIONHEADER = \ 238 238 Actions/ParserAction/ParseTremoloPotentialsAction.hpp \ 239 Actions/ParserAction/Set MpqcParametersAction.hpp \239 Actions/ParserAction/SetParserParametersAction.hpp \ 240 240 Actions/ParserAction/SetOutputFormatsAction.hpp \ 241 241 Actions/ParserAction/SetTremoloAtomdataAction.hpp 242 242 PARSERACTIONDEFS = \ 243 243 Actions/ParserAction/ParseTremoloPotentialsAction.def \ 244 Actions/ParserAction/Set MpqcParametersAction.def \244 Actions/ParserAction/SetParserParametersAction.def \ 245 245 Actions/ParserAction/SetOutputFormatsAction.def \ 246 246 Actions/ParserAction/SetTremoloAtomdataAction.def -
src/Actions/MoleculeAction/CreateMicelleAction.cpp
r5837dd r7ba268 33 33 #include "LinearAlgebra/Line.hpp" 34 34 #include "molecule.hpp" 35 #include "MoleculeListClass.hpp" 35 36 #include "World.hpp" 36 37 -
src/Actions/MoleculeAction/FillVoidWithMoleculeAction.cpp
r5837dd r7ba268 28 28 #include "Descriptors/MoleculeOrderDescriptor.hpp" 29 29 #include "molecule.hpp" 30 #include "MoleculeListClass.hpp" 30 31 #include "Parser/FormatParserInterface.hpp" 31 32 #include "Parser/FormatParserStorage.hpp" -
src/Actions/MoleculeAction/FillWithMoleculeAction.cpp
r5837dd r7ba268 28 28 #include "Descriptors/MoleculeOrderDescriptor.hpp" 29 29 #include "molecule.hpp" 30 #include "MoleculeListClass.hpp" 30 31 #include "Parser/FormatParserInterface.hpp" 31 32 #include "Parser/FormatParserStorage.hpp" -
src/Actions/MoleculeAction/LoadAction.cpp
r5837dd r7ba268 27 27 #include "Parser/FormatParser_Parameters.hpp" 28 28 #include "molecule.hpp" 29 #include "MoleculeListClass.hpp" 29 30 #include "World.hpp" 30 31 -
src/Actions/ParserAction/SetOutputFormatsAction.cpp
r5837dd r7ba268 45 45 if (!FormatParserStorage::getInstance().add(*iter)) { 46 46 DoeLog(1) && (eLog() << Verbose(1) << "Unknown parser format in ParserSetOutputFormatsAction: '" << *iter << "'" << endl); 47 } else { 48 FormatParserStorage::getInstance().setOutputFormat(*iter); 47 49 } 48 50 } -
src/Actions/ValueStorage.cpp
r5837dd r7ba268 21 21 22 22 #include "CodePatterns/Singleton_impl.hpp" 23 24 #include <iostream> 23 25 24 26 #include "Actions/OptionTrait.hpp" … … 467 469 } 468 470 471 std::ostream & operator<<(std::ostream &ost, const ValueStorage &value) 472 { 473 ost << "ValueStorage currently contains " << value.CurrentValueMap.size() << " elements:" << std::endl; 474 for (std::map<std::string, std::string>::const_iterator iter = value.CurrentValueMap.begin(); 475 iter != value.CurrentValueMap.end(); 476 ++iter) 477 ost << iter->first << "->" << iter->second << ", "; 478 return ost; 479 } 480 481 469 482 CONSTRUCT_SINGLETON(ValueStorage) -
src/Actions/ValueStorage.hpp
r5837dd r7ba268 19 19 #include <boost/program_options.hpp> 20 20 21 #include <iosfwd> 21 22 #include <map> 22 23 #include <set> … … 101 102 class ValueStorage : public Singleton<ValueStorage> { 102 103 friend class Singleton<ValueStorage>; 103 104 friend std::ostream & operator<<(std::ostream &ost, const ValueStorage &value); 104 105 public: 105 106 … … 210 211 const std::string getCurrentValue(std::string actionname); 211 212 213 212 214 protected: 213 215 ValueStorage(); … … 219 221 }; 220 222 223 std::ostream & operator<<(std::ostream &ost, const ValueStorage &value); 224 225 221 226 #endif /* VALUESTORAGE_HPP_ */ -
src/Actions/WorldAction/InputAction.cpp
r5837dd r7ba268 22 22 #include "CodePatterns/Log.hpp" 23 23 #include "molecule.hpp" 24 #include "MoleculeListClass.hpp" 24 25 #include "Parser/FormatParserStorage.hpp" 25 26 #include "CodePatterns/Verbose.hpp" … … 43 44 // molecule *mol = NULL; 44 45 boost::filesystem::ifstream test; 46 FormatParserStorage &parsers = FormatParserStorage::getInstance(); 45 47 46 48 // obtain information … … 61 63 #endif 62 64 DoLog(1) && (Log() << Verbose(1) << "Setting config file name prefix to " << FilenamePrefix << "." << endl); 63 FormatParserStorage::getInstance().SetOutputPrefixForAll(FilenamePrefix);65 parsers.SetOutputPrefixForAll(FilenamePrefix); 64 66 } else { 65 67 DoeLog(1) && (eLog() << Verbose(1) << "Input file does not have a suffix, cannot recognize format." << endl); … … 71 73 DoLog(1) && (Log() << Verbose(1) << "Specified config file " << params.filename << " not found." << endl); 72 74 // DONT FAIL: it's just empty and we use the name. // return Action::failure; 75 // nonetheless, add to output formats 76 parsers.setOutputFormat( parsers.getTypeFromSuffix(FilenameSuffix) ); 73 77 } else { 74 78 DoLog(1) && (Log() << Verbose(1) << "Specified config file found, parsing ... "); … … 76 80 // parse the file 77 81 test.open(params.filename); 78 FormatParserStorage::getInstance().load(test, FilenameSuffix); 82 parsers.load(test, FilenameSuffix); 83 parsers.setOutputFormat( parsers.getTypeFromSuffix(FilenameSuffix) ); 79 84 test.close(); 80 85 -
src/Actions/WorldAction/RepeatBoxAction.cpp
r5837dd r7ba268 24 24 #include "CodePatterns/Log.hpp" 25 25 #include "molecule.hpp" 26 #include "MoleculeListClass.hpp" 26 27 #include "LinearAlgebra/Vector.hpp" 27 28 #include "LinearAlgebra/RealSpaceMatrix.hpp" -
src/Analysis/analysis_bonds.cpp
r5837dd r7ba268 28 28 #include "CodePatterns/Log.hpp" 29 29 #include "molecule.hpp" 30 #include "MoleculeListClass.hpp" 30 31 31 32 /** Calculates the min, mean and maximum bond counts for the given molecule. -
src/Analysis/unittests/AnalysisCorrelationToPointUnitTest.cpp
r5837dd r7ba268 33 33 #include "Element/element.hpp" 34 34 #include "molecule.hpp" 35 #include "MoleculeListClass.hpp" 35 36 #include "linkedcell.hpp" 36 37 #include "Element/periodentafel.hpp" -
src/Analysis/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
r5837dd r7ba268 33 33 #include "Element/element.hpp" 34 34 #include "molecule.hpp" 35 #include "MoleculeListClass.hpp" 35 36 #include "linkedcell.hpp" 36 37 #include "Element/periodentafel.hpp" -
src/Analysis/unittests/AnalysisPairCorrelationUnitTest.cpp
r5837dd r7ba268 31 31 #include "World.hpp" 32 32 #include "atom.hpp" 33 #include "Element/element.hpp" 34 #include "Element/periodentafel.hpp" 35 #include "molecule.hpp" 36 #include "MoleculeListClass.hpp" 37 #include "linkedcell.hpp" 33 38 #include "Tesselation/boundary.hpp" 34 #include "Element/element.hpp"35 #include "molecule.hpp"36 #include "linkedcell.hpp"37 #include "Element/periodentafel.hpp"38 39 #include "Tesselation/tesselation.hpp" 39 40 #include "World.hpp" -
src/Analysis/unittests/CountBondsUnitTest.cpp
r5837dd r7ba268 34 34 #include "Bond/bond.hpp" 35 35 #include "Element/element.hpp" 36 #include "Element/periodentafel.hpp" 36 37 #include "Graph/BondGraph.hpp" 37 38 #include "molecule.hpp" 38 #include " Element/periodentafel.hpp"39 #include "MoleculeListClass.hpp" 39 40 #include "World.hpp" 40 41 -
src/Fragmentation/Makefile.am
r5837dd r7ba268 3 3 4 4 FRAGMENTATIONSOURCE = \ 5 Fragmentation/AdaptivityMap.cpp \ 6 Fragmentation/BondsPerShortestPath.cpp \ 5 7 Fragmentation/EnergyMatrix.cpp \ 6 8 Fragmentation/ForceMatrix.cpp \ 9 Fragmentation/Fragmentation.cpp \ 10 Fragmentation/fragmentation_helpers.cpp \ 11 Fragmentation/Graph.cpp \ 7 12 Fragmentation/helpers.cpp \ 8 13 Fragmentation/HessianMatrix.cpp \ 14 Fragmentation/KeySet.cpp \ 9 15 Fragmentation/KeySetsContainer.cpp \ 10 Fragmentation/MatrixContainer.cpp 16 Fragmentation/MatrixContainer.cpp \ 17 Fragmentation/PowerSetGenerator.cpp \ 18 Fragmentation/UniqueFragments.cpp 11 19 12 20 FRAGMENTATIONHEADER = \ 21 Fragmentation/AdaptivityMap.hpp \ 22 Fragmentation/BondsPerShortestPath.hpp \ 13 23 Fragmentation/defs.hpp \ 14 24 Fragmentation/EnergyMatrix.hpp \ 15 25 Fragmentation/ForceMatrix.hpp \ 26 Fragmentation/Fragmentation.hpp \ 27 Fragmentation/fragmentation_helpers.hpp \ 28 Fragmentation/Graph.hpp \ 29 Fragmentation/helpers.cpp \ 16 30 Fragmentation/helpers.hpp \ 17 31 Fragmentation/HessianMatrix.hpp \ 32 Fragmentation/KeySet.hpp \ 18 33 Fragmentation/KeySetsContainer.hpp \ 19 Fragmentation/MatrixContainer.hpp 34 Fragmentation/MatrixContainer.hpp \ 35 Fragmentation/PowerSetGenerator.hpp \ 36 Fragmentation/UniqueFragments.hpp 20 37 21 38 … … 38 55 ## library file (.so). The library ABI version is defined in configure.ac, so 39 56 ## that all version information is kept in one place. 40 libMolecuilderFragmentation_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)57 #libMolecuilderFragmentation_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION) 41 58 42 59 ## The generated configuration header is installed in its own subdirectory of -
src/Graph/BreadthFirstSearchAdd.cpp
r5837dd r7ba268 32 32 33 33 34 BreadthFirstSearchAdd::BreadthFirstSearchAdd(atom *&_Root, int _BondOrder, bool _IsAngstroem ) :34 BreadthFirstSearchAdd::BreadthFirstSearchAdd(atom *&_Root, int _BondOrder, bool _IsAngstroem, const enum HydrogenSaturation _saturation) : 35 35 BondOrder(_BondOrder), 36 36 Root(_Root), 37 saturation(_saturation), 37 38 IsAngstroem(_IsAngstroem) 38 39 { … … 100 101 AddedBondList[Binder] = Mol->CopyBond(AddedAtomList[Walker->getNr()], AddedAtomList[OtherAtom->getNr()], Binder); 101 102 } else { 102 #ifdef ADDHYDROGEN 103 if (!Mol->AddHydrogenReplacementAtom(Binder, AddedAtomList[Walker->getNr()], Walker, OtherAtom, IsAngstroem)) 104 exit(1); 105 #endif 103 if (saturation == DoSaturate) 104 if (!Mol->AddHydrogenReplacementAtom(Binder, AddedAtomList[Walker->getNr()], Walker, OtherAtom, IsAngstroem)) 105 exit(1); 106 106 } 107 107 } … … 118 118 AddedBondList[Binder] = Mol->CopyBond(AddedAtomList[Walker->getNr()], AddedAtomList[OtherAtom->getNr()], Binder); 119 119 } else { // if it's root bond it has to broken (otherwise we would not create the fragments) 120 #ifdef ADDHYDROGEN 121 if(!Mol->AddHydrogenReplacementAtom(Binder, AddedAtomList[Walker->getNr()], Walker, OtherAtom, IsAngstroem)) 122 exit(1); 123 #endif 120 if (saturation == DoSaturate) 121 if(!Mol->AddHydrogenReplacementAtom(Binder, AddedAtomList[Walker->getNr()], Walker, OtherAtom, IsAngstroem)) 122 exit(1); 124 123 } 125 124 } -
src/Graph/BreadthFirstSearchAdd.hpp
r5837dd r7ba268 18 18 19 19 #include "Bond/GraphEdge.hpp" 20 #include "Fragmentation/HydrogenSaturation_enum.hpp" 20 21 #include "Helpers/defs.hpp" 21 22 #include "types.hpp" … … 28 29 { 29 30 public: 30 BreadthFirstSearchAdd(atom *&_Root, int _BondOrder, bool _IsAngstroem );31 BreadthFirstSearchAdd(atom *&_Root, int _BondOrder, bool _IsAngstroem, const enum HydrogenSaturation _saturation); 31 32 ~BreadthFirstSearchAdd(); 32 33 … … 71 72 std::map<bond *, bond *> AddedBondList; //!< maps from father bond to son 72 73 74 //!> whether to treat hydrogen special or not 75 const enum HydrogenSaturation saturation; 76 77 //!> is angstroem our unit of length 73 78 bool IsAngstroem; 74 79 }; -
src/Graph/CheckAgainstAdjacencyFile.cpp
r5837dd r7ba268 28 28 #include "CodePatterns/Assert.hpp" 29 29 #include "CodePatterns/Log.hpp" 30 #include "CodePatterns/Verbose.hpp" 30 #include "CodePatterns/Range.hpp" 31 #include "Descriptors/AtomIdDescriptor.hpp" 31 32 #include "Helpers/defs.hpp" 32 33 CheckAgainstAdjacencyFile::CheckAgainstAdjacencyFile() : 34 CurrentBonds(new int[MAXBONDS]), 33 #include "World.hpp" 34 35 CheckAgainstAdjacencyFile::CheckAgainstAdjacencyFile(World::AtomSet::const_iterator AtomMapBegin, World::AtomSet::const_iterator AtomMapEnd) : 35 36 status(true), 36 37 NonMatchNumber(0) 37 38 { 38 for(int i=0;i<MAXBONDS;i++) 39 CurrentBonds[i] = 0; 39 CreateInternalMap(AtomMapBegin, AtomMapEnd); 40 40 } 41 41 42 42 CheckAgainstAdjacencyFile::~CheckAgainstAdjacencyFile() 43 43 { 44 delete[](CurrentBonds); 45 } 46 47 void CheckAgainstAdjacencyFile::CompareBonds(const atom *&Walker, size_t &CurrentBondsOfAtom, int AtomNr, std::map<int, atom*> &ListOfAtoms) 48 { 49 size_t j = 0; 50 int id = -1; 51 52 //Log() << Verbose(2) << "Walker is " << *Walker << ", bond partners: "; 53 const BondList& ListOfBonds = Walker->getListOfBonds(); 54 if (CurrentBondsOfAtom == ListOfBonds.size()) { 55 for (BondList::const_iterator Runner = ListOfBonds.begin(); 56 Runner != ListOfBonds.end(); 57 ++Runner) { 58 id = (*Runner)->GetOtherAtom(Walker)->getNr(); 59 j = 0; 60 for (; (j < CurrentBondsOfAtom) && (CurrentBonds[j++] != id);) 61 ; // check against all parsed bonds 62 if (CurrentBonds[j - 1] != id) { // no match ? Then mark in ListOfAtoms 63 ListOfAtoms[AtomNr] = NULL; 64 NonMatchNumber++; 65 status = false; 66 ELOG(2, id << " can not be found in list." << endl); 67 } else { 68 //Log() << Verbose(0) << "[" << id << "]\t"; 69 } 70 } 71 //Log() << Verbose(0) << endl; 72 } else { 73 LOG(0, "STATUS: Number of bonds for Atom " << *Walker << " does not match, parsed " << CurrentBondsOfAtom << " against " << ListOfBonds.size() << "."); 74 status = false; 75 } 76 } 77 ; 78 79 /** Checks contents of adjacency file against bond structure in structure molecule. 80 * \param File file to parser 81 * \param ListOfAtoms map from int (index in file) to atom 82 * \return true - structure is equal, false - not equivalence 83 */ 84 bool CheckAgainstAdjacencyFile::operator()(std::ifstream &File, std::map<int, atom*> ListOfAtoms) 85 { 86 LOG(0, "STATUS: Looking at bond structure stored in adjacency file and comparing to present one ... "); 44 ExternalAtomBondMap.clear(); 45 InternalAtomBondMap.clear(); 46 } 47 48 /** Parses the bond partners of each atom from an external file into \a AtomBondMap. 49 * 50 * @param File file to parse 51 * @return true - everything ok, false - error while parsing 52 */ 53 bool CheckAgainstAdjacencyFile::ParseInExternalMap(std::istream &File) 54 { 87 55 if (File.fail()) { 88 56 LOG(1, "STATUS: Adjacency file not found." << endl); … … 90 58 } 91 59 60 ExternalAtomBondMap.clear(); 92 61 char buffer[MAXSTRINGSIZE]; 93 62 int tmp; … … 99 68 int AtomNr = -1; 100 69 line >> AtomNr; 101 size_t CurrentBondsOfAtom = -1; // we count one too far due to line end102 70 // parse into structure 103 71 if (AtomNr >= 0) { 104 ASSERT(ListOfAtoms.count(AtomNr), 105 "CheckAgainstAdjacencyFile::operator() - index " 106 +toString(AtomNr)+" not present in ListOfAtoms."); 107 const atom *Walker = ListOfAtoms[AtomNr]; 72 const atom *Walker = World::getInstance().getAtom(AtomById(AtomNr)); 73 ASSERT(Walker != NULL, 74 "CheckAgainstAdjacencyFile::ParseInExternalMap() - there is no atom with id "+toString(AtomNr)+"."); 75 if (Walker == NULL) 76 return false; 77 // parse bond partner ids associated to AtomNr 108 78 while (line >> ws >> tmp) { 109 79 LOG(3, "INFO: Recognized bond partner " << tmp); 110 CurrentBonds[++CurrentBondsOfAtom] = tmp; 111 ASSERT(CurrentBondsOfAtom < MAXBONDS, 112 "molecule::CheckAdjacencyFileAgainstMolecule() - encountered more bonds than allowed: " 113 +toString(CurrentBondsOfAtom)+" >= "+toString(int(MAXBONDS))+"!"); 80 ExternalAtomBondMap.insert( std::make_pair(AtomNr, tmp) ); 114 81 } 115 // compare against present bonds116 CompareBonds(Walker, CurrentBondsOfAtom, AtomNr, ListOfAtoms);117 82 } else { 118 if (AtomNr != -1) 83 if (AtomNr != -1) { 119 84 ELOG(2, AtomNr << " is negative."); 85 return false; 86 } 120 87 } 121 88 } 89 return true; 90 } 91 92 /** Fills the InternalAtomBondMap from the atoms given by the two iterators. 93 * 94 * @param AtomMapBegin iterator pointing to begin of map (think of World's SelectionIterator) 95 * @param AtomMapEnd iterator pointing past end of map (think of World's SelectionIterator) 96 */ 97 void CheckAgainstAdjacencyFile::CreateInternalMap(World::AtomSet::const_iterator &AtomMapBegin, World::AtomSet::const_iterator &AtomMapEnd) 98 { 99 InternalAtomBondMap.clear(); 100 // go through each atom in the list 101 for (World::AtomSet::const_iterator iter = AtomMapBegin; iter != AtomMapEnd; ++iter) { 102 const atom *Walker = iter->second; 103 const atomId_t WalkerId = Walker->getId(); 104 ASSERT(WalkerId != (size_t)-1, 105 "CheckAgainstAdjacencyFile::CreateInternalMap() - Walker has no id."); 106 const BondList& ListOfBonds = Walker->getListOfBonds(); 107 // go through each of its bonds 108 for (BondList::const_iterator Runner = ListOfBonds.begin(); 109 Runner != ListOfBonds.end(); 110 ++Runner) { 111 const atomId_t id = (*Runner)->GetOtherAtom(Walker)->getId(); 112 ASSERT(id != (size_t)-1, 113 "CheckAgainstAdjacencyFile::CreateInternalMap() - OtherAtom has not id."); 114 InternalAtomBondMap.insert( std::make_pair(WalkerId, id) ); 115 } 116 } 117 } 118 119 /** Checks contents of adjacency file against bond structure in structure molecule. 120 * \param File file to parser 121 * \return true - structure is equal, false - not equivalence 122 */ 123 bool CheckAgainstAdjacencyFile::operator()(std::istream &File) 124 { 125 LOG(0, "STATUS: Looking at bond structure stored in adjacency file and comparing to present one ... "); 126 127 bool status = true; 128 129 status = status && ParseInExternalMap(File); 130 status = status && CompareInternalExternalMap(); 122 131 123 132 if (status) { // if equal we parse the KeySetFile … … 127 136 return status; 128 137 } 129 ; 138 139 template <class T> 140 CheckAgainstAdjacencyFile::KeysSet getKeys(const CheckAgainstAdjacencyFile::AtomBondRange &_range) 141 { 142 CheckAgainstAdjacencyFile::KeysSet Keys; 143 for (typename T::const_iterator iter = _range.first; 144 iter != _range.second; 145 ++iter) { 146 Keys.insert( iter->first ); 147 } 148 return Keys; 149 } 150 151 template <class T> 152 CheckAgainstAdjacencyFile::ValuesSet getValues(const CheckAgainstAdjacencyFile::AtomBondRange&_range) 153 { 154 CheckAgainstAdjacencyFile::ValuesSet Values; 155 for (typename T::const_iterator iter = _range.first; 156 iter != _range.second; 157 ++iter) { 158 Values.insert( iter->second ); 159 } 160 return Values; 161 } 162 163 /** Counts the number of mismatching items in each set. 164 * 165 * @param firstset first set 166 * @param secondset second set 167 * @return number of items that don't match between first and second set 168 */ 169 template <class T> 170 size_t getMismatchingItems(const T &firstset, const T &secondset) 171 { 172 size_t Mismatch = 0; 173 typename T::const_iterator firstiter = firstset.begin(); 174 typename T::const_iterator seconditer = secondset.begin(); 175 for (; (firstiter != firstset.end()) && (seconditer != secondset.end()); 176 ++firstiter, ++seconditer) { 177 if (*firstiter != *seconditer) 178 ++Mismatch; 179 } 180 return Mismatch; 181 } 182 183 /** Compares InternalAtomBondMap and ExternalAtomBondMap and sets NonMatchNumber. 184 * 185 * @return true - both maps are the same, false - both maps diverge by NonMatchNumber counts. 186 */ 187 bool CheckAgainstAdjacencyFile::CompareInternalExternalMap() 188 { 189 NonMatchNumber = 0; 190 // check whether sizes match 191 if (ExternalAtomBondMap.size() != InternalAtomBondMap.size()) { 192 NonMatchNumber = abs((int)ExternalAtomBondMap.size() - (int)InternalAtomBondMap.size()); 193 LOG(2, "INFO: " << NonMatchNumber << " entries don't match."); 194 return false; 195 } 196 // extract keys and check whether they match 197 const AtomBondRange Intrange(InternalAtomBondMap.begin(), InternalAtomBondMap.end()); 198 const AtomBondRange Extrange(ExternalAtomBondMap.begin(), ExternalAtomBondMap.end()); 199 KeysSet InternalKeys( getKeys<AtomBondMap>(Intrange) ); 200 KeysSet ExternalKeys( getKeys<AtomBondMap>(Extrange) ); 201 202 // std::cout << "InternalKeys: " << InternalKeys << std::endl; 203 // std::cout << "ExternalKeys: " << ExternalKeys << std::endl; 204 205 // check for same amount of keys 206 if (InternalKeys.size() != ExternalKeys.size()) { 207 NonMatchNumber = abs((int)ExternalKeys.size() - (int)InternalKeys.size()); 208 LOG(2, "INFO: Number of keys don't match: " 209 << InternalKeys.size() << " != " << ExternalKeys.size()); 210 return false; 211 } 212 213 // check items against one another 214 NonMatchNumber = getMismatchingItems(InternalKeys, ExternalKeys); 215 216 if (NonMatchNumber != 0) { 217 LOG(2, "INFO: " << NonMatchNumber << " keys are not the same."); 218 return false; 219 } 220 221 // now check each map per key 222 for (KeysSet::const_iterator keyIter = InternalKeys.begin(); 223 keyIter != InternalKeys.end(); 224 ++keyIter) { 225 // std::cout << "Current key is " << *keyIter << std::endl; 226 const AtomBondRange IntRange( InternalAtomBondMap.equal_range(*keyIter) ); 227 const AtomBondRange ExtRange( ExternalAtomBondMap.equal_range(*keyIter) ); 228 ValuesSet InternalValues( getValues<AtomBondMap>(IntRange) ); 229 ValuesSet ExternalValues( getValues<AtomBondMap>(ExtRange) ); 230 // std::cout << "InternalValues: " << InternalValues << std::endl; 231 // std::cout << "ExternalValues: " << ExternalValues << std::endl; 232 NonMatchNumber += getMismatchingItems(InternalValues, ExternalValues); 233 } 234 if (NonMatchNumber != 0) { 235 LOG(2, "INFO: " << NonMatchNumber << " keys are not the same."); 236 return false; 237 } else { 238 LOG(2, "INFO: All keys are the same."); 239 return true; 240 } 241 } -
src/Graph/CheckAgainstAdjacencyFile.hpp
r5837dd r7ba268 16 16 #include <iosfwd> 17 17 #include <map> 18 #include <set> 19 20 #include "types.hpp" 21 #include "World.hpp" 18 22 19 23 class atom; … … 21 25 class CheckAgainstAdjacencyFile 22 26 { 27 //!> Unit test is granted access to internal data 28 friend class CheckAgainstAdjacencyFileTest; 23 29 public: 24 CheckAgainstAdjacencyFile( );30 CheckAgainstAdjacencyFile(World::AtomSet::const_iterator AtomMapBegin, World::AtomSet::const_iterator AtomMapEnd); 25 31 ~CheckAgainstAdjacencyFile(); 26 32 27 bool operator()(std::i fstream &File, std::map<int, atom*> ListOfAtoms);33 bool operator()(std::istream &File); 28 34 29 35 private: 30 enum {MAXBONDS=8}; 31 32 int *CurrentBonds; 36 typedef std::set<atomId_t> KeysSet; 37 typedef std::set<atomId_t> ValuesSet; 38 typedef std::pair<atomId_t, atomId_t> AtomBondPair; 39 typedef std::multimap< atomId_t, atomId_t > AtomBondMap; 40 typedef std::pair<AtomBondMap::const_iterator, AtomBondMap::const_iterator> AtomBondRange; 41 AtomBondMap InternalAtomBondMap; 42 AtomBondMap ExternalAtomBondMap; 33 43 bool status; 34 44 int NonMatchNumber; 35 45 36 void CompareBonds(const atom *&Walker, size_t &CurrentBondsOfAtom, int AtomNr, std::map<int, atom*> &ListOfAtoms); 46 void CreateInternalMap(World::AtomSet::const_iterator &AtomMapBegin, World::AtomSet::const_iterator &AtomMapEnd); 47 bool ParseInExternalMap(std::istream &File); 48 bool CompareInternalExternalMap(); 37 49 }; 38 50 -
src/Graph/ConnectedSubgraph.cpp
r5837dd r7ba268 29 29 #include "CodePatterns/Verbose.hpp" 30 30 #include "molecule.hpp" 31 #include "MoleculeListClass.hpp" 31 32 #include "World.hpp" 32 33 -
src/Graph/CyclicStructureAnalysis.cpp
r5837dd r7ba268 31 31 #include "molecule.hpp" 32 32 33 CyclicStructureAnalysis::CyclicStructureAnalysis() 33 CyclicStructureAnalysis::CyclicStructureAnalysis(const enum HydrogenSaturation _saturation) : 34 saturation(_saturation) 34 35 {} 35 36 … … 101 102 if ((*Runner) != BackEdge) { // only walk along DFS spanning tree (otherwise we always find SP of one being backedge Binder) 102 103 OtherAtom = (*Runner)->GetOtherAtom(Walker); 103 #ifdef ADDHYDROGEN 104 if (OtherAtom->getType()->getAtomicNumber() != 1) { 105 #endif 106 LOG(2, "INFO: Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << "." << endl); 107 if (ColorList[OtherAtom->getNr()] == GraphEdge::white) { 108 TouchedStack.push_front(OtherAtom); 109 ColorList[OtherAtom->getNr()] = GraphEdge::lightgray; 110 PredecessorList[OtherAtom->getNr()] = Walker; // Walker is the predecessor 111 ShortestPathList[OtherAtom->getNr()] = ShortestPathList[Walker->getNr()] + 1; 112 LOG(2, "INFO: Coloring OtherAtom " << OtherAtom->getName() << " lightgray, its predecessor is " << Walker->getName() << " and its Shortest Path is " << ShortestPathList[OtherAtom->getNr()] << " egde(s) long." << endl); 113 //if (ShortestPathList[OtherAtom->getNr()] < MinimumRingSize[Walker->GetTrueFather()->getNr()]) { // Check for maximum distance 114 LOG(3, "ACCEPT: Putting OtherAtom into queue." << endl); 115 BFSStack.push_front(OtherAtom); 116 //} 104 if ((saturation == DontSaturate) || (OtherAtom->getType()->getAtomicNumber() != 1)) { 105 LOG(2, "INFO: Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << "." << endl); 106 if (ColorList[OtherAtom->getNr()] == GraphEdge::white) { 107 TouchedStack.push_front(OtherAtom); 108 ColorList[OtherAtom->getNr()] = GraphEdge::lightgray; 109 PredecessorList[OtherAtom->getNr()] = Walker; // Walker is the predecessor 110 ShortestPathList[OtherAtom->getNr()] = ShortestPathList[Walker->getNr()] + 1; 111 LOG(2, "INFO: Coloring OtherAtom " << OtherAtom->getName() << " lightgray, its predecessor is " << Walker->getName() << " and its Shortest Path is " << ShortestPathList[OtherAtom->getNr()] << " egde(s) long." << endl); 112 //if (ShortestPathList[OtherAtom->getNr()] < MinimumRingSize[Walker->GetTrueFather()->getNr()]) { // Check for maximum distance 113 LOG(3, "ACCEPT: Putting OtherAtom into queue." << endl); 114 BFSStack.push_front(OtherAtom); 115 //} 116 } else { 117 LOG(3, "REJECT: Not Adding, has already been visited." << endl); 118 } 119 if (OtherAtom == Root) 120 break; 117 121 } else { 118 LOG(3, "REJECT: Not Adding, has already been visited." << endl); 122 LOG(2, "INFO: Skipping hydrogen atom " << *OtherAtom << "." << endl); 123 ColorList[OtherAtom->getNr()] = GraphEdge::black; 119 124 } 120 if (OtherAtom == Root)121 break;122 #ifdef ADDHYDROGEN123 } else {124 LOG(2, "INFO: Skipping hydrogen atom " << *OtherAtom << "." << endl);125 ColorList[OtherAtom->getNr()] = GraphEdge::black;126 }127 #endif128 125 } else { 129 126 LOG(2, "REJECT: Bond " << *(*Runner) << " not Visiting, is the back edge." << endl); -
src/Graph/CyclicStructureAnalysis.hpp
r5837dd r7ba268 18 18 19 19 #include "Bond/GraphEdge.hpp" 20 #include "Fragmentation/HydrogenSaturation_enum.hpp" 20 21 #include "Helpers/defs.hpp" 21 22 #include "types.hpp" … … 28 29 { 29 30 public: 30 CyclicStructureAnalysis();31 explicit CyclicStructureAnalysis(const enum HydrogenSaturation _saturation); 31 32 ~CyclicStructureAnalysis(); 32 33 … … 58 59 atom *Root; 59 60 61 //!> whether to treat hydrogen special or not 62 const enum HydrogenSaturation saturation; 63 60 64 bool BackStepping; 61 65 int CurrentGraphNr; -
src/Graph/DepthFirstSearchAnalysis.cpp
r5837dd r7ba268 33 33 #include "Descriptors/AtomDescriptor.hpp" 34 34 #include "molecule.hpp" 35 #include "MoleculeLeafClass.hpp" 36 #include "MoleculeListClass.hpp" 35 37 #include "World.hpp" 36 38 -
src/Graph/Makefile.am
r5837dd r7ba268 39 39 ## library file (.so). The library ABI version is defined in configure.ac, so 40 40 ## that all version information is kept in one place. 41 libMolecuilderGraph_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)41 #libMolecuilderGraph_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION) 42 42 43 43 ## The generated configuration header is installed in its own subdirectory of -
src/Graph/unittests/Makefile.am
r5837dd r7ba268 3 3 4 4 GRAPHTESTSSOURCES = \ 5 ../Graph/unittests/BondGraphUnitTest.cpp 5 ../Graph/unittests/BondGraphUnitTest.cpp \ 6 ../Graph/unittests/CheckAgainstAdjacencyFileUnitTest.cpp 6 7 7 8 GRAPHTESTSHEADERS = \ 8 ../Graph/unittests/BondGraphUnitTest.hpp 9 ../Graph/unittests/BondGraphUnitTest.hpp \ 10 ../Graph/unittests/CheckAgainstAdjacencyFileUnitTest.hpp 9 11 10 12 GRAPHTESTS = \ 11 BondGraphUnitTest 13 BondGraphUnitTest \ 14 CheckAgainstAdjacencyFileUnitTest 15 12 16 13 17 TESTS += $(GRAPHTESTS) … … 28 32 BondGraphUnitTest_LDADD = ${GRAPHLIBS} 29 33 34 CheckAgainstAdjacencyFileUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 35 ../Graph/unittests/CheckAgainstAdjacencyFileUnitTest.cpp \ 36 ../Graph/unittests/CheckAgainstAdjacencyFileUnitTest.hpp 37 CheckAgainstAdjacencyFileUnitTest_LDADD = ${ALLLIBS} 38 30 39 31 40 -
src/Makefile.am
r5837dd r7ba268 10 10 include Analysis/Makefile.am 11 11 include Element/Makefile.am 12 include Fragmentation/Makefile.am 12 13 include Graph/Makefile.am 13 14 include Helpers/Makefile.am 14 include Fragmentation/Makefile.am15 15 include Parser/Makefile.am 16 16 include RandomNumbers/Makefile.am … … 171 171 ConfigFileBuffer.cpp \ 172 172 Formula.cpp \ 173 graph.cpp \174 173 linkedcell.cpp \ 174 MoleculeLeafClass.cpp \ 175 175 moleculelist.cpp \ 176 176 molecule.cpp \ 177 molecule_fragmentation.cpp \178 177 molecule_geometry.cpp \ 179 178 molecule_graph.cpp \ … … 196 195 ConfigFileBuffer.hpp \ 197 196 Formula.hpp \ 198 graph.hpp \199 197 linkedcell.hpp \ 198 MoleculeLeafClass.hpp \ 200 199 molecule.hpp \ 201 200 ThermoStatContainer.hpp \ -
src/Parser/FormatParserStorage.cpp
r5837dd r7ba268 41 41 #include "CodePatterns/Singleton_impl.hpp" 42 42 43 const std::string FormatParserStorage::unknownTypeString("unknown"); 43 44 44 45 /** Constructor of class FormatParserStorage. … … 49 50 ParserStream.resize(ParserTypes_end, NULL); 50 51 ParserPresent.resize(ParserTypes_end, false); 52 ParserDesiredOutputFormat.resize(ParserTypes_end, false); 51 53 52 54 #include "ParserTypes.def" … … 122 124 for (ParserTypes iter = ParserTypes_begin; iter < ParserTypes_end; ++iter) 123 125 if (ParserPresent[iter]) { 124 if (ParserStream[iter]->is_open()) 125 ParserStream[iter]->close(); 126 delete ParserStream[iter]; 126 if (ParserStream[iter] != NULL) { 127 if (ParserStream[iter]->is_open()) 128 ParserStream[iter]->close(); 129 delete ParserStream[iter]; 130 } 127 131 delete ParserList[iter]; 128 132 } … … 137 141 }; 138 142 139 143 /** Sets \a type as a format to be stored on call of SaveAll. 144 * 145 * @param type type to add to desired output formats 146 */ 147 void FormatParserStorage::setOutputFormat(ParserTypes type) 148 { 149 LOG(0, "STATUS: Adding " << ParserNames[type] << " type to output."); 150 ParserDesiredOutputFormat[type] = true; 151 } 152 153 /** Sets \a type as a format to be stored on call of SaveAll. 154 * 155 * @param type type to add to desired output formats 156 */ 157 void FormatParserStorage::setOutputFormat(std::string type) 158 { 159 std::map<std::string, ParserTypes>::const_iterator iter = ParserLookupNames.find(type); 160 ASSERT(iter != ParserLookupNames.end(), 161 "FormatParserStorage::setOutputFormat() - output format "+type+" is unknown."); 162 setOutputFormat(iter->second); 163 } 164 165 /** Saves the world in the desired output formats. 166 * 167 */ 140 168 void FormatParserStorage::SaveAll() 141 169 { 142 170 std::string filename; 143 171 for (ParserTypes iter = ParserTypes_begin; iter < ParserTypes_end; ++iter) 144 if (ParserPresent[iter] ) {172 if (ParserPresent[iter] && ParserDesiredOutputFormat[iter]) { 145 173 filename = prefix; 146 174 filename += "."; … … 170 198 } 171 199 200 const std::string &FormatParserStorage::getNameFromType(ParserTypes type) 201 { 202 if (ParserNames.find(type) == ParserNames.end()) { 203 DoeLog(1) && (eLog() << Verbose(1) << "Unknown type " << type << "." << endl); 204 return unknownTypeString; 205 } else 206 return ParserNames[type]; 207 } 208 209 const std::string &FormatParserStorage::getSuffixFromType(ParserTypes type) 210 { 211 if (ParserSuffixes.find(type) == ParserSuffixes.end()) { 212 DoeLog(1) && (eLog() << Verbose(1) << "Unknown type " << type << "." << endl); 213 return unknownTypeString; 214 } else 215 return ParserSuffixes[type]; 216 } 217 172 218 bool FormatParserStorage::add(ParserTypes ptype) 173 219 { 174 220 if (ptype != ParserTypes_end) { 175 221 if (ParserAddFunction.find(ptype) != ParserAddFunction.end()) { 176 LOG(0, "STATUS: Adding " << ParserNames[ptype] << " type to output.");177 222 (getInstance().*(ParserAddFunction[ptype]))(); // we still need an object to work on ... 178 223 return true; -
src/Parser/FormatParserStorage.hpp
r5837dd r7ba268 41 41 bool saveSelectedMolecules(std::ostream &output, std::string suffix); 42 42 bool saveWorld(std::ostream &output, std::string suffix); 43 44 void setOutputFormat(ParserTypes type); 45 void setOutputFormat(std::string type); 43 46 44 47 FormatParserInterface &get(ParserTypes _type); … … 46 49 ParserTypes getTypeFromName(std::string type); 47 50 ParserTypes getTypeFromSuffix(std::string type); 51 52 const std::string &getSuffixFromType(ParserTypes type); 53 const std::string &getNameFromType(ParserTypes type); 48 54 49 55 void SetOutputPrefixForAll(std::string &_prefix); … … 64 70 std::vector<bool> ParserPresent; 65 71 72 // which parser is already present 73 std::vector<bool> ParserDesiredOutputFormat; 74 66 75 // default suffix of each parser type 67 76 std::map<ParserTypes, std::string> ParserSuffixes; … … 77 86 // prefix of the filenames to use on save 78 87 std::string prefix; 88 89 static const std::string unknownTypeString; 79 90 80 91 public: -
src/Parser/FormatParser_Parameters.cpp
r5837dd r7ba268 129 129 iter != params.storage->getEndIter(); 130 130 ++iter) 131 output << iter->first132 131 if (!iter->second->get().empty()) 132 output << iter->first << "=" << iter->second->get() << ";"; 133 133 ost << output.str(); 134 134 return ost; … … 160 160 if (paramtokens.begin() != paramtokens.end()) { 161 161 tokenizer::iterator tok_paramiter = paramtokens.begin(); 162 ASSERT(tok_paramiter != paramtokens.end(), 163 "operator<< on FormatParser_Parameters - missing value before ' =' in token "+*tok_iter+"!"); 162 164 tokenizer::iterator tok_valueiter = tok_paramiter; 163 165 tokenizer::iterator tok_checkiter = ++tok_valueiter; 164 ++tok_checkiter;165 LOG(3, "INFO: key is '" << *tok_paramiter << "', value is '" << *tok_valueiter << "'.");166 // TODO: throw exception instead of ASSERT167 ASSERT(tok_paramiter != paramtokens.end(),168 "operator<< on FormatParser_Parameters - missing value before ' =' in token "+*tok_iter+"!");169 166 ASSERT(tok_valueiter != paramtokens.end(), 170 167 "operator<< on FormatParser_Parameters - missing value after ' =' in token "+*tok_iter+"!"); 168 ++tok_checkiter; 171 169 ASSERT(tok_checkiter == paramtokens.end(), 172 170 "operator<< on FormatParser_Parameters - still more tokens after ' =' in token "+*tok_iter+":" 173 171 +*tok_checkiter+"!"); 172 LOG(3, "INFO: key is '" << *tok_paramiter << "', value is '" << *tok_valueiter << "'."); 173 // TODO: throw exception instead of ASSERT 174 174 std::string key(*tok_paramiter); 175 175 std::string value(*tok_valueiter); -
src/Parser/FormatParser_common.cpp
r5837dd r7ba268 33 33 */ 34 34 FormatParser_common::FormatParser_common(FormatParser_Parameters *_parameters) : 35 Observer("FormatParser_common") 35 Observer("FormatParser_common"), 36 saveStream(NULL) 36 37 { 37 38 parameters = _parameters; … … 58 59 */ 59 60 void FormatParser_common::update(Observable *publisher) { 60 if ( !saveStream) {61 cerr << "Please invoke setOstream() so the parser knows where to save the World's data." << endl;62 return;61 if (saveStream != NULL) { // only store when a saveStream is given 62 std::vector<atom *> atoms = World::getInstance().getAllAtoms(); 63 save(saveStream, atoms); 63 64 } 64 65 std::vector<atom *> atoms = World::getInstance().getAllAtoms();66 save(saveStream, atoms);67 65 } 68 66 -
src/Parser/MpqcParser.cpp
r5837dd r7ba268 31 31 #include "Element/element.hpp" 32 32 #include "molecule.hpp" 33 #include "MoleculeListClass.hpp" 33 34 #include "CodePatterns/Log.hpp" 34 35 #include "CodePatterns/toString.hpp" -
src/Parser/PcpParser.cpp
r5837dd r7ba268 33 33 #include "LinearAlgebra/RealSpaceMatrix.hpp" 34 34 #include "molecule.hpp" 35 #include "MoleculeListClass.hpp" 35 36 #include "PcpParser.hpp" 36 37 #include "Element/periodentafel.hpp" -
src/Parser/PdbParser.cpp
r5837dd r7ba268 24 24 #include "CodePatterns/toString.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 #include "Descriptors/AtomIdDescriptor.hpp" 27 #include "World.hpp" 26 28 27 #include "atom.hpp" 29 28 #include "Bond/bond.hpp" 29 #include "Descriptors/AtomIdDescriptor.hpp" 30 30 #include "Element/element.hpp" 31 #include "Element/periodentafel.hpp" 31 32 #include "molecule.hpp" 32 #include "Element/periodentafel.hpp" 33 #include "Descriptors/AtomIdDescriptor.hpp" 33 #include "MoleculeListClass.hpp" 34 34 #include "Parser/PdbParser.hpp" 35 35 #include "World.hpp" -
src/Parser/Psi3Parser.cpp
r5837dd r7ba268 32 32 #include "Element/periodentafel.hpp" 33 33 #include "molecule.hpp" 34 #include "MoleculeListClass.hpp" 34 35 #include "CodePatterns/Log.hpp" 35 36 #include "CodePatterns/toString.hpp" -
src/Parser/TremoloParser.cpp
r5837dd r7ba268 24 24 #include "CodePatterns/toString.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 27 #include "TremoloParser.hpp" 28 29 #include "atom.hpp" 30 #include "Bond/bond.hpp" 31 #include "Descriptors/AtomIdDescriptor.hpp" 32 #include "Element/element.hpp" 33 #include "Element/periodentafel.hpp" 34 #include "molecule.hpp" 35 #include "MoleculeListClass.hpp" 27 36 #include "World.hpp" 28 37 #include "WorldTime.hpp" 29 #include "atom.hpp" 30 #include "Bond/bond.hpp" 31 #include "Element/element.hpp" 32 #include "molecule.hpp" 33 #include "Element/periodentafel.hpp" 34 #include "Descriptors/AtomIdDescriptor.hpp" 38 35 39 #include <map> 36 40 #include <vector> -
src/Parser/XyzParser.cpp
r5837dd r7ba268 24 24 #include "CodePatterns/Log.hpp" 25 25 #include "CodePatterns/Verbose.hpp" 26 26 27 #include "XyzParser.hpp" 27 #include "World.hpp" 28 28 29 #include "atom.hpp" 29 #include "molecule.hpp"30 30 #include "Element/element.hpp" 31 31 #include "Element/periodentafel.hpp" 32 #include "molecule.hpp" 33 #include "MoleculeListClass.hpp" 34 #include "World.hpp" 32 35 33 36 using namespace std; -
src/Tesselation/boundary.cpp
r5837dd r7ba268 35 35 #include "linkedcell.hpp" 36 36 #include "molecule.hpp" 37 #include "MoleculeListClass.hpp" 37 38 #include "PointCloudAdaptor.hpp" 38 39 #include "RandomNumbers/RandomNumberGeneratorFactory.hpp" -
src/UIElements/MainWindow.hpp
r5837dd r7ba268 15 15 16 16 17 class MoleculeListClass;18 class config;19 class periodentafel;20 21 class Menu;22 23 17 class MainWindow 24 18 { -
src/UIElements/TextUI/TextWindow.cpp
r5837dd r7ba268 47 47 #include "Element/periodentafel.hpp" 48 48 49 // config::SaveAll() and enumerate()50 #include " molecule.hpp"49 // needed due to Enumerate() 50 #include "MoleculeListClass.hpp" 51 51 52 52 #include <iostream> -
src/UIElements/Views/Qt4/QtWorldView.cpp
r5837dd r7ba268 27 27 #include "Formula.hpp" 28 28 #include "molecule.hpp" 29 #include "MoleculeListClass.hpp" 29 30 30 31 using namespace std; -
src/World.cpp
r5837dd r7ba268 36 36 #include "Descriptors/MoleculeDescriptor_impl.hpp" 37 37 #include "Descriptors/SelectiveIterator_impl.hpp" 38 #include "Element/periodentafel.hpp" 38 39 #include "Graph/DepthFirstSearchAnalysis.hpp" 39 40 #include "Helpers/defs.hpp" 40 41 #include "LinearAlgebra/RealSpaceMatrix.hpp" 41 42 #include "molecule.hpp" 42 #include " Element/periodentafel.hpp"43 #include "MoleculeListClass.hpp" 43 44 #include "ThermoStatContainer.hpp" 44 45 #include "WorldTime.hpp" -
src/config.cpp
r5837dd r7ba268 35 35 #include "ConfigFileBuffer.hpp" 36 36 #include "Element/element.hpp" 37 #include "Element/periodentafel.hpp" 37 38 #include "Graph/BondGraph.hpp" 38 39 #include "Helpers/helpers.hpp" 39 40 #include "LinearAlgebra/RealSpaceMatrix.hpp" 40 41 #include "molecule.hpp" 41 #include "molecule.hpp" 42 #include "Element/periodentafel.hpp" 42 #include "MoleculeListClass.hpp" 43 43 #include "ThermoStatContainer.hpp" 44 44 #include "World.hpp" -
src/molecule.cpp
r5837dd r7ba268 33 33 #include "config.hpp" 34 34 #include "Element/element.hpp" 35 #include "graph.hpp"36 35 #include "Graph/BondGraph.hpp" 37 36 #include "LinearAlgebra/Exceptions.hpp" -
src/molecule.hpp
r5837dd r7ba268 24 24 25 25 #include "types.hpp" 26 #include "graph.hpp"27 26 #include "CodePatterns/Observer.hpp" 28 27 #include "CodePatterns/ObservedIterator.hpp" 29 28 #include "CodePatterns/Cacheable.hpp" 29 #include "Fragmentation/HydrogenSaturation_enum.hpp" 30 30 #include "Helpers/defs.hpp" 31 31 #include "Formula.hpp" … … 43 43 class element; 44 44 class ForceMatrix; 45 class Graph; 45 46 class LinkedCell; 46 47 class molecule; … … 53 54 54 55 /******************************** Some definitions for easier reading **********************************/ 55 56 #define MoleculeList list <molecule *>57 #define MoleculeListTest pair <MoleculeList::iterator, bool>58 56 59 57 /************************************* Class definitions ****************************************/ … … 189 187 void Align(Vector *n); 190 188 void Scale(const double ** const factor); 191 void DeterminePeriodicCenter(Vector ¢er );189 void DeterminePeriodicCenter(Vector ¢er, const enum HydrogenSaturation _saturation = DoSaturate); 192 190 Vector * DetermineCenterOfGravity() const; 193 191 Vector * DetermineCenterOfAll() const; … … 212 210 213 211 /// Fragment molecule by two different approaches: 214 int FragmentMolecule(int Order, std::string &prefix, DepthFirstSearchAnalysis &DFS);215 bool CheckOrderAtSite(bool *AtomMask, Graph *GlobalKeySetList, int Order, std::string path = "");216 212 bool StoreBondsToFile(std::string filename, std::string path = ""); 217 213 bool StoreAdjacencyToFile(std::string filename, std::string path = ""); 218 bool ParseOrderAtSiteFromFile(std::string &path);219 bool StoreOrderAtSiteFile(std::string &path);220 bool StoreForcesFile(MoleculeListClass *BondFragments, std::string &path, int *SortIndex);221 bool CreateMappingLabelsToConfigSequence(int *&SortIndex);222 214 bool CreateFatherLookupTable(atom **&LookupTable, int count = 0); 223 224 /// -# BOSSANOVA225 void FragmentBOSSANOVA(Graph *&FragmentList, KeyStack &RootStack);226 int PowerSetGenerator(int Order, struct UniqueFragments &FragmentSearch, KeySet RestrictedKeySet);227 molecule * StoreFragmentFromKeySet(KeySet &Leaflet, bool IsAngstroem);228 void SPFragmentGenerator(struct UniqueFragments *FragmentSearch, int RootDistance, std::vector<bond *> &BondsSet, int SetDimension, int SubOrder);229 int LookForRemovalCandidate(KeySet *&Leaf, int *&ShortestPathList);230 int GuesstimateFragmentCount(int order);231 215 232 216 // Recognize doubly appearing molecules in a list of them … … 253 237 void DeleteMolecule(molecule* mol); 254 238 255 /** A list of \a molecule classes. 256 */ 257 class MoleculeListClass : public Observable 258 { 259 public: 260 MoleculeList ListOfMolecules; //!< List of the contained molecules 261 int MaxIndex; 262 263 MoleculeListClass(World *world); 264 ~MoleculeListClass(); 265 266 bool AddHydrogenCorrection(std::string &path); 267 bool StoreForcesFile(std::string &path, int *SortIndex); 268 void insert(molecule *mol); 269 void erase(molecule *mol); 270 molecule * ReturnIndex(int index); 271 bool OutputConfigForListOfFragments(std::string &prefix, int *SortIndex); 272 int NumberOfActiveMolecules(); 273 void Enumerate(ostream *out); 274 void Output(ofstream *out); 275 int CountAllAtoms() const; 276 277 // Methods moved here from the menus 278 // TODO: more refactoring needed on these methods 279 void createNewMolecule(periodentafel *periode); 280 void loadFromXYZ(periodentafel *periode); 281 void setMoleculeFilename(); 282 void parseXYZIntoMolecule(); 283 void eraseMolecule(); 284 285 private: 286 World *world; //!< The world this List belongs to. Needed to avoid deadlocks in the destructor 287 }; 288 289 /** A leaf for a tree of \a molecule class 290 * Wraps molecules in a tree structure 291 */ 292 class MoleculeLeafClass 293 { 294 public: 295 molecule *Leaf; //!< molecule of this leaf 296 //MoleculeLeafClass *UpLeaf; //!< Leaf one level up 297 //MoleculeLeafClass *DownLeaf; //!< First leaf one level down 298 MoleculeLeafClass *previous; //!< Previous leaf on this level 299 MoleculeLeafClass *next; //!< Next leaf on this level 300 301 //MoleculeLeafClass(MoleculeLeafClass *Up, MoleculeLeafClass *Previous); 302 MoleculeLeafClass(MoleculeLeafClass *PreviousLeaf); 303 ~MoleculeLeafClass(); 304 305 bool AddLeaf(molecule *ptr, MoleculeLeafClass *Previous); 306 bool FillRootStackForSubgraphs(KeyStack *&RootStack, bool *AtomMask, int &FragmentCounter); 307 bool AssignKeySetsToFragment(molecule *reference, Graph *KeySetList, atom ***&ListOfLocalAtoms, Graph **&FragmentList, int &FragmentCounter, bool FreeList = false); 308 void TranslateIndicesToGlobalIDs(Graph **FragmentList, int &FragmentCounter, int &TotalNumberOfKeySets, Graph &TotalGraph); 309 int Count() const; 310 }; 239 311 240 312 241 #endif /*MOLECULES_HPP_*/ -
src/molecule_geometry.cpp
r5837dd r7ba268 363 363 /** Determines center of molecule (yet not considering atom masses). 364 364 * \param center reference to return vector 365 */ 366 void molecule::DeterminePeriodicCenter(Vector ¢er) 365 * \param saturation whether to treat hydrogen special or not 366 */ 367 void molecule::DeterminePeriodicCenter(Vector ¢er, const enum HydrogenSaturation saturation) 367 368 { 368 369 const RealSpaceMatrix &matrix = World::getInstance().getDomain().getM(); … … 378 379 flag = true; 379 380 for (molecule::const_iterator iter = begin(); iter != end(); ++iter) { 380 #ifdef ADDHYDROGEN 381 if ((*iter)->getType()->getAtomicNumber() != 1) { 382 #endif 381 if ((saturation == DontSaturate) || ((*iter)->getType()->getAtomicNumber() != 1)) { 383 382 Testvector = inversematrix * (*iter)->getPosition(); 384 383 Translationvector.Zero(); … … 406 405 Center += Testvector; 407 406 Log() << Verbose(1) << "vector is: " << Testvector << endl; 408 #ifdef ADDHYDROGEN 409 // now also change all hydrogens 410 for (BondList::const_iterator Runner = ListOfBonds.begin(); 411 Runner != ListOfBonds.end(); 412 ++Runner) { 413 if ((*Runner)->GetOtherAtom((*iter))->getType()->getAtomicNumber() == 1) { 414 Testvector = inversematrix * (*Runner)->GetOtherAtom((*iter))->getPosition(); 415 Testvector += Translationvector; 416 Testvector *= matrix; 417 Center += Testvector; 418 Log() << Verbose(1) << "Hydrogen vector is: " << Testvector << endl; 407 if (saturation == DoSaturate) { 408 // now also change all hydrogens 409 for (BondList::const_iterator Runner = ListOfBonds.begin(); 410 Runner != ListOfBonds.end(); 411 ++Runner) { 412 if ((*Runner)->GetOtherAtom((*iter))->getType()->getAtomicNumber() == 1) { 413 Testvector = inversematrix * (*Runner)->GetOtherAtom((*iter))->getPosition(); 414 Testvector += Translationvector; 415 Testvector *= matrix; 416 Center += Testvector; 417 Log() << Verbose(1) << "Hydrogen vector is: " << Testvector << endl; 418 } 419 419 } 420 420 } 421 421 } 422 #endif423 422 } 424 423 } while (!flag); -
src/molecule_graph.cpp
r5837dd r7ba268 34 34 #include "Graph/BondGraph.hpp" 35 35 #include "Helpers/defs.hpp" 36 #include "Helpers/helpers.hpp" 36 37 #include "LinearAlgebra/RealSpaceMatrix.hpp" 37 38 #include "linkedcell.hpp" … … 227 228 } 228 229 230 231 /** Creates a lookup table for true father's Atom::Nr -> atom ptr. 232 * \param *start begin of list (STL iterator, i.e. first item) 233 * \paran *end end of list (STL iterator, i.e. one past last item) 234 * \param **Lookuptable pointer to return allocated lookup table (should be NULL on start) 235 * \param count optional predetermined size for table (otherwise we set the count to highest true father id) 236 * \return true - success, false - failure 237 */ 238 bool molecule::CreateFatherLookupTable(atom **&LookupTable, int count) 239 { 240 bool status = true; 241 int AtomNo; 242 243 if (LookupTable != NULL) { 244 Log() << Verbose(0) << "Pointer for Lookup table is not NULL! Aborting ..." <<endl; 245 return false; 246 } 247 248 // count them 249 if (count == 0) { 250 for (molecule::iterator iter = begin(); iter != end(); ++iter) { // create a lookup table (Atom::Nr -> atom) used as a marker table lateron 251 count = (count < (*iter)->GetTrueFather()->getNr()) ? (*iter)->GetTrueFather()->getNr() : count; 252 } 253 } 254 if (count <= 0) { 255 Log() << Verbose(0) << "Count of lookup list is 0 or less." << endl; 256 return false; 257 } 258 259 // allocate and fill 260 LookupTable = new atom *[count]; 261 if (LookupTable == NULL) { 262 eLog() << Verbose(0) << "LookupTable memory allocation failed!" << endl; 263 performCriticalExit(); 264 status = false; 265 } else { 266 for (int i=0;i<count;i++) 267 LookupTable[i] = NULL; 268 for (molecule::iterator iter = begin(); iter != end(); ++iter) { 269 AtomNo = (*iter)->GetTrueFather()->getNr(); 270 if ((AtomNo >= 0) && (AtomNo < count)) { 271 //*out << "Setting LookupTable[" << AtomNo << "] to " << *(*iter) << endl; 272 LookupTable[AtomNo] = (*iter); 273 } else { 274 Log() << Verbose(0) << "Walker " << *(*iter) << " exceeded range of nuclear ids [0, " << count << ")." << endl; 275 status = false; 276 break; 277 } 278 } 279 } 280 281 return status; 282 }; 283 284 285 286 /** Corrects the nuclei position if the fragment was created over the cell borders. 287 * Scans all bonds, checks the distance, if greater than typical, we have a candidate for the correction. 288 * We remove the bond whereafter the graph probably separates. Then, we translate the one component periodically 289 * and re-add the bond. Looping on the distance check. 290 * \param *out ofstream for debugging messages 291 */ 292 bool molecule::ScanForPeriodicCorrection() 293 { 294 bond *Binder = NULL; 295 //bond *OtherBinder = NULL; 296 atom *Walker = NULL; 297 atom *OtherWalker = NULL; 298 RealSpaceMatrix matrix = World::getInstance().getDomain().getM(); 299 enum GraphEdge::Shading *ColorList = NULL; 300 double tmp; 301 //bool LastBond = true; // only needed to due list construct 302 Vector Translationvector; 303 //std::deque<atom *> *CompStack = NULL; 304 std::deque<atom *> *AtomStack = new std::deque<atom *>; // (getAtomCount()); 305 bool flag = true; 306 BondGraph *BG = World::getInstance().getBondGraph(); 307 308 DoLog(2) && (Log() << Verbose(2) << "Begin of ScanForPeriodicCorrection." << endl); 309 310 ColorList = new enum GraphEdge::Shading[getAtomCount()]; 311 for (int i=0;i<getAtomCount();i++) 312 ColorList[i] = (enum GraphEdge::Shading)0; 313 if (flag) { 314 // remove bonds that are beyond bonddistance 315 Translationvector.Zero(); 316 // scan all bonds 317 flag = false; 318 for(molecule::iterator AtomRunner = begin(); (!flag) && (AtomRunner != end()); ++AtomRunner) { 319 const BondList& ListOfBonds = (*AtomRunner)->getListOfBonds(); 320 for(BondList::const_iterator BondRunner = ListOfBonds.begin(); 321 (!flag) && (BondRunner != ListOfBonds.end()); 322 ++BondRunner) { 323 Binder = (*BondRunner); 324 for (int i=NDIM;i--;) { 325 tmp = fabs(Binder->leftatom->at(i) - Binder->rightatom->at(i)); 326 //Log() << Verbose(3) << "Checking " << i << "th distance of " << *Binder->leftatom << " to " << *Binder->rightatom << ": " << tmp << "." << endl; 327 const range<double> MinMaxDistance( 328 BG->getMinMaxDistance(Binder->leftatom, Binder->rightatom)); 329 if (!MinMaxDistance.isInRange(tmp)) { 330 DoLog(2) && (Log() << Verbose(2) << "Correcting at bond " << *Binder << "." << endl); 331 flag = true; 332 break; 333 } 334 } 335 } 336 } 337 //if (flag) { 338 if (0) { 339 // create translation vector from their periodically modified distance 340 for (int i=NDIM;i--;) { 341 tmp = Binder->leftatom->at(i) - Binder->rightatom->at(i); 342 const range<double> MinMaxDistance( 343 BG->getMinMaxDistance(Binder->leftatom, Binder->rightatom)); 344 if (fabs(tmp) > MinMaxDistance.last) // check against Min is not useful for components 345 Translationvector[i] = (tmp < 0) ? +1. : -1.; 346 } 347 Translationvector *= matrix; 348 //Log() << Verbose(3) << "Translation vector is "; 349 Log() << Verbose(0) << Translationvector << endl; 350 // apply to all atoms of first component via BFS 351 for (int i=getAtomCount();i--;) 352 ColorList[i] = GraphEdge::white; 353 AtomStack->push_front(Binder->leftatom); 354 while (!AtomStack->empty()) { 355 Walker = AtomStack->front(); 356 AtomStack->pop_front(); 357 //Log() << Verbose (3) << "Current Walker is: " << *Walker << "." << endl; 358 ColorList[Walker->getNr()] = GraphEdge::black; // mark as explored 359 *Walker += Translationvector; // translate 360 const BondList& ListOfBonds = Walker->getListOfBonds(); 361 for (BondList::const_iterator Runner = ListOfBonds.begin(); 362 Runner != ListOfBonds.end(); 363 ++Runner) { 364 if ((*Runner) != Binder) { 365 OtherWalker = (*Runner)->GetOtherAtom(Walker); 366 if (ColorList[OtherWalker->getNr()] == GraphEdge::white) { 367 AtomStack->push_front(OtherWalker); // push if yet unexplored 368 } 369 } 370 } 371 } 372 // // re-add bond 373 // if (OtherBinder == NULL) { // is the only bond? 374 // //Do nothing 375 // } else { 376 // if (!LastBond) { 377 // link(Binder, OtherBinder); // no more implemented bond::previous ... 378 // } else { 379 // link(OtherBinder, Binder); // no more implemented bond::previous ... 380 // } 381 // } 382 } else { 383 DoLog(3) && (Log() << Verbose(3) << "No corrections for this fragment." << endl); 384 } 385 //delete(CompStack); 386 } 387 // free allocated space from ReturnFullMatrixforSymmetric() 388 delete(AtomStack); 389 delete[](ColorList); 390 DoLog(2) && (Log() << Verbose(2) << "End of ScanForPeriodicCorrection." << endl); 391 392 return flag; 393 }; -
src/moleculelist.cpp
r5837dd r7ba268 19 19 #include "CodePatterns/MemDebug.hpp" 20 20 21 #include < cstring>22 23 #include <gsl/gsl_inline.h>21 #include <iostream> 22 23 //#include <gsl/gsl_inline.h> 24 24 #include <gsl/gsl_heapsort.h> 25 26 #include "MoleculeListClass.hpp" 27 28 #include "CodePatterns/Log.hpp" 25 29 26 30 #include "atom.hpp" 27 31 #include "Bond/bond.hpp" 28 #include "Tesselation/boundary.hpp"29 32 #include "Box.hpp" 30 #include "CodePatterns/Assert.hpp"31 #include "CodePatterns/Log.hpp"32 #include "CodePatterns/Verbose.hpp"33 33 #include "config.hpp" 34 34 #include "Element/element.hpp" 35 #include "Element/periodentafel.hpp" 36 #include "Fragmentation/Graph.hpp" 37 #include "Fragmentation/KeySet.hpp" 35 38 #include "Graph/BondGraph.hpp" 36 39 #include "Helpers/helpers.hpp" 40 #include "molecule.hpp" 37 41 #include "LinearAlgebra/RealSpaceMatrix.hpp" 38 #include "linkedcell.hpp"39 #include "molecule.hpp"40 #include "Parser/MpqcParser.hpp"41 42 #include "Parser/FormatParserStorage.hpp" 42 #include "Element/periodentafel.hpp"43 #include "Tesselation/tesselation.hpp"44 43 #include "World.hpp" 45 #include "WorldTime.hpp" 46 47 /*********************************** Functions for class MoleculeListClass *************************/ 44 48 45 49 46 /** Constructor for MoleculeListClass. … … 185 182 * \param *out output stream 186 183 */ 187 void MoleculeListClass::Enumerate( ostream *out)184 void MoleculeListClass::Enumerate(std::ostream *out) 188 185 { 189 186 periodentafel *periode = World::getInstance().getPeriode(); … … 239 236 * \param *out output stream 240 237 */ 241 void MoleculeListClass::Output( ofstream *out)238 void MoleculeListClass::Output(std::ostream *out) 242 239 { 243 240 DoLog(1) && (Log() << Verbose(1) << "MoleculeList: "); … … 517 514 * \param &prefix path and prefix to the fragment config files 518 515 * \param *SortIndex Index to map from the BFS labeling to the sequence how of Ion_Type in the config 516 * \param type desired type to store 519 517 * \return true - success (each file was written), false - something went wrong. 520 518 */ 521 bool MoleculeListClass::OutputConfigForListOfFragments(std::string &prefix, int *SortIndex )519 bool MoleculeListClass::OutputConfigForListOfFragments(std::string &prefix, int *SortIndex, ParserTypes type) 522 520 { 523 521 ofstream outputFragment; 524 522 std::string FragmentName; 525 char PathBackup[MAXSTRINGSIZE];526 523 bool result = true; 527 524 bool intermediateResult = true; 528 525 Vector BoxDimension; 529 526 char *FragmentNumber = NULL; 530 char *path = NULL;531 527 int FragmentCounter = 0; 532 528 ofstream output; … … 537 533 // store the fragments as config and as xyz 538 534 for (MoleculeList::iterator ListRunner = ListOfMolecules.begin(); ListRunner != ListOfMolecules.end(); ListRunner++) { 539 // save default path as it is changed for each fragment540 path = World::getInstance().getConfig()->GetDefaultPath();541 if (path != NULL)542 strcpy(PathBackup, path);543 else {544 ELOG(0, "OutputConfigForListOfFragments: NULL default path obtained from config!");545 performCriticalExit();546 }547 548 535 // correct periodic 549 536 if ((*ListRunner)->ScanForPeriodicCorrection()) { … … 562 549 563 550 { 564 // output xyz file 551 // center on edge 552 (*ListRunner)->CenterEdge(&BoxDimension); 553 for (int k = 0; k < NDIM; k++) // if one edge is to small, set at least to 1 angstroem 554 if (BoxDimension[k] < 1.) 555 BoxDimension[k] += 1.; 556 (*ListRunner)->SetBoxDimension(&BoxDimension); // update Box of atoms by boundary 557 for (int k = 0; k < NDIM; k++) { 558 BoxDimension[k] = 2.5 * (World::getInstance().getConfig()->GetIsAngstroem() ? 1. : 1. / AtomicLengthToAngstroem); 559 cell_size.at(k,k) = BoxDimension[k] * 2.; 560 } 561 World::getInstance().setDomain(cell_size); 562 (*ListRunner)->Translate(&BoxDimension); 563 564 // output file 565 std::vector<atom *> atoms; 566 for (molecule::const_iterator iter = (*ListRunner)->begin(); iter != (*ListRunner)->end(); ++iter) { 567 atoms.push_back(*iter); 568 } 565 569 FragmentNumber = FixedDigitNumber(ListOfMolecules.size(), FragmentCounter++); 566 FragmentName = prefix + FragmentNumber + ". conf.xyz";570 FragmentName = prefix + FragmentNumber + "." + FormatParserStorage::getInstance().getSuffixFromType(type); 567 571 outputFragment.open(FragmentName.c_str(), ios::out); 568 572 std::stringstream output; 569 573 output << "Saving bond fragment No. " << FragmentNumber << "/" << FragmentCounter - 1 << " as XYZ ... "; 570 if ((intermediateResult = (*ListRunner)->OutputXYZ(&outputFragment))) 574 if ((intermediateResult = FormatParserStorage::getInstance().save( 575 outputFragment, 576 FormatParserStorage::getInstance().getSuffixFromType(type), 577 atoms))) 571 578 output << " done."; 572 579 else 573 580 output << " failed."; 574 581 LOG(3, output.str()); 582 delete[](FragmentNumber); 583 575 584 result = result && intermediateResult; 576 585 outputFragment.close(); 577 586 outputFragment.clear(); 578 587 } 579 580 // center on edge581 (*ListRunner)->CenterEdge(&BoxDimension);582 for (int k = 0; k < NDIM; k++) // if one edge is to small, set at least to 1 angstroem583 if (BoxDimension[k] < 1.)584 BoxDimension[k] += 1.;585 (*ListRunner)->SetBoxDimension(&BoxDimension); // update Box of atoms by boundary586 for (int k = 0; k < NDIM; k++) {587 BoxDimension[k] = 2.5 * (World::getInstance().getConfig()->GetIsAngstroem() ? 1. : 1. / AtomicLengthToAngstroem);588 cell_size.at(k,k) = BoxDimension[k] * 2.;589 }590 World::getInstance().setDomain(cell_size);591 (*ListRunner)->Translate(&BoxDimension);592 593 // change path in config594 FragmentName = PathBackup;595 FragmentName += "/";596 FragmentName += FRAGMENTPREFIX;597 FragmentName += FragmentNumber;598 FragmentName += "/";599 World::getInstance().getConfig()->SetDefaultPath(FragmentName.c_str());600 601 {602 // and save as config603 FragmentName = prefix + FragmentNumber + ".conf";604 std::stringstream output;605 output << "Saving bond fragment No. " << FragmentNumber << "/" << FragmentCounter - 1 << " as config ... ";606 if ((intermediateResult = World::getInstance().getConfig()->Save(FragmentName.c_str(), (*ListRunner)->elemente, (*ListRunner))))607 output << " done.";608 else609 output << " failed.";610 LOG(3, output.str());611 result = result && intermediateResult;612 }613 614 // restore old config615 World::getInstance().getConfig()->SetDefaultPath(PathBackup);616 617 {618 // and save as mpqc input file619 stringstream output;620 FragmentName = prefix + FragmentNumber + ".conf.in";621 output << "Saving bond fragment No. " << FragmentNumber << "/" << FragmentCounter - 1 << " as mpqc input ... ";622 std::ofstream outfile(FragmentName.c_str());623 std::vector<atom *> atoms;624 for (molecule::const_iterator iter = (*ListRunner)->begin(); iter != (*ListRunner)->end(); ++iter)625 atoms.push_back(*iter);626 // atoms.resize((*ListRunner)->getAtomCount());627 // std::copy((*ListRunner)->begin(), (*ListRunner)->end(), atoms.begin());628 FormatParserStorage::getInstance().get(mpqc).save(&outfile, atoms);629 // if ((intermediateResult = World::getInstance().getConfig()->SaveMPQC(FragmentName.c_str(), (*ListRunner))))630 output << " done.";631 // else632 // output << " failed.";633 LOG(3, output.str());634 }635 636 result = result && intermediateResult;637 //outputFragment.close();638 //outputFragment.clear();639 delete[](FragmentNumber);640 588 } 641 589 LOG(0, "STATUS: done."); … … 753 701 } 754 702 }; 755 756 757 /******************************************* Class MoleculeLeafClass ************************************************/758 759 /** Constructor for MoleculeLeafClass root leaf.760 * \param *Up Leaf on upper level761 * \param *PreviousLeaf NULL - We are the first leaf on this level, otherwise points to previous in list762 */763 //MoleculeLeafClass::MoleculeLeafClass(MoleculeLeafClass *Up = NULL, MoleculeLeafClass *Previous = NULL)764 MoleculeLeafClass::MoleculeLeafClass(MoleculeLeafClass *PreviousLeaf = NULL) :765 Leaf(NULL),766 previous(PreviousLeaf)767 {768 // if (Up != NULL)769 // if (Up->DownLeaf == NULL) // are we the first down leaf for the upper leaf?770 // Up->DownLeaf = this;771 // UpLeaf = Up;772 // DownLeaf = NULL;773 if (previous != NULL) {774 MoleculeLeafClass *Walker = previous->next;775 previous->next = this;776 next = Walker;777 } else {778 next = NULL;779 }780 };781 782 /** Destructor for MoleculeLeafClass.783 */784 MoleculeLeafClass::~MoleculeLeafClass()785 {786 // if (DownLeaf != NULL) {// drop leaves further down787 // MoleculeLeafClass *Walker = DownLeaf;788 // MoleculeLeafClass *Next;789 // do {790 // Next = Walker->NextLeaf;791 // delete(Walker);792 // Walker = Next;793 // } while (Walker != NULL);794 // // Last Walker sets DownLeaf automatically to NULL795 // }796 // remove the leaf itself797 if (Leaf != NULL) {798 Leaf->removeAtomsinMolecule();799 World::getInstance().destroyMolecule(Leaf);800 Leaf = NULL;801 }802 // remove this Leaf from level list803 if (previous != NULL)804 previous->next = next;805 // } else { // we are first in list (connects to UpLeaf->DownLeaf)806 // if ((NextLeaf != NULL) && (NextLeaf->UpLeaf == NULL))807 // NextLeaf->UpLeaf = UpLeaf; // either null as we are top level or the upleaf of the first node808 // if (UpLeaf != NULL)809 // UpLeaf->DownLeaf = NextLeaf; // either null as we are only leaf or NextLeaf if we are just the first810 // }811 // UpLeaf = NULL;812 if (next != NULL) // are we last in list813 next->previous = previous;814 next = NULL;815 previous = NULL;816 };817 818 /** Adds \a molecule leaf to the tree.819 * \param *ptr ptr to molecule to be added820 * \param *Previous previous MoleculeLeafClass referencing level and which on the level821 * \return true - success, false - something went wrong822 */823 bool MoleculeLeafClass::AddLeaf(molecule *ptr, MoleculeLeafClass *Previous)824 {825 return false;826 };827 828 /** Fills the root stack for sites to be used as root in fragmentation depending on order or adaptivity criteria829 * Again, as in \sa FillBondStructureFromReference steps recursively through each Leaf in this chain list of molecule's.830 * \param *out output stream for debugging831 * \param *&RootStack stack to be filled832 * \param *AtomMask defines true/false per global Atom::Nr to mask in/out each nuclear site833 * \param &FragmentCounter counts through the fragments in this MoleculeLeafClass834 * \return true - stack is non-empty, fragmentation necessary, false - stack is empty, no more sites to update835 */836 bool MoleculeLeafClass::FillRootStackForSubgraphs(KeyStack *&RootStack, bool *AtomMask, int &FragmentCounter)837 {838 atom *Father = NULL;839 840 if (RootStack != NULL) {841 // find first root candidates842 if (&(RootStack[FragmentCounter]) != NULL) {843 RootStack[FragmentCounter].clear();844 for(molecule::const_iterator iter = Leaf->begin(); iter != Leaf->end(); ++iter) {845 Father = (*iter)->GetTrueFather();846 if (AtomMask[Father->getNr()]) // apply mask847 #ifdef ADDHYDROGEN848 if ((*iter)->getType()->getAtomicNumber() != 1) // skip hydrogen849 #endif850 RootStack[FragmentCounter].push_front((*iter)->getNr());851 }852 if (next != NULL)853 next->FillRootStackForSubgraphs(RootStack, AtomMask, ++FragmentCounter);854 } else {855 DoLog(1) && (Log() << Verbose(1) << "Rootstack[" << FragmentCounter << "] is NULL." << endl);856 return false;857 }858 FragmentCounter--;859 return true;860 } else {861 DoLog(1) && (Log() << Verbose(1) << "Rootstack is NULL." << endl);862 return false;863 }864 };865 866 /** The indices per keyset are compared to the respective father's Atom::Nr in each subgraph and thus put into \a **&FragmentList.867 * \param *out output stream fro debugging868 * \param *reference reference molecule with the bond structure to be copied869 * \param *KeySetList list with all keysets870 * \param ***ListOfLocalAtoms Lookup table for each subgraph and index of each atom in global molecule, may be NULL on start, then it is filled871 * \param **&FragmentList list to be allocated and returned872 * \param &FragmentCounter counts the fragments as we move along the list873 * \param FreeList true - ***ListOfLocalAtoms is free'd before return, false - it is not874 * \retuen true - success, false - failure875 */876 bool MoleculeLeafClass::AssignKeySetsToFragment(molecule *reference, Graph *KeySetList, atom ***&ListOfLocalAtoms, Graph **&FragmentList, int &FragmentCounter, bool FreeList)877 {878 bool status = true;879 int KeySetCounter = 0;880 881 DoLog(1) && (Log() << Verbose(1) << "Begin of AssignKeySetsToFragment." << endl);882 // fill ListOfLocalAtoms if NULL was given883 if (!Leaf->FillListOfLocalAtoms(ListOfLocalAtoms[FragmentCounter], reference->getAtomCount())) {884 DoLog(1) && (Log() << Verbose(1) << "Filling of ListOfLocalAtoms failed." << endl);885 return false;886 }887 888 // allocate fragment list889 if (FragmentList == NULL) {890 KeySetCounter = Count();891 FragmentList = new Graph*[KeySetCounter];892 for (int i=0;i<KeySetCounter;i++)893 FragmentList[i] = NULL;894 KeySetCounter = 0;895 }896 897 if ((KeySetList != NULL) && (KeySetList->size() != 0)) { // if there are some scanned keysets at all898 // assign scanned keysets899 if (FragmentList[FragmentCounter] == NULL)900 FragmentList[FragmentCounter] = new Graph;901 KeySet *TempSet = new KeySet;902 for (Graph::iterator runner = KeySetList->begin(); runner != KeySetList->end(); runner++) { // key sets contain global numbers!903 if (ListOfLocalAtoms[FragmentCounter][reference->FindAtom(*((*runner).first.begin()))->getNr()] != NULL) {// as we may assume that that bond structure is unchanged, we only test the first key in each set904 // translate keyset to local numbers905 for (KeySet::iterator sprinter = (*runner).first.begin(); sprinter != (*runner).first.end(); sprinter++)906 TempSet->insert(ListOfLocalAtoms[FragmentCounter][reference->FindAtom(*sprinter)->getNr()]->getNr());907 // insert into FragmentList908 FragmentList[FragmentCounter]->insert(GraphPair(*TempSet, pair<int, double> (KeySetCounter++, (*runner).second.second)));909 }910 TempSet->clear();911 }912 delete (TempSet);913 if (KeySetCounter == 0) {// if there are no keysets, delete the list914 DoLog(1) && (Log() << Verbose(1) << "KeySetCounter is zero, deleting FragmentList." << endl);915 delete (FragmentList[FragmentCounter]);916 } else917 DoLog(1) && (Log() << Verbose(1) << KeySetCounter << " keysets were assigned to subgraph " << FragmentCounter << "." << endl);918 FragmentCounter++;919 if (next != NULL)920 next->AssignKeySetsToFragment(reference, KeySetList, ListOfLocalAtoms, FragmentList, FragmentCounter, FreeList);921 FragmentCounter--;922 } else923 DoLog(1) && (Log() << Verbose(1) << "KeySetList is NULL or empty." << endl);924 925 if ((FreeList) && (ListOfLocalAtoms != NULL)) {926 // free the index lookup list927 delete[](ListOfLocalAtoms[FragmentCounter]);928 }929 DoLog(1) && (Log() << Verbose(1) << "End of AssignKeySetsToFragment." << endl);930 return status;931 };932 933 /** Translate list into global numbers (i.e. ones that are valid in "this" molecule, not in MolecularWalker->Leaf)934 * \param *out output stream for debugging935 * \param **FragmentList Graph with local numbers per fragment936 * \param &FragmentCounter counts the fragments as we move along the list937 * \param &TotalNumberOfKeySets global key set counter938 * \param &TotalGraph Graph to be filled with global numbers939 */940 void MoleculeLeafClass::TranslateIndicesToGlobalIDs(Graph **FragmentList, int &FragmentCounter, int &TotalNumberOfKeySets, Graph &TotalGraph)941 {942 DoLog(1) && (Log() << Verbose(1) << "Begin of TranslateIndicesToGlobalIDs." << endl);943 KeySet *TempSet = new KeySet;944 if (FragmentList[FragmentCounter] != NULL) {945 for (Graph::iterator runner = FragmentList[FragmentCounter]->begin(); runner != FragmentList[FragmentCounter]->end(); runner++) {946 for (KeySet::iterator sprinter = (*runner).first.begin(); sprinter != (*runner).first.end(); sprinter++)947 TempSet->insert((Leaf->FindAtom(*sprinter))->GetTrueFather()->getNr());948 TotalGraph.insert(GraphPair(*TempSet, pair<int, double> (TotalNumberOfKeySets++, (*runner).second.second)));949 TempSet->clear();950 }951 delete (TempSet);952 } else {953 DoLog(1) && (Log() << Verbose(1) << "FragmentList is NULL." << endl);954 }955 if (next != NULL)956 next->TranslateIndicesToGlobalIDs(FragmentList, ++FragmentCounter, TotalNumberOfKeySets, TotalGraph);957 FragmentCounter--;958 DoLog(1) && (Log() << Verbose(1) << "End of TranslateIndicesToGlobalIDs." << endl);959 };960 961 /** Simply counts the number of items in the list, from given MoleculeLeafClass.962 * \return number of items963 */964 int MoleculeLeafClass::Count() const965 {966 if (next != NULL)967 return next->Count() + 1;968 else969 return 1;970 };971 -
tests/Fragmentations/Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz" --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethoxyethane/testsuite-fragmenting-1_2-dimethoxyethane-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/1_2-dimethylbenzene/testsuite-fragmenting-1_2-dimethylbenzene-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/2-methylcyclohexanone/testsuite-fragmenting-2-methylcyclohexanone-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/N_N-dimethylacetamide/testsuite-fragmenting-N_N-dimethylacetamide-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/benzene/testsuite-fragmenting-benzene-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/benzene/testsuite-fragmenting-benzene-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/benzene/testsuite-fragmenting-benzene-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/benzene/testsuite-fragmenting-benzene-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/benzene/testsuite-fragmenting-benzene-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/benzene/testsuite-fragmenting-benzene-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cholesterol/testsuite-fragmenting-cholesterol-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/cycloheptane/testsuite-fragmenting-cycloheptane-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/dimethyl_bromomalonate/testsuite-fragmenting-dimethyl_bromomalonate-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/glucose/testsuite-fragmenting-glucose-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/glucose/testsuite-fragmenting-glucose-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/glucose/testsuite-fragmenting-glucose-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/glucose/testsuite-fragmenting-glucose-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/glucose/testsuite-fragmenting-glucose-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/glucose/testsuite-fragmenting-glucose-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/heptan/testsuite-fragmenting-heptan-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/heptan/testsuite-fragmenting-heptan-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/heptan/testsuite-fragmenting-heptan-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/heptan/testsuite-fragmenting-heptan-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/heptan/testsuite-fragmenting-heptan-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/heptan/testsuite-fragmenting-heptan-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/isoleucine/testsuite-fragmenting-isoleucine-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/neohexane/testsuite-fragmenting-neohexane-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/neohexane/testsuite-fragmenting-neohexane-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/neohexane/testsuite-fragmenting-neohexane-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/neohexane/testsuite-fragmenting-neohexane-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/neohexane/testsuite-fragmenting-neohexane-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/neohexane/testsuite-fragmenting-neohexane-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/proline/testsuite-fragmenting-proline-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/proline/testsuite-fragmenting-proline-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/proline/testsuite-fragmenting-proline-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/proline/testsuite-fragmenting-proline-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/proline/testsuite-fragmenting-proline-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/proline/testsuite-fragmenting-proline-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/putrescine/testsuite-fragmenting-putrescine-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/putrescine/testsuite-fragmenting-putrescine-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/putrescine/testsuite-fragmenting-putrescine-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/putrescine/testsuite-fragmenting-putrescine-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/putrescine/testsuite-fragmenting-putrescine-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/putrescine/testsuite-fragmenting-putrescine-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order1.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 1 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order2.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 2 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order3.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 3 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order4.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 4 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order5.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 5 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/Fragmentations/Fragmenting/tartaric_acid/testsuite-fragmenting-tartaric_acid-order6.at
r5837dd r7ba268 14 14 AT_CHECK([chmod u+w $file], 0) 15 15 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FRAGMENTPREFIX}*.conf | wc -l], 0, [stdout], [stderr]) 18 AT_CHECK([grep $FragNo stdout], 0, [stdout], [stderr]) 16 AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 -f $FILENAME --order 6 --distance $DISTANCE --output-types "mpqc pcp xyz"], 0, [stdout], [stderr]) 17 AT_CHECK([ls ${FILENAME}*.conf | wc -l | grep $FragNo], 0, [ignore], [ignore]) 18 AT_CHECK([ls ${FILENAME}*.xyz | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 AT_CHECK([ls ${FILENAME}*.in | wc -l | grep $FragNo], 0, [ignore], [ignore]) 19 20 20 21 AT_CLEANUP -
tests/regression/Fragmentation/FragmentMolecule-MaxOrder/testsuite-fragmentation-fragment-molecule-maxorder.at
r5837dd r7ba268 8 8 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FragmentMolecule-MaxOrder/pre/test.conf $file], 0) 9 9 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 10 AT_CHECK([../../molecuilder -i $file -v 1 --select-molecule-by-id 0 -f ./BondFragment --distance 1.55 --order 2 ], 0, [ignore], [ignore])11 AT_CHECK([../../molecuilder -i $file -v 1 --select-molecule-by-id 0 -f ./BondFragment --distance 1.55 --order 2 ], 2, [ignore], [ignore])10 AT_CHECK([../../molecuilder -i $file -v 1 --select-molecule-by-id 0 -f ./BondFragment --distance 1.55 --order 2 --output-types "pcp"], 0, [ignore], [ignore]) 11 AT_CHECK([../../molecuilder -i $file -v 1 --select-molecule-by-id 0 -f ./BondFragment --distance 1.55 --order 2 --output-types "pcp"], 2, [ignore], [ignore]) 12 12 13 13 AT_CLEANUP -
tests/regression/Fragmentation/FragmentMolecule/testsuite-fragmentation-fragment-molecule.at
r5837dd r7ba268 7 7 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FragmentMolecule/pre/test.conf $file], 0) 8 8 AT_CHECK([chmod u+w $file], 0, [ignore], [ignore]) 9 AT_CHECK([../../molecuilder -i $file -v 1 -I --select-molecule-by-id 0 -f ./BondFragment --distance 1.55 --order 2 ], 0, [ignore], [ignore])9 AT_CHECK([../../molecuilder -i $file -v 1 -I --select-molecule-by-id 0 -f ./BondFragment --distance 1.55 --order 2 --output-types "pcp"], 0, [ignore], [ignore]) 10 10 #AT_CHECK([diff BondFragment0.conf ${abs_top_srcdir}/tests/regression/Fragmentation/FragmentMolecule/post/BondFragment0.conf], 0, [ignore], [ignore]) 11 11 #AT_CHECK([diff BondFragment1.conf ${abs_top_srcdir}/tests/regression/Fragmentation/FragmentMolecule/post/BondFragment1.conf], 0, [ignore], [ignore]) -
tests/regression/Makefile.am
r5837dd r7ba268 91 91 $(srcdir)/Parser/Mpqc/testsuite-parser-mpqc-load.at \ 92 92 $(srcdir)/Parser/Mpqc/testsuite-parser-mpqc-save.at \ 93 $(srcdir)/Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters.at \94 $(srcdir)/Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters-basis.at \95 $(srcdir)/Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters-maxiterations.at \96 $(srcdir)/Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters-theory.at \97 93 $(srcdir)/Parser/Pcp/testsuite-parser-pcp-empty.at \ 98 94 $(srcdir)/Parser/Pcp/testsuite-parser-pcp-load.at \ … … 110 106 $(srcdir)/Parser/Psi3/testsuite-parser-psi3-load.at \ 111 107 $(srcdir)/Parser/Psi3/testsuite-parser-psi3-save.at \ 108 $(srcdir)/Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc.at \ 109 $(srcdir)/Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc-basis.at \ 110 $(srcdir)/Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc-maxiterations.at \ 111 $(srcdir)/Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc-theory.at \ 112 $(srcdir)/Parser/SetParameters/Psi3/testsuite-parser-set-parameters-psi3-reference.at \ 113 $(srcdir)/Parser/SetParameters/Psi3/testsuite-parser-set-parameters-psi3-wavefunction.at \ 112 114 $(srcdir)/Parser/Tremolo/testsuite-parser-tremolo-empty.at \ 113 115 $(srcdir)/Parser/Tremolo/testsuite-parser-tremolo-load.at \ -
tests/regression/Parser/testsuite-parser.at
r5837dd r7ba268 1 1 AT_BANNER([MoleCuilder - Parser]) 2 2 3 # set MPQC basis, theory and maxiter4 m4_include([Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters.at])5 m4_include([Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters-basis.at])6 m4_include([Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters-maxiterations.at])7 m4_include([Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters-theory.at])8 3 9 4 # parsing mpqc … … 11 6 m4_include([Parser/Mpqc/testsuite-parser-mpqc-load.at]) 12 7 m4_include([Parser/Mpqc/testsuite-parser-mpqc-save.at]) 8 9 # set mpqc basis, theory and maxiter 10 m4_include([Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc.at]) 11 m4_include([Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc-basis.at]) 12 m4_include([Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc-maxiterations.at]) 13 m4_include([Parser/SetParameters/Mpqc/testsuite-parser-set-parameters-mpqc-theory.at]) 13 14 14 15 # parsing pcp … … 24 25 m4_include([Parser/Pdb/testsuite-parser-pdb-save.at]) 25 26 m4_include([Parser/Pdb/testsuite-parser-pdb-with-conects.at]) 27 28 # set psi3 wavefunction 29 m4_include([Parser/SetParameters/Psi3/testsuite-parser-set-parameters-psi3-reference.at]) 30 m4_include([Parser/SetParameters/Psi3/testsuite-parser-set-parameters-psi3-wavefunction.at]) 26 31 27 32 # bugfix checks
Note:
See TracChangeset
for help on using the changeset viewer.