mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
output parameters for debugging and remove double loop of timer.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user