TofDiscGalReorder and TofReader: remove warnings due to new boost version.

This commit is contained in:
Robert Kloefkorn 2015-08-07 12:02:59 +02:00
parent cb512ef10d
commit 9c8460d471
2 changed files with 4 additions and 2 deletions

View File

@ -217,7 +217,8 @@ namespace Opm
tracerhead_by_cell_.resize(grid_.number_of_cells, NoTracerHead);
}
for (int tr = 0; tr < num_tracers_; ++tr) {
for (int i = 0; i < tracerheads[tr].size(); ++i) {
const unsigned int tracerheadsSize = tracerheads[tr].size();
for (unsigned int i = 0; i < tracerheadsSize; ++i) {
const int cell = tracerheads[tr][i];
basis_func_->addConstant(1.0, &tracer_coeff[cell*num_tracers_*num_basis + tr*num_basis]);
tracer_coeff[cell*num_tracers_ + tr] = 1.0;

View File

@ -142,7 +142,8 @@ namespace Opm
tracerhead_by_cell_.resize(num_cells, NoTracerHead);
}
for (int tr = 0; tr < num_tracers; ++tr) {
for (int i = 0; i < tracerheads[tr].size(); ++i) {
const unsigned int tracerheadsSize = tracerheads[tr].size();
for (unsigned int i = 0; i < tracerheadsSize; ++i) {
const int cell = tracerheads[tr][i];
tracer[num_cells * tr + cell] = 1.0;
tracerhead_by_cell_[cell] = tr;