make Plumed.cpp obsolete in USER-PLUMED code by inserting it into fix_plumed.cpp

This commit is contained in:
Axel Kohlmeyer
2018-10-28 21:32:47 -04:00
parent 925d6d37b9
commit ae499b980d

View File

@ -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;