mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Avoid signed/unsigned comparison.
This commit is contained in:
@@ -1351,7 +1351,7 @@ namespace Opm {
|
|||||||
errlog << "Finding the dew point pressure failed for " << failed_cells_pb.size() << " cells [";
|
errlog << "Finding the dew point pressure failed for " << failed_cells_pb.size() << " cells [";
|
||||||
errlog << failed_cells_pb[0];
|
errlog << failed_cells_pb[0];
|
||||||
const int max_elems = std::min(max_num_cells_faillog, failed_cells_pb.size());
|
const int max_elems = std::min(max_num_cells_faillog, failed_cells_pb.size());
|
||||||
for (size_t i = 1; i < max_elems; ++i) {
|
for (int i = 1; i < max_elems; ++i) {
|
||||||
errlog << ", " << failed_cells_pb[i];
|
errlog << ", " << failed_cells_pb[i];
|
||||||
}
|
}
|
||||||
if (failed_cells_pb.size() > max_num_cells_faillog) {
|
if (failed_cells_pb.size() > max_num_cells_faillog) {
|
||||||
@@ -1365,7 +1365,7 @@ namespace Opm {
|
|||||||
errlog << "Finding the dew point pressure failed for " << failed_cells_pd.size() << " cells [";
|
errlog << "Finding the dew point pressure failed for " << failed_cells_pd.size() << " cells [";
|
||||||
errlog << failed_cells_pd[0];
|
errlog << failed_cells_pd[0];
|
||||||
const int max_elems = std::min(max_num_cells_faillog, failed_cells_pd.size());
|
const int max_elems = std::min(max_num_cells_faillog, failed_cells_pd.size());
|
||||||
for (size_t i = 1; i < max_elems; ++i) {
|
for (int i = 1; i < max_elems; ++i) {
|
||||||
errlog << ", " << failed_cells_pd[i];
|
errlog << ", " << failed_cells_pd[i];
|
||||||
}
|
}
|
||||||
if (failed_cells_pd.size() > max_num_cells_faillog) {
|
if (failed_cells_pd.size() > max_num_cells_faillog) {
|
||||||
|
|||||||
Reference in New Issue
Block a user