Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

samtut-0.1.7/grid_construction/GridConstructionX.h.sed

Go to the documentation of this file.
00001 /*
00002   Id:           $Id: GridConstructionX.h.sed,v 1.1.2.2 2002/04/12 22:28:03 gunney Exp $
00003   Copyright:    (c) 1997-2000 The Regents of the University of California
00004   Release:      $Name: v_0_1_7 $
00005   Revision:     $Revision: 1.1.2.2 $
00006   Modified:     $Date: 2002/04/12 22:28:03 $
00007   Description:  GridConstructionX class declaration
00008 */
00009 
00010 #ifndef included_GridConstructionX_h
00011 #define included_GridConstructionX_h
00012 
00013 
00014 #include <string.h>
00015 #include <tbox_Pointer.h>
00016 #include <tbox_Database.h>
00017 
00018 
00019 /*
00020   SAMRAI classes
00021 */
00022 #include <mesh_StandardTagAndInitStrategy2.h>
00023 #include <plot_CartesianVizamraiDataWriter2.h>
00024 #include <pdat_CellVariable2.h>
00025 #include <hier_Patch2.h>
00026 #include <hier_PatchHierarchy2.h>
00027 #include <hier_PatchLevel2.h>
00028 #include <hier_IntVector2.h>
00029 #include <mesh_StandardTagAndInitStrategy2.h>
00030 
00031 
00032 using namespace SAMRAI;
00033 
00034 
00045 class GridConstructionX
00046   : public mesh_StandardTagAndInitStrategyX
00047 {
00048 
00049 public:
00050 
00060   GridConstructionX(
00062     const string &object_name
00063   , 
00064     tbox_Pointer<SAMRAI::tbox_Database> database
00065   );
00066 
00067 
00068 
00070 
00071 public:
00072 
00083   virtual void initializeLevelData (
00085       const tbox_Pointer< SAMRAI::hier_PatchHierarchyX > hierarchy
00086     , 
00087       const int level_number
00088     , const double init_data_time
00089     , const bool can_be_refined
00090     , 
00091       const bool initial_time
00092     , 
00093       const tbox_Pointer< SAMRAI::hier_PatchLevelX > old_level
00094         = tbox_Pointer< SAMRAI::hier_PatchLevelX >((0))
00095     , const bool allocate_data = true
00096     );
00097 
00098   virtual void resetHierarchyConfiguration (
00099       const SAMRAI::tbox_Pointer< SAMRAI::hier_PatchHierarchyX > hierarchy
00100     , const int coarsest_level
00101     , const int finest_level
00102     ) { /* Nothing is needed. */ }
00103 
00105 
00106 
00107 
00108 
00109 public:
00113   int registerVariablesWithPlotter(
00115     SAMRAI::tbox_Pointer<SAMRAI::plot_CartesianVizamraiDataWriterX> viz_writer
00116     );
00117 
00118 
00119 
00120 
00122 private:
00139   SAMRAI::hier_VariableContext d_context_all;
00140 
00149   SAMRAI::pdat_CellVariableX<double> d_constitutive;
00150 
00154   SAMRAI::pdat_CellVariableX<double> d_scalar;
00155 
00159   SAMRAI::pdat_CellVariableX<double> d_vector;
00160 
00162 
00163 };
00164 
00165 
00166 #endif  // included_GridConstructionX_h

Generated on Wed Apr 17 12:51:44 2002 for samtut by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001