Merge pull request #679 from joakim-hove/remove-totno-conn
Removed well property total number of connections
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
namespace Opm {
|
||||
WellConnections * newConnectionsWithSegments(const DeckKeyword& compsegs, const WellConnections& input_connections,
|
||||
const WellSegments& segments, const EclipseGrid& grid, std::size_t& totNC);
|
||||
const WellSegments& segments, const EclipseGrid& grid);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -57,9 +57,8 @@ namespace Opm {
|
||||
WellCompletion::CompletionOrderEnum completionOrdering = WellCompletion::TRACK,
|
||||
bool allowCrossFlow = true, bool automaticShutIn = true);
|
||||
const std::string& name() const;
|
||||
const size_t& seqIndex() const;
|
||||
std::size_t getTotNoConn() const;
|
||||
void setTotNoConn(std::size_t noConn);
|
||||
const size_t& seqIndex() const;
|
||||
std::size_t getTotNoConn() const;
|
||||
bool hasBeenDefined(size_t timeStep) const;
|
||||
const std::string getGroupName(size_t timeStep) const;
|
||||
void setGroupName(size_t timeStep , const std::string& groupName);
|
||||
@@ -208,9 +207,8 @@ namespace Opm {
|
||||
private:
|
||||
size_t m_creationTimeStep;
|
||||
std::string m_name;
|
||||
std::size_t m_seqIndex;
|
||||
std::size_t m_totNoConn=0;
|
||||
|
||||
std::size_t m_seqIndex;
|
||||
|
||||
DynamicState< WellCommon::StatusEnum > m_status;
|
||||
|
||||
DynamicState< int > m_isAvailableForGroupControl;
|
||||
|
||||
@@ -46,12 +46,13 @@ namespace Opm {
|
||||
const double segDistStart= 0.0,
|
||||
const double segDistEnd= 0.0,
|
||||
const bool defaultSatTabId = true);
|
||||
void loadCOMPDAT(const DeckRecord& record, const EclipseGrid& grid, const Eclipse3DProperties& eclipseProperties, std::size_t& totNC);
|
||||
void loadCOMPDAT(const DeckRecord& record, const EclipseGrid& grid, const Eclipse3DProperties& eclipseProperties);
|
||||
|
||||
using const_iterator = std::vector< Connection >::const_iterator;
|
||||
|
||||
void add( Connection );
|
||||
size_t size() const;
|
||||
size_t inputSize() const;
|
||||
const Connection& operator[](size_t index) const;
|
||||
const Connection& get(size_t index) const;
|
||||
const Connection& getFromIJK(const int i, const int j, const int k) const;
|
||||
@@ -59,9 +60,6 @@ namespace Opm {
|
||||
|
||||
const_iterator begin() const { return this->m_connections.begin(); }
|
||||
const_iterator end() const { return this->m_connections.end(); }
|
||||
|
||||
std::size_t totNoConn() const { return this->m_connections.size(); }
|
||||
|
||||
void filter(const EclipseGrid& grid);
|
||||
bool allConnectionsShut() const;
|
||||
/// Order connections irrespective of input order.
|
||||
@@ -101,6 +99,7 @@ namespace Opm {
|
||||
size_t findClosestConnection(int oi, int oj, double oz, size_t start_pos);
|
||||
|
||||
int headI, headJ;
|
||||
size_t num_removed = 0;
|
||||
std::vector< Connection > m_connections;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user