Changeset a91710 for src/Actions


Ignore:
Timestamp:
Aug 21, 2014, 6:59:33 AM (11 years ago)
Author:
Frederik Heber <heber@…>
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, Candidate_v1.7.0, 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:
29b35e
Parents:
4c9101 (diff), 0c72e2 (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.
Message:

Merge branch 'Fixes_Ubuntu14_04' into stable

Location:
src/Actions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.cpp

    r4c9101 ra91710  
    145145      run_thread.sleep(boost::get_system_time() + boost::posix_time::milliseconds(100));
    146146#else
    147       run_thread.sleep_for(100);
     147      boost::this_thread::sleep_for(boost::chrono::milliseconds(100));
    148148#endif
    149149    } catch(boost::thread_interrupted &e) {
  • src/Actions/Action_impl_python.hpp

    r4c9101 ra91710  
    2121#include <boost/preprocessor/punctuation/comma_if.hpp>
    2222#include <boost/preprocessor/punctuation/paren.hpp>
     23#include <boost/preprocessor/seq/elem.hpp>
     24#include <boost/preprocessor/seq/size.hpp>
     25#include <boost/preprocessor/seq/transform.hpp>
    2326
    2427// some derived names: if CATEGORY is not given, we don't prefix with it
     
    4851BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramdescriptions)),\
    4952  ERROR: There are not the same number of "paramtokens" and "paramdescriptions" in: __FILE__ \
     53)
     54#endif
     55#ifdef paramreferences
     56BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramreferences)),\
     57  ERROR: There are not the same number of "paramtokens" and "paramreferences" in: __FILE__ \
     58)
     59#endif
     60
     61#ifdef paramtypes
     62BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramtypes)),\
     63  ERROR: There are not the same number of "paramtokens" and "paramtypes" in: __FILE__ \
    5064)
    5165#endif
     
    8397// print a list of type ref followed, i.e. "int i, double position"
    8498#define type_list(z,n,TYPELIST, VARLIST) \
    85   BOOST_PP_COMMA_IF(n)\
     99  BOOST_PP_COMMA_IF(n) \
    86100  BOOST_PP_SEQ_ELEM(n, TYPELIST) \
    87101  BOOST_PP_SEQ_ELEM(n, VARLIST)
     
    90104#define value_print(z, n, container, prefix) \
    91105  prefix \
    92   BOOST_PP_SEQ_ELEM(n, container)\
    93   .set(\
    94   BOOST_PP_SEQ_ELEM(n, container)\
     106  BOOST_PP_SEQ_ELEM(n, container) \
     107  .set( \
     108  BOOST_PP_SEQ_ELEM(n, container) \
    95109  );
    96110
     
    110124BOOST_PP_CAT( COMMAND, _stringargs)(
    111125#if defined paramtypes
    112 #define BOOST_PP_LOCAL_MACRO(n) type_list(~, n, BOOST_PP_SEQ_TRANSFORM( type2string, , paramtypes), paramreferences)
     126#define BOOST_PP_LOCAL_MACRO(n) type_list(~, n, BOOST_PP_SEQ_TRANSFORM( type2string, ~, paramtypes), paramreferences)
    113127#define BOOST_PP_LOCAL_LIMITS  (0, MAXPARAMTYPES-1)
    114128#include BOOST_PP_LOCAL_ITERATE()
  • src/Actions/FragmentationAction/FragmentationAutomationAction.cpp

    r4c9101 ra91710  
    175175        params.executable.get().string()
    176176        );
     177    if (NoJobs != NumberJobs) {
     178      ELOG(1, "Not all jobs were added succesfully.");
     179      return Action::failure;
     180    }
    177181    LOG(1, "INFO: Added " << NoJobs << " from FragmentJobsQueue.");
    178182
  • src/Actions/unittests/Makefile.am

    r4c9101 ra91710  
    2525
    2626ACTIONLIBS = \
     27        libUnitTest.la \
     28        ../libMolecuilder.la \
    2729        ../libMolecuilderUI.la
    2830if CONDJOBMARKET
     
    3335# note that DummyUI inherits Dialog which depends on boost/file_system ...
    3436
    35 ActionRegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     37ActionRegistryUnitTest_SOURCES = \
    3638        ../Actions/unittests/ActionRegistryUnitTest.cpp \
    3739        ../Actions/unittests/ActionRegistryUnitTest.hpp \
     
    4042        ../Parameters/unittests/stubs/BoxVectorValidatorStub.cpp \
    4143        ../Parameters/unittests/stubs/TimeStepPresentValidatorStub.cpp
    42 ActionRegistryUnitTest_LDADD = ${ACTIONLIBS}
     44ActionRegistryUnitTest_LDADD = ${ACTIONLIBS} \
     45        $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
    4346
    44 ActionSequenceUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     47ActionSequenceUnitTest_SOURCES = \
    4548        ../Actions/unittests/ActionSequenceUnitTest.cpp \
    4649        ../Actions/unittests/ActionSequenceUnitTest.hpp \
     
    5558        $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
    5659
    57 AtomsCalculationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     60AtomsCalculationUnitTest_SOURCES = \
    5861        ../Actions/unittests/AtomsCalculationUnitTest.cpp \
    5962        ../Actions/unittests/AtomsCalculationUnitTest.hpp
    6063AtomsCalculationUnitTest_LDADD = ${ACTIONLIBS}
    6164
    62 ManipulateAtomsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     65ManipulateAtomsUnitTest_SOURCES = \
    6366        ../Actions/unittests/ManipulateAtomsUnitTest.cpp \
    6467        ../Actions/unittests/ManipulateAtomsUnitTest.hpp \
Note: See TracChangeset for help on using the changeset viewer.