KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
Kernel_Iter_Adapt.h
Go to the documentation of this file.
1#ifndef Kernel_Iter_Adapt_H
2#define Kernel_Iter_Adapt_H
3
4#include "kids/Kernel.h"
5
6namespace PROJECT_NS {
7
8class Kernel_Iter_Adapt final : public Kernel {
9 public:
10 virtual const std::string getName();
11
12 virtual int getType() const;
13
14 private:
15 double t0, *t0_ptr;
16 double t, *t_ptr;
17 double dt, *dt_ptr;
18 double tend, *tend_ptr;
21
25 int* fail_type_ptr; // record the failure information (longtime keeped)
26
32
33 double time_unit;
34
35 const std::vector<std::string> backup_fields = {"x", "p", "U", "occ_nuc", "f", "Ekin", "Epot"};
36
37 virtual void setInputParam_impl(std::shared_ptr<Param>& PM);
38
39 virtual Status& initializeKernel_impl(Status& stat);
40
41 virtual void setInputDataSet_impl(std::shared_ptr<DataSet>& DS);
42
43 virtual Status& executeKernel_impl(Status& stat);
44};
45
46}; // namespace PROJECT_NS
47
48
49#endif // Kernel_Iter_Adapt_H
this file provide Kernel class
virtual void setInputParam_impl(std::shared_ptr< Param > &PM)
Virtual function to set input parameters for the kernel implementation.
virtual Status & initializeKernel_impl(Status &stat)
Virtual function to initialize the kernel implementation.
virtual void setInputDataSet_impl(std::shared_ptr< DataSet > &DS)
Virtual function to set input data set for the kernel implementation.
virtual const std::string getName()
Get the name of the kernel.
virtual Status & executeKernel_impl(Status &stat)
Virtual function to execute the kernel implementation.
const std::vector< std::string > backup_fields
virtual int getType() const
Get the type of the kernel.
this class provides the container and implementation of algorithms
Definition Kernel.h:60
< http://warp.povusers.org/FunctionParser/fparser.html
Definition Context.h:39
int kids_bint
Alias for integer type.
Definition Types.h:58