| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file tempgrid.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:55:18 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief VMG::TempGrid
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef TEMPGRID_HPP_
|
|---|
| 11 | #define TEMPGRID_HPP_
|
|---|
| 12 |
|
|---|
| 13 | #include "grid/grid.hpp"
|
|---|
| 14 |
|
|---|
| 15 | namespace VMG
|
|---|
| 16 | {
|
|---|
| 17 |
|
|---|
| 18 | class Index;
|
|---|
| 19 | class Vector;
|
|---|
| 20 |
|
|---|
| 21 | class TempGrid : public Grid
|
|---|
| 22 | {
|
|---|
| 23 | public:
|
|---|
| 24 | TempGrid();
|
|---|
| 25 | TempGrid(const Grid& rhs);
|
|---|
| 26 | TempGrid(const GlobalIndices& global, const LocalIndices& local, const SpatialExtent& extent);
|
|---|
| 27 | TempGrid(const Index& size, const Index& halo_size,
|
|---|
| 28 | const Vector& spatial_begin, const Vector& spatial_end);
|
|---|
| 29 | virtual ~TempGrid();
|
|---|
| 30 |
|
|---|
| 31 | void SetProperties(const Grid& rhs);
|
|---|
| 32 | void SetProperties(const GlobalIndices& global, const LocalIndices& local, const SpatialExtent& extent);
|
|---|
| 33 | void SetProperties(const Index& size, const Index& halo_size,
|
|---|
| 34 | const Vector& spatial_begin, const Vector& spatial_end);
|
|---|
| 35 |
|
|---|
| 36 | void SetPropertiesToFiner(const Grid& grid, const Boundary& boundary);
|
|---|
| 37 | void SetPropertiesToCoarser(const Grid& grid, const Boundary& boundary);
|
|---|
| 38 |
|
|---|
| 39 | void ImportFromResidual(Grid& sol, Grid& rhs);
|
|---|
| 40 |
|
|---|
| 41 | private:
|
|---|
| 42 | void Allocate();
|
|---|
| 43 |
|
|---|
| 44 | int size_max;
|
|---|
| 45 | };
|
|---|
| 46 |
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|
| 49 | #endif /* TEMPGRID_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.