Skip to content
Snippets Groups Projects
  1. Aug 21, 2019
  2. Mar 29, 2019
    • carlocamilloni's avatar
      PLUMED requestAtoms in action with value has · 6c668e53
      carlocamilloni authored
      now an option to avoid clearDependecies.
      This allows to have in a single class actionAtomistic and actionWithArguments
      and actually use them together
      
      this is used in Action build on MetainferenceBase where requestAtomst(atoms, false)
      6c668e53
  3. Feb 25, 2019
  4. Feb 22, 2019
  5. Jan 11, 2019
  6. Dec 14, 2018
  7. Dec 11, 2018
    • Giovanni Bussi's avatar
      Fix #421 · 02d6d5a8
      Giovanni Bussi authored
      Notice that I had to change to interface of a couple of functions
      ActionSet:getLabelList() and getLabelVector()
      adding a template parameter.
      Should be harmless since these functions were used in a few places only.
      02d6d5a8
  8. Nov 27, 2018
  9. Nov 26, 2018
  10. Nov 23, 2018
  11. Nov 22, 2018
  12. Nov 20, 2018
  13. Nov 19, 2018
  14. Nov 17, 2018
    • Giovanni Bussi's avatar
      Completed exception mapping. · 8f970ae6
      Giovanni Bussi authored
      Now every exception thrown within PLUMED is remapped in the wrapper.
      
      In particular:
      - All standard C++ exceptions are remapped to equivalent ones.
      - PLUMED exceptions and lepton exceptions are remapped to ad hoc classes.
      - Any other exception derived from std::exception is mapped to std::exception.
      - Any other exception is rethrown after printing a warning.
      8f970ae6
  15. Nov 02, 2018
    • Giovanni Bussi's avatar
      Better support for exceptions and mixed compilers · 194bef90
      Giovanni Bussi authored
      I added a plumed_cmd_nothrow function to the interface, that is used from
      C++. This allows better support for mixed compilers (e.g. MD code and PLUMED
      compiled with different compilers or linked against different std libraries).
      
      Notice that I tried in the past to achieve the same using cmd("setErrorHandler"),
      but this does not work correctly with some combination of compilers.
      In addition, it implies throwing from a extern "C" function, which is not standard
      and might lead to portability issues.
      
      The plumed_cmd_nothrow implementation catches any exception raised within plumed,
      converts it to an error code, and rethrows it within the MD code. This approach
      should be more robust.
      194bef90
  16. Oct 15, 2018
  17. Oct 13, 2018
  18. Oct 12, 2018
  19. Oct 01, 2018
  20. Sep 28, 2018
  21. Sep 27, 2018
    • Giovanni Bussi's avatar
      Allow remapping exceptions. · 38a4763a
      Giovanni Bussi authored
      When using the C++ interface, this change remaps exception within plumed
      to a class that inherits from std::runtime_error.
      This allows them to be catched also from an MD code linked to
      a different C++ library.
      
      I also removed some cpp options, I think it is better to enforce
      exceptions to be managed in this way.
      38a4763a
  22. Sep 21, 2018
  23. Sep 16, 2018
  24. Sep 11, 2018
  25. Jul 26, 2018
  26. Jul 24, 2018
  27. Jul 20, 2018
  28. Jul 12, 2018
  29. Jul 11, 2018
  30. Jul 07, 2018
  31. Jul 04, 2018
  32. Jun 08, 2018
  33. Jun 06, 2018
    • Giovanni Bussi's avatar
      Small cleanup of regexp · 710b3cfa
      Giovanni Bussi authored
      I removed many allocation/deallocation using arrays or even simple objects
      when possible. I also added a custom destructor to properly free the regexp
      in case of an exception.
      710b3cfa
Loading