KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
Kernel_Read_Dimensions.cpp
Go to the documentation of this file.
2
3#include "kids/hash_fnv1a.h"
4#include "kids/macro_utils.h"
5
6namespace PROJECT_NS {
7
9
10const std::string Kernel_Read_Dimensions::getName() { return "Kernel_Read_Dimensions"; }
11
13
14void Kernel_Read_Dimensions::setInputParam_impl(std::shared_ptr<Param>& PM) {
15 Dimension::M = PM->get_int("M", LOC(), 1);
16 Dimension::P = PM->get_int("P", LOC(), 1);
17 Dimension::N = PM->get_int("N", LOC(), 1);
18 Dimension::F = PM->get_int("F", LOC(), 1);
20};
21
22}; // namespace PROJECT_NS
this file provides Kernel_Read_Dimensions class enabling reading and initializing the sizes and shape...
virtual int getType() const
Get the type of the kernel.
virtual void setInputParam_impl(std::shared_ptr< Param > &PM)
Virtual function to set input parameters for the kernel implementation.
virtual const std::string getName()
Get the name of the kernel.
this class provides the container and implementation of algorithms
Definition Kernel.h:60
#define LOC()
show the location information for debug
Definition fmt.h:49
#define FUNCTION_NAME
Definition macro_utils.h:9
std::size_t N
Number of nuclear degrees of freedom.
Definition vars_list.cpp:10
std::size_t P
Number of parallel trajectories (swarms of trajectories) in each Monte Carlo run.
Definition vars_list.cpp:9
std::size_t M
Number of Monte Carlo calculations.
Definition vars_list.cpp:8
std::size_t F
Number of electronic degrees of freedom.
Definition vars_list.cpp:11
< http://warp.povusers.org/FunctionParser/fparser.html
Definition Context.h:39
constexpr uint32_t hash(const char *str)
Definition hash_fnv1a.h:12