Molecular Dynamics Simulation  1.0
Functions
IntegrationMethods.cpp File Reference
#include "IntegrationMethods.h"
#include "integration/methods/VerletFunctor.h"
#include "io/logger/Logger.h"
Include dependency graph for IntegrationMethods.cpp:

Go to the source code of this file.

Functions

std::unique_ptr< IntegrationFunctorget_integration_functor (IntegrationMethod method)
 Returns the corresponding integration functor for the given integration method. More...
 

Function Documentation

◆ get_integration_functor()

std::unique_ptr<IntegrationFunctor> get_integration_functor ( IntegrationMethod  method)

Returns the corresponding integration functor for the given integration method.

Parameters
methodIntegration method to get the functor for
Returns
std::unique_ptr<IntegrationFunctor> Integration functor for the given integration method

Definition at line 6 of file IntegrationMethods.cpp.

6  {
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 }
static std::shared_ptr< spdlog::logger > logger
Publically accessible shared pointer to the logger.
Definition: Logger.h:35