Molecular Dynamics Simulation  1.0
Enumerations | Functions
IntegrationMethods.h File Reference
#include <map>
#include <memory>
#include "integration/IntegrationFunctor.h"
Include dependency graph for IntegrationMethods.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  IntegrationMethod { VERLET }
 Enum class to specify the integration method. More...
 

Functions

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

Enumeration Type Documentation

◆ IntegrationMethod

enum IntegrationMethod
strong

Enum class to specify the integration method.

Enumerator
VERLET 

Definition at line 11 of file IntegrationMethods.h.

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