CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
raster_grid.h
Go to the documentation of this file.
1
14
15#ifndef RASTERGRID_H
16#define RASTERGRID_H
17/*===============================================================================================================================
18
19This file is part of CoastalME, the Coastal Modelling Environment.
20
21CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
22
23This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
24
25You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27===============================================================================================================================*/
28#include "cme.h"
29#include "cell.h"
30
31class CGeomCell; // Forward declaration
32class CSimulation; // Ditto
33
35{
37 friend class CSimulation;
38
40 friend class CGeomProfile;
41
42private:
44 double m_dD50Fine;
45
47 double m_dD50Sand;
48
51
54
57
58protected:
59
60public:
62 ~CGeomRasterGrid(void);
63
64 CSimulation* pGetSim(void);
65// CGeomCell* pGetCell(int const, int const);
66 int nCreateGrid(void);
67};
68#endif // RASTERGRID_H
Contains CGeomCell definitions.
Geometry class for the cell objects which comprise the raster grid.
Definition cell.h:33
double m_dD50Fine
The d50 of fine-sized sediment.
Definition raster_grid.h:44
double m_dD50Sand
The d50 of sand-sized sediment.
Definition raster_grid.h:47
friend class CGeomProfile
The CGeomProfile class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:40
CGeomCell ** m_Cell
The 2D array of m_Cell objects. A c-style 2D array seems to be faster than using 2D STL vectors.
Definition raster_grid.h:56
~CGeomRasterGrid(void)
Destructor.
int nCreateGrid(void)
Creates the 2D CGeomCell array.
double m_dD50Coarse
The d50 of coarse-sized sediment.
Definition raster_grid.h:50
CSimulation * m_pSim
A pointer to the CSimulation object.
Definition raster_grid.h:53
friend class CSimulation
The CSimulation class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:37
CGeomRasterGrid(CSimulation *)
Constructor.
CSimulation * pGetSim(void)
Returns a pointer to the simulation object.
This class runs CoastalME simulations.
Definition simulation.h:68
This file contains global definitions for CoastalME.