From ae499b980dc12c6ee1e3da0a9ecc48db541ab9c3 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Sun, 28 Oct 2018 21:32:47 -0400 Subject: [PATCH] make Plumed.cpp obsolete in USER-PLUMED code by inserting it into fix_plumed.cpp --- src/USER-PLUMED/fix_plumed.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/USER-PLUMED/fix_plumed.cpp b/src/USER-PLUMED/fix_plumed.cpp index 1b05477e38..00a899724b 100644 --- a/src/USER-PLUMED/fix_plumed.cpp +++ b/src/USER-PLUMED/fix_plumed.cpp @@ -16,6 +16,29 @@ #include "modify.h" #include "pair.h" +/* + Do not link plumed directly but rather do it at runtime +*/ +#define __PLUMED_WRAPPER_LINK_RUNTIME 1 + +/* + Make sure the inline C++ interface is not included here. + Should not be necessary, but it doesn't hurt. +*/ +#define __PLUMED_WRAPPER_CXX 0 + +/* + Tell Plumed.h to emit the whole implementation +*/ +#define __PLUMED_WRAPPER_IMPLEMENTATION 1 + +/* + Emit fortran wrappers +*/ +#define __PLUMED_WRAPPER_FORTRAN 1 + +#include "Plumed.h" + using namespace LAMMPS_NS; using namespace PLMD; using namespace FixConst; -- GitLab