diff --git a/extras/Hadrons/Application.cc b/extras/Hadrons/Application.cc index 62674f30..c1d9d722 100644 --- a/extras/Hadrons/Application.cc +++ b/extras/Hadrons/Application.cc @@ -91,6 +91,11 @@ const Application::GlobalPar & Application::getPar(void) return par_; } +bool Application::hasModule(const std::string name) +{ + return env().hasModule(name); +} + // execute ///////////////////////////////////////////////////////////////////// void Application::run(void) { diff --git a/extras/Hadrons/Application.hpp b/extras/Hadrons/Application.hpp index fce9b6eb..2e3d7997 100644 --- a/extras/Hadrons/Application.hpp +++ b/extras/Hadrons/Application.hpp @@ -86,6 +86,7 @@ public: void createModule(const std::string name); template void createModule(const std::string name, const typename M::Par &par); + bool hasModule(const std::string name); // execute void run(void); // XML parameter file I/O