output parameters for debugging and remove double loop of timer.

This commit is contained in:
Liu Ming
2014-10-16 16:55:36 +08:00
parent 6a051b7e4e
commit 89120ed57f
3 changed files with 26 additions and 14 deletions

View File

@@ -267,7 +267,7 @@ namespace Opm
std::string filename = output_dir_ + "/step_timing.param";
tstep_os.open(filename.c_str(), std::fstream::out | std::fstream::app);
}
while (!timer.done()) {
// while (!timer.done()) {
// Report timestep and (optionally) write state to disk.
step_timer.start();
timer.report(std::cout);
@@ -380,9 +380,9 @@ namespace Opm
}
// advance to next timestep before reporting at this location
++timer;
// ++timer;
}
// }
total_timer.stop();

View File

@@ -246,8 +246,9 @@ namespace Opm
}
}
//Add PhasePresence make muOil() happy.
std::vector<PhasePresence> phaseCondition;
std::vector<PhasePresence> phaseCondition(num_cells);
for (int c = 0; c < num_cells; ++c) {
phaseCondition[c] = PhasePresence();
phaseCondition[c].setFreeWater();
phaseCondition[c].setFreeOil();
}