Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef AMROC_CLP_BOUNDARYCONDITIONS_H 00002 #define AMROC_CLP_BOUNDARYCONDITIONS_H 00003 00011 #include "BoundaryConditions.h" 00012 00013 #ifndef ClpBoundaryConditionsName 00014 #define ClpBoundaryConditions(dim) name2(ClpBoundaryConditions,dim) 00015 #define ClpBoundaryConditionsName 00016 #endif 00017 00027 template <class VectorType> 00028 class ClpBoundaryConditions(DIM) : public BoundaryConditions(DIM)<VectorType> { 00029 typedef GridFunction(DIM)<VectorType> vec_grid_fct_type; 00030 public: 00031 ClpBoundaryConditions(DIM)(const int gh) : 00032 BoundaryConditions(DIM)<VectorType>(gh) {} 00033 00034 virtual void Set(vec_grid_fct_type& u) { 00035 int args = NEquations(); 00036 SetBoundaryType(u,DAGHBoundaryUserDef); 00037 SetBndryUpdateFunction(u, (void *) &f_boundary); 00038 int size = sizeof(int); 00039 SetMyArgs(u, size, (char *)&args); 00040 } 00041 }; 00042 00043 00044 00045 #endif
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04