AMROC Main     Blockstructured Adaptive Mesh Refinement in object-oriented C++


Main Page   Class Hierarchy   Compound List   File List  

ClpTSSrcIntegrator.h

Go to the documentation of this file.
00001 #ifndef AMROC_CLP_TSSRCINTEGRATOR_H
00002 #define AMROC_CLP_TSSRCINTEGRATOR_H
00003 
00011 #include "ClpTSSrcIntegratorBase.h"
00012 
00013 #ifndef ClpTSSrcIntegratorName
00014 #define ClpTSSrcIntegrator(dim)      name2(ClpTSSrcIntegrator,dim)
00015 #define ClpTSSrcIntegratorName
00016 #endif
00017 
00028 template <class VectorType, class AuxVectorType>
00029 class ClpTSSrcIntegrator(DIM) : 
00030   public ClpTSSrcIntegratorBase(DIM)<VectorType, AuxVectorType> {
00031   typedef typename VectorType::InternalDataType DataType;
00032   typedef GridData(DIM)<VectorType> vec_grid_data_type;
00033 
00034 public:
00035   ClpTSSrcIntegrator(DIM)(const int gh) : 
00036     ClpTSSrcIntegratorBase(DIM)<VectorType, AuxVectorType>(gh) {}
00037 
00038   virtual void CalculateSrcOnGrid(vec_grid_data_type& StateVec, double t, 
00039                                   double dt, DCoords& dx, const int& bnd) {
00040     int mx[DIM], ibx[DIM];
00041     DimExtBBox(StateVec.bbox(), mx, ibx);
00042     f_source(AA(DIM,mx),NEquations(),NGhosts(),AA(DIM,ibx),AA(DIM,mx),
00043              StateVec.data(),aux,NAux,t,dt,bnd); 
00044   }
00045 };
00046 
00047 
00048 #endif


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



AMROC Main      Home      Contact
last update: 06/01/04