mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Untabify again.
This commit is contained in:
parent
d8f39c747c
commit
ae172597e0
@ -284,9 +284,9 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
static void outputState(const UnstructuredGrid& grid,
|
static void outputState(const UnstructuredGrid& grid,
|
||||||
const ReservoirState& state,
|
const ReservoirState& state,
|
||||||
const int step,
|
const int step,
|
||||||
const std::string& output_dir)
|
const std::string& output_dir)
|
||||||
{
|
{
|
||||||
// Write data in VTK format.
|
// Write data in VTK format.
|
||||||
std::ostringstream vtkfilename;
|
std::ostringstream vtkfilename;
|
||||||
@ -616,7 +616,7 @@ main(int argc, char** argv)
|
|||||||
std::cout << "\n\n================ Starting main simulation loop ===============" << std::endl;
|
std::cout << "\n\n================ Starting main simulation loop ===============" << std::endl;
|
||||||
for (; !simtimer.done(); ++simtimer) {
|
for (; !simtimer.done(); ++simtimer) {
|
||||||
// Report timestep and (optionally) write state to disk.
|
// Report timestep and (optionally) write state to disk.
|
||||||
simtimer.report(std::cout);
|
simtimer.report(std::cout);
|
||||||
if (output) {
|
if (output) {
|
||||||
outputState(*grid->c_grid(), state, simtimer.currentStepNum(), output_dir);
|
outputState(*grid->c_grid(), state, simtimer.currentStepNum(), output_dir);
|
||||||
}
|
}
|
||||||
@ -635,8 +635,8 @@ main(int argc, char** argv)
|
|||||||
std::cout << "Pressure solver took: " << pt << " seconds." << std::endl;
|
std::cout << "Pressure solver took: " << pt << " seconds." << std::endl;
|
||||||
ptime += pt;
|
ptime += pt;
|
||||||
|
|
||||||
const double current_time = simtimer.currentTime();
|
const double current_time = simtimer.currentTime();
|
||||||
const double stepsize = simtimer.currentStepLength();
|
const double stepsize = simtimer.currentStepLength();
|
||||||
const double inflowc0 = poly_inflow(current_time + 1e-5*stepsize);
|
const double inflowc0 = poly_inflow(current_time + 1e-5*stepsize);
|
||||||
const double inflowc1 = poly_inflow(current_time + (1.0 - 1e-5)*stepsize);
|
const double inflowc1 = poly_inflow(current_time + (1.0 - 1e-5)*stepsize);
|
||||||
if (inflowc0 != inflowc1) {
|
if (inflowc0 != inflowc1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user