mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
fixing two compilation warning.
This commit is contained in:
parent
ad964210e5
commit
f4f26395f6
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user