diff --git a/src/metatensor/metatensor.cpp b/src/metatensor/metatensor.cpp index 981cbfcbd7..ea3c55a146 100644 --- a/src/metatensor/metatensor.cpp +++ b/src/metatensor/metatensor.cpp @@ -71,7 +71,11 @@ namespace PLMD { namespace metatensor { class MetatensorPlumedAction: public ActionAtomistic, public ActionWithValue { public: static void registerKeywords(Keywords& keys); - explicit MetatensorPlumedAction(const ActionOptions&) { + explicit MetatensorPlumedAction(const ActionOptions&): + Action(options), + ActionAtomistic(options), + ActionWithValue(options) + { throw std::runtime_error( "Can not use metatensor action without the corresponding libraries. \n" "Make sure to configure with `--enable-metatensor --enable-libtorch` "