Skip to content

Commit

Permalink
Rename function adding neighboring cells to wells
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-toth committed Dec 2, 2024
1 parent 31a5dee commit 3d3d493
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion opm/grid/GraphOfGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void GraphOfGrid<Grid>::addWell (const std::set<int>& well, bool checkIntersecti
}

template<typename Grid>
void GraphOfGrid<Grid>::addWellBuffer ()
void GraphOfGrid<Grid>::addNeighboringCellsToWells ()
{
// mark all cells that will be added to wells (addding them one
// by one would require recursive checks for neighboring wells)
Expand Down
8 changes: 4 additions & 4 deletions opm/grid/GraphOfGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ class GraphOfGrid{
return wells;
}

/// \brief Contract a layer of verices around each wells into it
/// \brief Contract a layer of verices around each well into it
///
/// Representing a well by one node guarantees that the well won't
/// be split over several processes. Giving the well an extra layer
/// of cells distances that well from the subdomain boundary.
void addWellBuffer ();
void addWellBuffer (int layers)
void addNeighboringCellsToWells ();
void addNeighboringCellsToWells (int layers)
{
for (int i=0; i<layers; ++i)
{
addWellBuffer();
addNeighboringCellsToWells();
}
}

Expand Down

0 comments on commit 3d3d493

Please sign in to comment.