Molecular Dynamics Simulation  1.0
IntegrationMethods.cpp
Go to the documentation of this file.
1 #include "IntegrationMethods.h"
2 
4 #include "io/logger/Logger.h"
5 
6 std::unique_ptr<IntegrationFunctor> get_integration_functor(IntegrationMethod method) {
7  switch (method) {
9  return std::make_unique<VerletFunctor>();
10  }
11 
12  Logger::logger->error("Unknown integration method");
13  throw std::runtime_error("Unknown integration method");
14 }
std::unique_ptr< IntegrationFunctor > get_integration_functor(IntegrationMethod method)
Returns the corresponding integration functor for the given integration method.
IntegrationMethod
Enum class to specify the integration method.
static std::shared_ptr< spdlog::logger > logger
Publically accessible shared pointer to the logger.
Definition: Logger.h:35