Changeset b73545
- Timestamp:
- Sep 15, 2014, 2:28:50 PM (10 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 7f1b51
- Parents:
- 55736b (diff), 5524ae9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
LinearAlgebra/src/LinearAlgebra/MatrixContent.cpp
r55736b rb73545 88 88 MatrixContent::MatrixContent(size_t _rows, size_t _columns, MatrixBaseCase) : 89 89 MatrixDimension(_rows,_columns), 90 free_content_on_exit( true)90 free_content_on_exit(false) 91 91 {} 92 92 -
LinearAlgebra/src/LinearAlgebra/MatrixContent.hpp
r55736b rb73545 189 189 { 190 190 ar & boost::serialization::base_object<MatrixDimension>(*this); 191 if (free_content_on_exit) 192 gsl_matrix_free(content); 191 193 content = gsl_matrix_calloc(getRows(), getColumns()); 192 194 ar & content->size1; -
LinearAlgebra/src/LinearAlgebra/RealSpaceMatrix.hpp
r55736b rb73545 179 179 void save(Archive & ar, const unsigned int version) const 180 180 { 181 ar & content;181 ar & *content; 182 182 } 183 183 template<class Archive> 184 184 void load(Archive & ar, const unsigned int version) 185 185 { 186 ar & content; 187 createViews(); 186 ar & *content; 188 187 } 189 188 BOOST_SERIALIZATION_SPLIT_MEMBER() -
LinearAlgebra/src/LinearAlgebra/VectorContent.cpp
r55736b rb73545 55 55 VectorDimension(0), 56 56 content(NULL), 57 free_content_on_exit( true)57 free_content_on_exit(false) 58 58 {} 59 59 … … 78 78 VectorContent::VectorContent(VectorBaseCase) : 79 79 VectorDimension(0), 80 content(NULL), 80 81 free_content_on_exit(false) 81 82 {} … … 112 113 VectorContent::VectorContent(const size_t _dimension, std::istream &inputstream) : 113 114 VectorDimension(_dimension), 114 content(NULL),115 115 free_content_on_exit(true) 116 116 { -
src/Actions/ActionQueue.cpp
r55736b rb73545 74 74 #endif 75 75 76 // free all actions contained in actionqueue 77 for (ActionQueue_t::iterator iter = actionqueue.begin(); !actionqueue.empty(); iter = actionqueue.begin()) { 78 delete *iter; 79 actionqueue.erase(iter); 80 } 76 clearQueue(); 81 77 82 78 delete history; … … 86 82 void ActionQueue::queueAction(const std::string &name, enum Action::QueryOptions state) 87 83 { 88 queueAction(AR->getActionByName(name), state); 89 } 90 91 void ActionQueue::queueAction(Action *_action, enum Action::QueryOptions state) 84 const Action * const registryaction = AR->getActionByName(name); 85 queueAction(registryaction, state); 86 } 87 88 void ActionQueue::queueAction(const Action * const _action, enum Action::QueryOptions state) 92 89 { 93 90 Action *newaction = _action->clone(state); … … 104 101 std::cerr << "Action " << *boost::get_error_info<ActionNameString>(e) << " has failed." << std::endl; 105 102 World::getInstance().setExitFlag(5); 106 actionqueue.clear(); 107 tempqueue.clear(); 103 clearQueue(); 104 lastActionOk = false; 105 std::cerr << "ActionQueue cleared." << std::endl; 106 } catch (std::exception &e) { 107 pushStatus("FAIL: General exception caught, aborting."); 108 World::getInstance().setExitFlag(134); 109 clearQueue(); 108 110 lastActionOk = false; 109 111 std::cerr << "ActionQueue cleared." << std::endl; … … 167 169 pushStatus("FAIL: Action "+*boost::get_error_info<ActionNameString>(e)+" has failed."); 168 170 World::getInstance().setExitFlag(5); 169 actionqueue.clear(); 170 tempqueue.clear(); 171 clearQueue(); 171 172 lastActionOk = false; 173 std::cerr << "ActionQueue cleared." << std::endl; 174 CurrentAction = (size_t)-1; 175 } catch (std::exception &e) { 176 pushStatus("FAIL: General exception caught, aborting."); 177 World::getInstance().setExitFlag(134); 178 clearQueue(); 172 179 std::cerr << "ActionQueue cleared." << std::endl; 173 180 CurrentAction = (size_t)-1; … … 289 296 } 290 297 298 void ActionQueue::clearQueue() 299 { 300 // free all actions contained in actionqueue 301 for (ActionQueue_t::iterator iter = actionqueue.begin(); 302 !actionqueue.empty(); iter = actionqueue.begin()) { 303 delete *iter; 304 actionqueue.erase(iter); 305 } 306 // free all actions contained in tempqueue 307 for (ActionQueue_t::iterator iter = tempqueue.begin(); 308 !tempqueue.empty(); iter = tempqueue.begin()) { 309 delete *iter; 310 tempqueue.erase(iter); 311 } 312 } 291 313 292 314 const ActionQueue::ActionTokens_t ActionQueue::getListOfActions() const -
src/Actions/ActionQueue.hpp
r55736b rb73545 30 30 void waitQueue(); 31 31 #endif 32 33 class CommandLineParser; 32 34 33 35 namespace MoleCuilder { … … 61 63 * \param state whether Actions needs to be filled via a Dialog or not 62 64 */ 63 void queueAction( Action *_action, enum Action::QueryOptions state = Action::Interactive);65 void queueAction(const Action * const _action, enum Action::QueryOptions state = Action::Interactive); 64 66 65 67 /** Returns the spawned action by token \a name. … … 147 149 //!> grant Action access to internal history functions. 148 150 friend class Action; 151 //!> grant CommandLineParser access to stop and clearQueue() 152 friend class ::CommandLineParser; 149 153 150 154 /** Wrapper function to add state to ActionHistory. … … 165 169 */ 166 170 void clear(); 171 172 /** Clears all actions currently present in the actionqueues. 173 * 174 */ 175 void clearQueue(); 167 176 168 177 #ifdef HAVE_ACTION_THREAD -
src/Actions/AnalysisAction/DipoleAngularCorrelationAction.cpp
r55736b rb73545 112 112 113 113 // free correlation map 114 delete (correlationmap);114 delete correlationmap; 115 115 116 116 // output binned map … … 122 122 123 123 // free binned map 124 delete (binmap);124 delete binmap; 125 125 } 126 126 -
src/Actions/AnalysisAction/DipoleCorrelationAction.cpp
r55736b rb73545 73 73 binmap = BinData( correlationmap, params.BinWidth.get(), params.BinStart.get(), params.BinEnd.get() ); 74 74 OutputCorrelationMap<BinPairMap> ( &binoutput, binmap, OutputCorrelation_Header, OutputCorrelation_Value ); 75 delete (binmap);76 delete (correlationmap);75 delete binmap; 76 delete correlationmap; 77 77 output.close(); 78 78 binoutput.close(); -
src/Actions/AnalysisAction/PairCorrelationAction.cpp
r55736b rb73545 85 85 binmap = BinData( correlationmap, params.BinWidth.get(), params.BinStart.get(), params.BinEnd.get() ); 86 86 OutputCorrelationMap<BinPairMap> ( &binoutput, binmap, OutputCorrelation_Header, OutputCorrelation_Value ); 87 delete (binmap);88 delete (correlationmap);87 delete binmap; 88 delete correlationmap; 89 89 output.close(); 90 90 binoutput.close(); -
src/Actions/AnalysisAction/PointCorrelationAction.cpp
r55736b rb73545 79 79 binmap = BinData( correlationmap, params.BinWidth.get(), params.BinStart.get(), params.BinEnd.get() ); 80 80 OutputCorrelationMap<BinPairMap> ( &binoutput, binmap, OutputCorrelation_Header, OutputCorrelation_Value ); 81 delete (binmap);82 delete (correlationmap);81 delete binmap; 82 delete correlationmap; 83 83 output.close(); 84 84 binoutput.close(); -
src/Actions/AnalysisAction/SurfaceCorrelationAction.cpp
r55736b rb73545 115 115 OutputCorrelationMap<BinPairMap> ( &binoutput, binmap, OutputCorrelation_Header, OutputCorrelation_Value ); 116 116 delete TesselStruct; // surfacemap contains refs to triangles! delete here, not earlier! 117 delete (binmap);118 delete (surfacemap);117 delete binmap; 118 delete surfacemap; 119 119 output.close(); 120 120 binoutput.close(); -
src/Actions/CommandAction/ElementDbAction.cpp
r55736b rb73545 67 67 boost::archive::text_oarchive oa(undostream); 68 68 oa << periode; 69 CommandElementDbState *UndoState =70 new CommandElementDbState(71 undostream.str(),72 params73 );74 69 75 70 // get the path … … 83 78 STATUS("Element list loaded successfully."); 84 79 //periode->Output(); 85 return ActionState::ptr( UndoState);80 return ActionState::ptr(new CommandElementDbState(undostream.str(),params)); 86 81 } else { 87 82 STATUS("Element list loading failed."); 88 delete UndoState;89 83 return Action::failure; 90 84 } -
src/Actions/PotentialAction/FitPotentialAction.cpp
r55736b rb73545 93 93 LOG(2, "DEBUG: counts_per_charge is " << counts_per_charge << "."); 94 94 // we want to check each (unique) key only once 95 HomologyContainer::const_key_iterator olditer = homologies.key_end(); 96 for (HomologyContainer::const_key_iterator iter = 97 homologies.key_begin(); iter != homologies.key_end(); olditer = iter++) { 98 // if it's the same as the old one, skip it 99 if (*olditer == *iter) 100 continue; 101 // if it's a new key, check if every element has the right number of counts 95 for (HomologyContainer::const_key_iterator iter = homologies.key_begin(); 96 iter != homologies.key_end(); iter = homologies.getNextKey(iter)) { 97 // check if every element has the right number of counts 102 98 Extractors::elementcounts_t::const_iterator countiter = counts_per_charge.begin(); 103 99 for (; countiter != counts_per_charge.end(); ++countiter) -
src/Actions/Process.cpp
r55736b rb73545 52 52 Process::~Process() 53 53 { 54 // make sure everybody knows we have stoped 55 stop(); 54 // if active make sure everybody knows we have stopped 55 if (active) 56 stop(); 56 57 } 57 58 -
src/Analysis/analysis_correlation.cpp
r55736b rb73545 334 334 const LinkedCell::LinkedList intersected_atoms_set(intersected_atoms.begin(), intersected_atoms_end); 335 335 336 // create map337 outmap = new PairCorrelationMap;338 339 336 // get linked cell view 340 337 LinkedCell::LinkedCell_View LC = World::getInstance().getLinkedCell(max_distance); … … 411 408 } 412 409 413 outmap = new CorrelationToPointMap;414 410 for (std::vector<molecule *>::const_iterator MolWalker = molecules.begin(); MolWalker != molecules.end(); MolWalker++) { 415 411 LOG(2, "Current molecule is " << *MolWalker << "."); … … 456 452 } 457 453 458 outmap = new CorrelationToPointMap;459 454 for (std::vector<molecule *>::const_iterator MolWalker = molecules.begin(); MolWalker != molecules.end(); MolWalker++) { 460 455 RealSpaceMatrix FullMatrix = World::getInstance().getDomain().getM(); … … 510 505 } 511 506 512 outmap = new CorrelationToSurfaceMap;513 507 for (std::vector<molecule *>::const_iterator MolWalker = molecules.begin(); MolWalker != molecules.end(); MolWalker++) { 514 508 LOG(2, "Current molecule is " << (*MolWalker)->name << "."); … … 566 560 } 567 561 568 outmap = new CorrelationToSurfaceMap;569 562 double ShortestDistance = 0.; 570 563 BoundaryTriangleSet *ShortestTriangle = NULL; -
src/Box.cpp
r55736b rb73545 127 127 } 128 128 129 void Box::setM( RealSpaceMatrix_M){129 void Box::setM(const RealSpaceMatrix &_M){ 130 130 ASSERT(_M.determinant()!=0,"Matrix in Box construction was not invertible"); 131 131 OBSERVE; -
src/Box.hpp
r55736b rb73545 62 62 * Set the form of the parallelepiped. 63 63 */ 64 void setM( RealSpaceMatrix);64 void setM(const RealSpaceMatrix &_M); 65 65 66 66 Box &operator=(const Box&); -
src/Fragmentation/Exporters/SaturationDistanceMaximizer.cpp
r55736b rb73545 117 117 my_func.df = &jacf; 118 118 my_func.fdf = &funcjacf; 119 my_func.params = getAdvocate(); 119 SaturationDistanceMaximizer::Advocate* const advocate = getAdvocate(); 120 my_func.params = advocate; 120 121 121 122 // allocate argument and set to zero … … 158 159 // free memory 159 160 gsl_multimin_fdfminimizer_free(s); 161 my_func.params = NULL; 162 delete advocate; 160 163 gsl_vector_free(x); 161 164 } -
src/Fragmentation/Homology/HomologyContainer.hpp
r55736b rb73545 181 181 void clear(); 182 182 183 /** Returns the number of keys in the container. 184 * 185 * \return size of internal container 186 */ 187 const size_t size() 188 { return container.size(); } 189 183 190 private: 184 191 //!> multimap containing all homologous graph under same key but each with its value -
src/LinkedCell/linkedcell.cpp
r55736b rb73545 141 141 LinkedCell_deprecated::~LinkedCell_deprecated() 142 142 { 143 if (LC != NULL) 144 for (index=0;index<N[0]*N[1]*N[2];index++) 145 LC[index].clear(); 146 delete[](LC); 143 if (LC != NULL) { 144 for (index=0;index<N[0]*N[1]*N[2];index++) { 145 // don't delete pointers are just "borrowed" 146 LC[index].clear(); 147 } 148 delete[] LC; 149 } 147 150 for(int i=0;i<NDIM;i++) 148 151 N[i] = 0; … … 367 370 } 368 371 } 369 delete (NeighbourList);372 delete NeighbourList; 370 373 } else 371 374 ELOG(2, "Around vector " << *center << " there are no atoms."); -
src/LinkedCell/unittests/linkedcellUnitTest.cpp
r55736b rb73545 378 378 CPPUNIT_ASSERT_EQUAL( (size_t)0, ListOfPoints->size() ); 379 379 CPPUNIT_ASSERT_EQUAL( true, ListOfPoints->empty() ); 380 delete (ListOfPoints);381 }; 380 delete ListOfPoints; 381 }; -
src/LinkedCell/unittests/stubs/ObserverBoxStub.cpp
r55736b rb73545 91 91 } 92 92 93 void Box::setM( RealSpaceMatrix_M)93 void Box::setM(const RealSpaceMatrix &_M) 94 94 { 95 95 OBSERVE; -
src/Parser/PdbParser.cpp
r55736b rb73545 295 295 for (size_t i = 0; i < MaxMol; ++i) 296 296 delete elementNo[i]; 297 delete elementNo;297 delete[] elementNo; 298 298 299 299 // write CONECTs -
src/Potentials/PartialNucleiChargeFitter.cpp
r55736b rb73545 227 227 PartialNucleiChargeFitter::~PartialNucleiChargeFitter() 228 228 { 229 delete PotentialFromCharges; 229 if (PartialCharges != NULL) 230 delete PartialCharges; 231 232 if (PotentialFromCharges != NULL) 233 delete PotentialFromCharges; 230 234 } 231 235 … … 235 239 const size_t rows = SampledPotential.getDimension(); 236 240 const size_t cols = positions.size(); 241 242 // allocate memory for PotentialFromCharges 243 if (PotentialFromCharges != NULL) { 244 delete PotentialFromCharges; 245 PotentialFromCharges = NULL; 246 } 237 247 PotentialFromCharges = new MatrixContent( rows, cols ); 238 248 // store step length per axis … … 285 295 { 286 296 // prepare PartialCharges 297 if (PartialCharges != NULL) { 298 delete PartialCharges; 299 PartialCharges = NULL; 300 } 287 301 PartialCharges = new VectorContent(positions.size()); 288 302 -
src/Potentials/PotentialRegistry.cpp
r55736b rb73545 44 44 {} 45 45 46 PotentialRegistry::~PotentialRegistry() 47 { 48 cleanup(); 49 } 46 50 47 51 void PotentialRegistry::registerInstance(EmpiricalPotential *potential) -
src/Potentials/PotentialRegistry.hpp
r55736b rb73545 45 45 private: 46 46 PotentialRegistry(); 47 virtual ~PotentialRegistry() {}47 virtual ~PotentialRegistry(); 48 48 }; 49 49 -
src/Potentials/SerializablePotential.hpp
r55736b rb73545 53 53 ParticleTypes(_ParticleTypes) 54 54 {} 55 ~SerializablePotential() {}55 virtual ~SerializablePotential() {} 56 56 57 57 /** Return the token name of this specific potential. -
src/Tesselation/CandidateForTesselation.cpp
r55736b rb73545 172 172 } 173 173 } 174 delete (ListofPoints);174 delete ListofPoints; 175 175 176 176 } -
src/Tesselation/tesselation.cpp
r55736b rb73545 147 147 } 148 148 } 149 150 delete LinkedList; 149 151 } 150 152 … … 998 1000 LOG(3, "DEBUG: " << *(*Runner) << " with distance " << (*Runner)->distance(CandidateLine.OtherOptCenter) << "."); 999 1001 } 1000 delete (ListofPoints);1002 delete ListofPoints; 1001 1003 1002 1004 return flag; -
src/UIElements/CommandLineUI/CommandLineParser.cpp
r55736b rb73545 52 52 #include "CommandLineParser.hpp" 53 53 #include "CommandLineParser_validate.hpp" 54 #include "World.hpp" 54 55 55 56 #include "CodePatterns/Singleton_impl.hpp" … … 430 431 void CommandLineParser::Parse() 431 432 { 432 po::store(po::command_line_parser(argc,argv).options(cmdline_options).run(), vm); 433 try { 434 po::store(po::command_line_parser(argc,argv).options(cmdline_options).run(), vm); 435 } catch (std::exception &e) { 436 std::cerr << "Something went wrong with parsing the command-line arguments." << std::endl; 437 World::getInstance().setExitFlag(134); 438 #ifdef HAVE_ACTION_THREAD 439 // force action queue to stop thread 440 ActionQueue::getInstance().stop(); 441 #endif 442 ActionQueue::getInstance().clearQueue(); 443 } 433 444 std::ifstream input; 434 445 input.open("example.cfg"); -
src/World.cpp
r55736b rb73545 839 839 delete configuration; 840 840 delete Thermostats; 841 delete homologies; 841 842 } 842 843 -
src/builder.cpp
r55736b rb73545 53 53 stopQueue(); 54 54 #endif 55 int status = 0; 55 56 if (UIFactory::getInstance().getUIName() == "CommandLine") 56 returnsaveAll();57 return 0;57 status = saveAll(); 58 return status; 58 59 } 59 60 -
src/cleanUp.cpp
r55736b rb73545 53 53 #include "Fragmentation/Summation/Containers/FragmentationResultContainer.hpp" 54 54 55 #include "Potentials/PotentialFactory.hpp" 56 #include "Potentials/PotentialRegistry.hpp" 57 55 58 #include "RandomNumbers/RandomNumberDistributionFactory.hpp" 56 59 #include "RandomNumbers/RandomNumberEngineFactory.hpp" … … 97 100 FragmentationResultContainer::purgeInstance(); 98 101 Chronos::purgeInstance(); 102 PotentialFactory::purgeInstance(); 103 PotentialRegistry::purgeInstance(); 99 104 RandomNumberDistributionFactory::purgeInstance(); 100 105 RandomNumberEngineFactory::purgeInstance(); -
src/documentation/tests/tests.dox
r55736b rb73545 16 16 * \page tests Automated Tests 17 17 * 18 * There are t wokinds of tests:18 * There are three kinds of tests: 19 19 * 20 20 * \li \subpage codetest "Code tests" … … 59 59 * every single test for each and every single commit in the code history before 60 60 * it is pushed to the central repository (git has ample means via \a rebase for 61 * correcting later found errors) .61 * correcting later found errors), both for --disable-debug and --enable-debug. 62 62 * 63 63 * Before a version tag is given (e.g. v1.1.3) it is to be made sure that also … … 65 65 * runs fine and produces a distributable archive. 66 66 * 67 * \date 2011-10-31 67 * Since v1.4.8 valgrind's memcheck tool runs through as well (on all regression 68 * tests). There are three glitches, namely regression tests 28-30 which load 69 * python scripts and cause many PyObject_Free and other errors. These are 70 * ignored. A python suppression file was tried but to no success. 71 * Similarly, a valgrind check prior to giving a version tag is to be made 72 * starting from this version to prevent memory leaks. 73 * 74 * 75 * \date 2014-08-29 68 76 * 69 77 */ -
tests/regression/Atoms/Add/testsuite-atoms-add.at
r55736b rb73545 53 53 AT_SETUP([Atoms - adding outside boundary fails]) 54 54 AT_KEYWORDS([atoms boundary add-atom]) 55 # this does not fail 56 AT_XFAIL_IF([/bin/true]) 55 57 56 AT_CHECK([../../molecuilder -i test2.conf -o mpqc pcp xyz tremolo pdb --set-boundary-conditions "Ignore,Ignore,Ignore"-a 1 --domain-position "0., 0., -1."], 5, [ignore], [ignore])58 AT_CHECK([../../molecuilder -i test2.conf -o mpqc pcp xyz tremolo pdb --set-boundary-conditions Ignore Ignore Ignore -a 1 --domain-position "0., 0., -1."], 5, [ignore], [ignore]) 57 59 58 60 AT_CLEANUP -
tests/regression/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at
r55736b rb73545 22 22 23 23 AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "max=20;"], 0, [stdout], [stderr]) 24 AT_CHECK([ fgrep "uniform_int" stdout], 0, [ignore], [ignore])24 AT_CHECK([grep "STATUS:.*uniform_int" stdout], 0, [ignore], [ignore]) 25 25 AT_CHECK([fgrep "Its parameters are: min=0;max=20;p=-1;t=-1;median=-1;sigma=-1;alpha=-1;mean=-1;a=-1;b=-1;c=-1;lambda=-1;" stdout], 0, [ignore], [ignore]) 26 26 … … 32 32 33 33 AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "max=20;" --undo], 0, [stdout], [stderr]) 34 AT_CHECK([ fgrep "uniform_smallint" stdout], 0, [ignore], [ignore])34 AT_CHECK([grep "STATUS:.*uniform_smallint" stdout], 0, [ignore], [ignore]) 35 35 AT_CHECK([fgrep "Its parameters are: min=0;max=9;p=-1;t=-1;median=-1;sigma=-1;alpha=-1;mean=-1;a=-1;b=-1;c=-1;lambda=-1;" stdout], 0, [ignore], [ignore]) 36 36 … … 42 42 43 43 AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "max=20;" --undo --redo], 0, [stdout], [stderr]) 44 AT_CHECK([ fgrep -c "uniform_int" stdout], 0, [stdout], [ignore])45 AT_CHECK([fgrep " 3" stdout], 0, [ignore], [ignore])44 AT_CHECK([grep -c "STATUS:.*uniform_int" stdout], 0, [stdout], [ignore]) 45 AT_CHECK([fgrep "2" stdout], 0, [ignore], [ignore]) 46 46 AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "max=20;" --undo --redo], 0, [stdout], [stderr]) 47 47 AT_CHECK([fgrep -c "Its parameters are: min=0;max=20;p=-1;t=-1;median=-1;sigma=-1;alpha=-1;mean=-1;a=-1;b=-1;c=-1;lambda=-1;" stdout], 0, [stdout], [ignore]) -
tests/regression/RandomNumbers/Engine/testsuite-set-random-number-engine.at
r55736b rb73545 22 22 23 23 AT_CHECK([../../molecuilder -v 3 --set-random-number-engine "lagged_fibonacci607" --random-number-engine-parameters "seed=2;"], 0, [stdout], [stderr]) 24 AT_CHECK([ fgrep "lagged_fibonacci607" stdout], 0, [ignore], [ignore])24 AT_CHECK([grep "STATUS:.*lagged_fibonacci607" stdout], 0, [ignore], [ignore]) 25 25 AT_CHECK([fgrep "Its parameters are: seed=2;" stdout], 0, [ignore], [ignore]) 26 26 … … 32 32 33 33 AT_CHECK([../../molecuilder -v 3 --set-random-number-engine "lagged_fibonacci607" --random-number-engine-parameters "seed=2;" --undo], 0, [stdout], [stderr]) 34 AT_CHECK([ fgrep "minstd_rand0" stdout], 0, [ignore], [ignore])34 AT_CHECK([grep "STATUS:.*minstd_rand0" stdout], 0, [ignore], [ignore]) 35 35 AT_CHECK([fgrep "Its parameters are: seed=1;" stdout], 0, [ignore], [ignore]) 36 36 … … 42 42 43 43 AT_CHECK([../../molecuilder -v 3 --set-random-number-engine "lagged_fibonacci607" --random-number-engine-parameters "seed=2;" --undo --redo], 0, [stdout], [stderr]) 44 AT_CHECK([ fgrep -c "lagged_fibonacci607" stdout], 0, [stdout], [ignore])45 AT_CHECK([fgrep " 3" stdout], 0, [stdout], [ignore])44 AT_CHECK([grep -c "STATUS:.*lagged_fibonacci607" stdout], 0, [stdout], [ignore]) 45 AT_CHECK([fgrep "2" stdout], 0, [stdout], [ignore]) 46 46 AT_CHECK([../../molecuilder -v 3 --set-random-number-engine "lagged_fibonacci607" --random-number-engine-parameters "seed=2;" --undo --redo], 0, [stdout], [stderr]) 47 47 AT_CHECK([fgrep -c "Its parameters are: seed=2;" stdout], 0, [stdout], [ignore])
Note:
See TracChangeset
for help on using the changeset viewer.