source: src/grid/tempgrid.hpp@ b51c3b

Last change on this file since b51c3b was 716da7, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Fix energy calculation.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1729 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 1.1 KB
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
15namespace VMG
16{
17
18class Index;
19class Vector;
20
21class TempGrid : public Grid
22{
23public:
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
41private:
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.