fixing two compilation warning.

This commit is contained in:
Kai Bao 2017-09-27 17:06:26 +02:00
parent ad964210e5
commit f4f26395f6
2 changed files with 4 additions and 4 deletions

View File

@ -366,9 +366,9 @@ namespace Opm
rates[ Gas ] = well_state.wellRates()[index_of_well_ * number_of_phases_ + pu.phase_pos[ Gas ] ];
}
const int table_id = well_controls_iget_vfp(well_controls_, current);
const double& thp = well_controls_iget_target(well_controls_, current);
const double& alq = well_controls_iget_alq(well_controls_, current);
// const int table_id = well_controls_iget_vfp(well_controls_, current);
// const double& thp = well_controls_iget_target(well_controls_, current);
// const double& alq = well_controls_iget_alq(well_controls_, current);
// TODO: implement calculateBhpFromThp function
// well_state.bhp()[index_of_well_] = calculateBhpFromThp(rates, current);

View File

@ -249,7 +249,7 @@ namespace Opm
const int old_top_segment_location = prev_well_state.topSegmentLocation(old_index_well);
const int new_top_segmnet_location = topSegmentLocation(new_index_well);
int number_of_segment = 0;
if (new_index_well == top_segment_loc_.size() - 1) {
if (new_index_well == int(top_segment_loc_.size()) - 1) {
number_of_segment = nseg_ - new_top_segmnet_location;
} else {
number_of_segment = topSegmentLocation(new_index_well + 1) - new_top_segmnet_location;