Skip to content
Snippets Groups Projects
  1. Nov 12, 2018
    • Giovanni Bussi's avatar
      Using C++ interface in python · c4303330
      Giovanni Bussi authored
      I think python should use the C++ interface rather than the C one.
      The reason is that the C++ interface included in PLUMED 2.5
      rethrows exceptions and thus can be used to load
      a shared library compiled with a different compiler or
      linked against a different standard library.
      
      In perspective, this will allow compiling PLUMED with
      a different compiler/library than that used to compile
      python itself.
      c4303330
  2. Nov 10, 2018
  3. Nov 09, 2018
  4. Nov 08, 2018
  5. Nov 07, 2018
  6. Nov 05, 2018
  7. Nov 03, 2018
  8. 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
  9. Oct 31, 2018
  10. Oct 29, 2018
  11. Oct 28, 2018
  12. Oct 24, 2018
Loading