Minor fix: do not read tracer heads unless compute_tracer is true.

This commit is contained in:
Atgeirr Flø Rasmussen 2013-04-23 09:54:52 +02:00
parent b82a41df18
commit f0ba716b3a

View File

@ -123,7 +123,7 @@ main(int argc, char** argv)
const bool compute_tracer = param.getDefault("compute_tracer", false);
Opm::SparseTable<int> tracerheads;
{
if (compute_tracer) {
std::ifstream tr_stream(param.get<std::string>("tracerheads_filename").c_str());
int num_rows;
tr_stream >> num_rows;