Address minor comments
Change int to size_t Remove hasNNC_
This commit is contained in:
@@ -48,10 +48,11 @@ namespace Opm
|
||||
nnc2_.push_back(global_index2);
|
||||
|
||||
const double trans = nnc->getRecord(i)->getItem(6)->getRawDouble(0);
|
||||
|
||||
trans_.push_back(trans);
|
||||
//std::cout << trans << std::endl;
|
||||
}
|
||||
}
|
||||
hasNNC_ = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,12 +62,12 @@ namespace Opm
|
||||
trans_.push_back(trans);
|
||||
}
|
||||
|
||||
int NNC::numNNC() {
|
||||
size_t NNC::numNNC() const {
|
||||
return(nnc1_.size());
|
||||
}
|
||||
|
||||
bool NNC::hasNNC() {
|
||||
return hasNNC_;
|
||||
bool NNC::hasNNC() const {
|
||||
return nnc1_.size()>0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -35,14 +35,13 @@ public:
|
||||
const std::vector<int>& nnc1() const { return nnc1_; }
|
||||
const std::vector<int>& nnc2() const { return nnc2_; }
|
||||
const std::vector<double>& trans() const { return trans_; }
|
||||
int numNNC();
|
||||
bool hasNNC();
|
||||
size_t numNNC() const;
|
||||
bool hasNNC() const;
|
||||
|
||||
private:
|
||||
std::vector<int> nnc1_;
|
||||
std::vector<int> nnc2_;
|
||||
std::vector<double> trans_;
|
||||
bool hasNNC_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user