Skip to content

Commit a0cacae

Browse files
committed
Rename sumOfGridEdges to calculateWellEdgeWeight
1 parent 0eb2377 commit a0cacae

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

opm/grid/common/ZoltanGraphFunctions.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,13 @@ class CombinedGridWellGraph
256256
/// \brief Get the number of edges of the graph of the grid and the wells for one cell
257257
int getNumberOfEdgesForSpecificCellForGridWithWells(const CombinedGridWellGraph& graph, int localCellId);
258258

259-
/// \brief Iterate over the grid and get the sum of all edge weights
259+
/// \brief Iterate over the grid and to calculate the edge weights
260260
///
261261
/// Used as a weight for edges between cells of a well
262+
/// The result is the sum of all grid edges, or multiplyWellConnectivities*grid_average if it is positive
262263
template <typename EdgeWeightType>
263-
EdgeWeightType sumOfGridEdges(const Dune::CpGrid& grid,
264-
const CombinedGridWellGraph& graph);
264+
EdgeWeightType calculateWellEdgeWeight(const Dune::CpGrid& grid,
265+
const CombinedGridWellGraph& graph);
265266

266267
/// \brief Get the list of edges and weights for one cell of a grid with wells
267268
template<typename ID, typename weightType>

0 commit comments

Comments
 (0)