Skip to content

Commit 8289e25

Browse files
author
Joeperdefloep
committed
going to do some things
1 parent b02fcd6 commit 8289e25

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/richdem/common/grid_cell.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct GridCell {
2121
/// Initiate the grid cell without coordinates; should generally be avoided
2222
GridCell() = default;
2323
/// Initiate the grid cell to the coordinates (x0,y0)
24-
GridCell(int x, int y):x(x),y(y){}
24+
GridCell(int x0, int y0):x(x0),y(y0){}
2525
bool operator == (const GridCell &a) const {return x == a.x && y == a.y;}
2626
};
2727

include/richdem/methods/upslope_cells.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _richdem_catchment_delineation_hpp_
2-
#define _richdem_catchment_delineation_hpp_
1+
#ifndef _richdem_upslope_cells_hpp_
2+
#define _richdem_upslope_cells_hpp_
33

44
#include <richdem/common/Array2D.hpp>
55
#include <richdem/common/Array3D.hpp>
@@ -26,4 +26,4 @@ template< class result_t> void UC_line_props(int x0,
2626
template< class elev_t, class result_t> void UC_line_mflow(int x0, int y0, int x1, int y1, const Array2D<elev_t> &elev, Array2D<result_t> &upslope){init(upslope,elev,0); std::queue<GridCell> expansion = queue_from_linepoints(x0,y0,x1,y1,upslope); upslope_cells_mflow<Topology::D8>(expansion, elev, upslope);}
2727

2828
}
29-
#endif
29+
#endif //_richdem_upslope_cells_

include/richdem/methods/upslope_cells_functions.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _richdem_catchment_delineation_generic_hpp_
2-
#define _richdem_catchment_delineation_generic_hpp_
1+
#ifndef _richdem_upslope_cells_functions_hpp_
2+
#define _richdem_upslope_cells_functions_hpp_
33

44
#include <richdem/common/Array2D.hpp>
55
#include <richdem/common/Array3D.hpp>

0 commit comments

Comments
 (0)