Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef AMROC_ODE_INTEGRATOR_H 00002 #define AMROC_ODE_INTEGRATOR_H 00003 00011 #include "GridDataFunctions/GridDataFunction.h" 00012 #include "ODEIntegrators/ODEIntegratorInterface.h" 00013 00014 00015 #ifndef ODEIntegratorName 00016 #define ODEIntegrator(dim) name2(ODEIntegrator,dim) 00017 #define ODEIntegratorName 00018 #endif 00019 00026 template <class VectorType> 00027 class ODEIntegrator(DIM) : public ODEIntegratorInterface(DIM)<VectorType> { 00028 typedef GridDataFunction(DIM)<VectorType> grid_data_fct_type; 00029 00030 public: 00031 ODEIntegrator(DIM)() { 00032 _GridDataFct = (grid_data_fct_type *)0; 00033 } 00034 00035 virtual void register_at(ControlDevice& Ctrl,const string& prefix) {} 00036 virtual void register_at(ControlDevice& Ctrl) {} 00037 virtual void init() {} 00038 virtual void update() {} 00039 virtual void finish() {} 00040 00041 virtual void SetupData() {} 00042 00043 inline void SetGridDataFct(grid_data_fct_type* grid_fct) 00044 { _GridDataFct = grid_fct; } 00045 inline grid_data_fct_type& GridDataFct() { return *_GridDataFct; } 00046 inline const grid_data_fct_type& GridDataFct() const { return *_GridDataFct; } 00047 00048 protected: 00049 grid_data_fct_type* _GridDataFct; 00050 }; 00051 00052 00053 #endif
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04