Skip to content
Snippets Groups Projects
  1. Nov 22, 2018
  2. Nov 20, 2018
  3. Nov 19, 2018
  4. Nov 18, 2018
  5. 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
  6. Nov 14, 2018
  7. Nov 13, 2018
    • Giovanni Bussi's avatar
      astyle · 2d5f098e
      Giovanni Bussi authored
      2d5f098e
    • Giovanni Bussi's avatar
      Small consistency fix in wrapper · 164eb8d3
      Giovanni Bussi authored
      I changed Plumed::invalid() to Plumed::makeInvalid() and added a new function
      Plumed::makeValid(). These names are more inline with stdlib names
      (e.g. make_shared), though with our conventions for capitalization.
      
      Hopefully there's no code yet using this (beta) interface.
      
      In addition, I made it possible to use a macro to change the behavior
      of the default constructor to makeInvalid(). This might be
      useful in python wrappers to avoid opening the library twice
      (python objects always use the "nullary" - default - constructor first).
      164eb8d3
  8. Nov 10, 2018
  9. Nov 09, 2018
  10. Nov 08, 2018
  11. Nov 07, 2018
  12. Nov 05, 2018
  13. Nov 03, 2018
  14. Nov 02, 2018
    • Giovanni Bussi's avatar
      Fixed warning · c44feea7
      Giovanni Bussi authored
      c44feea7
    • 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
    • Giovanni Bussi's avatar
      c3305ba4
    • Giovanni Bussi's avatar
      08a8594c
  15. Oct 31, 2018
Loading