Address minor comments

Change int to size_t
Remove hasNNC_
This commit is contained in:
Tor Harald Sandve
2015-06-10 08:59:09 +02:00
parent 5cd9a7f7b2
commit 8a2fed1bf8
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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_;
};